SPATIALFILTER

Used in

CONFIG  REQUEST  

Servers

Image  Query  Feature  Extract  

Parent elements

SPATIALQUERY 

Syntax

<SPATIALFILTERAttribute Description Table
     (r)relation="area_intersection | envelope_intersection"
>

     (r)<ENVELOPE... /> [Or]
     (r)<MULTIPOINT... /> [Or]
     (r)<POLYGON... /> [Or]
     (r)<POLYLINE... /> [Or]
     <BUFFER... />

</SPATIALFILTER >
(r): Attribute or child element is required.

Description

A spatial filter defines the envelope for a spatial query. The envelope can be a rectangle, point, line, polygon, or buffer.

Restrictions


Notes


Attribute Descriptions for SPATIALFILTER

AttributeUsage
relationDescribes spatial relation. It is recommended to use "area_intersection". See Notes section for more details.
Back to top 

Examples for SPATIALFILTER

Example 1: Note in this example that the DATASET fromlayer is "Countries". This refers to the LAYER id in the map configuration file, not the LAYER name.
<?xml version="1.0" encoding="UTF-8"?>
<ARCXML version="1.1">
<REQUEST>
  <GET_IMAGE>
    <PROPERTIES>
      <ENVELOPE minx="-180" miny="-90" maxx="180" maxy="90" />
      <IMAGESIZE width="643" height="502" />
    </PROPERTIES>
    <LAYER type="featureclass" name="select layer" visible="true" id="300">
      <DATASET fromlayer="Countries" />
      <SPATIALQUERY>
        <SPATIALFILTER relation="area_intersection">
          <ENVELOPE maxy="30" maxx="30" miny="0" minx="0" />
        </SPATIALFILTER>
      </SPATIALQUERY>
      <SIMPLERENDERER>
        <SIMPLEPOLYGONSYMBOL fillcolor="255,255,255" filltype="cross" />
      </SIMPLERENDERER>
    </LAYER>
  </GET_IMAGE>
</REQUEST>
</ARCXML>

Back to top