SPATIALFILTER | Examples |
<SPATIALFILTER |
Attribute Description Table
|
relation
="area_intersection | envelope_intersection"
> <ENVELOPE... /> [Or] <MULTIPOINT... /> [Or] <POLYGON... /> [Or] <POLYLINE... /> [Or] <BUFFER... /> </SPATIALFILTER > | |
Bold: Attribute or child element is required. |
Shape of spatial filter to select points | Points selected when relation="area_intersection" | Points selected when relation="envelope_intersection" |
Shape of spatial filter to select polygons | No polygons are selected when relation="area_intersection" | Polygon is selected when relation="envelope_intersection" |
Attribute | Usage | Back to Top |
---|---|---|
relation | Describes spatial relation. See Notes section for more details. |
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. | Back to Top |
<?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> |