OBJECT | Examples |
<OBJECT | Attribute
Description Table |
When using ArcMap Server: units ="database | pixel" When using Image Server: units ="database | pixel" lower ="string" [1:1] upper ="string" [1:infinity] > For lines, option 1 with Image and ArcMap Image Services is to use LINE: <LINE... /> <COORDSYS... /> For lines, option 2 with ArcMap Image Services is to use POLYLINE and one symbol: <POLYLINE... /> <HASHLINESYMBOL... /> [Or] <SIMPLELINESYMBOL... /> [Or] <COORDSYS... /> For lines, option 2 with Image Services is to use POLYLINE and one symbol: <POLYLINE... /> <HASHLINESYMBOL... /> [Or] <RASTERMARKERSYMBOL... /> [Or] <SIMPLELINESYMBOL... /> [Or] <SIMPLEMARKERSYMBOL... /> [Or] <TRUETYPEMARKERSYMBOL... /> [Or] <COORDSYS... /> For points, option 1 with Image and ArcMap Image Services is to use POINT: <POINT... /> <COORDSYS... /> For points, option 2 with Image and ArcMap Image Services is to use MULTIPOINT and one symbol: <MULTIPOINT... /> <RASTERMARKERSYMBOL... /> [Or] <SIMPLEMARKERSYMBOL... /> [Or] <TRUETYPEMARKERSYMBOL... /> [Or] <COORDSYS... /> For polygons, option 1 with Image and ArcMap Image Services is to use POLYGON. RING and HOLE are not permitted: <POLYGON... /> <COORDSYS... /> For polygons, option 2 with ArcMap Image Services is to use POLYGON and one symbol. RING and HOLE are permitted: <POLYGON... /> <GRADIENTFILLSYMBOL... /> [Or] <RASTERFILLSYMBOL... /> [Or] <SIMPLEPOLYGONSYMBOL... /> [Or] <COORDSYS... /> For polygons, option 2 with Image Services is to use POLYGON and one symbol. RING and HOLE are permitted: <POLYGON... /> <GRADIENTFILLSYMBOL... /> [Or] <HASHLINESYMBOL... /> [Or] <RASTERFILLSYMBOL... /> [Or] <RASTERMARKERSYMBOL... /> [Or] <SIMPLELINESYMBOL... /> [Or] <SIMPLEMARKERSYMBOL... /> [Or] <SIMPLEPOLYGONSYMBOL... /> [Or] <TRUETYPEMARKERSYMBOL... /> [Or] <COORDSYS... /> Other OBJECT child elements with Image and ArcMap Image Services: <NORTHARROW... /> [Or] <SCALEBAR... /> [Or] <TEXT... /> [Or] <COORDSYS... /> </OBJECT > | |
Bold: Attribute or child element is
required. |
Option 1 for Points | Option 2 for Points |
<OBJECT
units="pixel"> <POINT coords="0 0"> <SYMBOL> <POINT> </OBJECT> |
<OBJECT units="pixel"
> <SYMBOL> <MULTIPOINT> <POINT x="0" y="0" /> </MULTIPOINT> </OBJECT> |
Option 1 for Lines | Option 2 for Lines |
<OBJECT
units="pixel"> <LINE coords="0 0;400 0;400 13;0 13"> <SYMBOL /> </LINE> </OBJECT> |
<OBJECT
units="database"> <SYMBOL /> <POLYLINE> <PATH> <COORDS>0 0;400 0;400 13;0 13</COORDS> </PATH> </POLYLINE> </OBJECT> |
Option 1 for Polygons | Option 2 for Polygons |
<OBJECT
units="pixel"> <POLYGON coords="10 10;400 10;400 20;10 20;10 10"> <SYMBOL /> </POLYGON> </OBJECT> |
<OBJECT
units="database"> <SYMBOL /> <POLYGON> <RING> <POINT x="83.15" y="38.07" /> <POINT x="111.09" y="-4.70" /> <POINT x="155.10" y="-10.38" /> <POINT x="139.10" y="66.38" /> <POINT x="83.15" y="38.07" /> <HOLE> <COORDS>100.15 20.07;103.09 30.70;106.10 30.38;100.15 20.07</COORDS> </HOLE> </RING> </POLYGON> </OBJECT> |
Attribute | Usage | Back to Top |
---|---|---|
lower | Minimum scale to display an object using a relative scale such as 1:24000. Scale can also be calculated as the number of map units per pixel. | |
units | Determines how coordinates for the
object are specified. Coordinates can be specified two ways:
| |
upper | Maximum scale to display an object using a relative scale such as 1:24000. Scale can also be calculated as the number of map units per pixel. |
Example 1: When in CONFIG. | Back to Top |
<?xml version="1.0"
encoding="UTF-8"?> <ARCXML version="1.1"> <CONFIG> <ENVIRONMENT> <LOCALE country="US" language="en" variant="" /> <UIFONT color="0,0,0" name="Arial" size="12" style="regular" /> <SCREEN dpi="96" /> </ENVIRONMENT> <MAP> <PROPERTIES> <ENVELOPE minx="-141.003006" miny="41.913319" maxx="-52.620281" maxy="83.108322" name="Initial_Extent" /> <MAPUNITS units="decimal_degrees" /> </PROPERTIES> <WORKSPACES> <SHAPEWORKSPACE name="shp_ws-16" directory="<path to CANADA ESRIDATA>" /> </WORKSPACES> <LAYER type="featureclass" name="province" visible="true" id="0"> <DATASET name="province" type="polygon" workspace="shp_ws-16" /> <SIMPLERENDERER> <SIMPLEPOLYGONSYMBOL fillcolor="227,127,227" filltype="solid" /> </SIMPLERENDERER> </LAYER> <LAYER type="acetate" name="Selectedmark" id="acetate"> <OBJECT units="pixel"> <NORTHARROW type="4" size="15" coords="20 30" shadow="32,32,32" angle="0" antialiasing="true" overlap="false"/> </OBJECT> </LAYER> </MAP> </CONFIG> </ARCXML> |
Example 2: When in a GET_IMAGE request. | 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="acetate" name="acetate" id="acetate"> <OBJECT units="pixel"> <TEXT coords="100 100" label="You are here"> <TEXTMARKERSYMBOL font="Arial" /> </TEXT> </OBJECT> </LAYER> </GET_IMAGE> </REQUEST> </ARCXML> |
Example 3: When using POINT for one acetate layer and MULTIPOINT for a second acetate layer. | Back to Top |
<?xml version="1.0"
encoding="UTF-8" ?> <ARCXML version="1.1"> <REQUEST> <GET_IMAGE> <PROPERTIES> <ENVELOPE minx="-180.0" miny="-90.0" maxx="180.0" maxy="90.0" /> <IMAGESIZE width="800" height="600" /> </PROPERTIES> <LAYER type="acetate" name="acetate" id="acetate"> <OBJECT units="pixel"> <POINT coords="100 100" > <SIMPLEMARKERSYMBOL color="0,0,0" width="20" /> </POINT> </OBJECT> </LAYER> <LAYER type="acetate" name="acetate" id="acetate"> <OBJECT units="database"> <SIMPLEMARKERSYMBOL color="0,0,0" width="20" /> <MULTIPOINT> <POINT x="-120.1079549837513" y="40.99815142335011" /> <POINT x="-110.99468788980437" y="30.88488432940315" /> <POINT x="10.13210788980437" y="30.82488950980315" /> </MULTIPOINT> </OBJECT> </LAYER> </GET_IMAGE> </REQUEST> </ARCXML> |
Example 4: When using POLYLINE for one acetate layer and LINE for a second acetate layer. | Back to Top |
<?xml version="1.0"
encoding="UTF-8" ?> <ARCXML version="1.1"> <REQUEST> <GET_IMAGE> <PROPERTIES> <ENVELOPE minx="-180.0" miny="-90.0" maxx="180.0" maxy="90.0" /> <IMAGESIZE width="800" height="600" /> </PROPERTIES> <LAYER type="acetate" name="Selectedmark" id="acetate"> <OBJECT units="database"> <SIMPLELINESYMBOL color="0,0,0" width="6" /> <POLYLINE> <PATH> <POINT x="-2.1079549837513" y="19.99815142335011" /> <POINT x="28.99468788980437" y="15.88488432940315" /> <POINT x="55.99468788980437" y="35.88488432940315" /> </PATH> </POLYLINE> </OBJECT> </LAYER> <LAYER type="acetate" name="Selectedmark" id="acetate1"> <OBJECT units="pixel"> <LINE coords="0 0;400 0;400 13;0 13"> <SIMPLELINESYMBOL color="0,255,0" width="6" /> </LINE> </OBJECT> </LAYER> </GET_IMAGE> </REQUEST> </ARCXML> |
Example 5: When using POLYGON (Option 1) for one acetate layer and POLYGON, RING, and HOLE (Option 2) for a second acetate layer. | Back to Top |
<?xml version="1.0"
encoding="UTF-8" ?> <ARCXML version="1.1"> <REQUEST> <GET_IMAGE> <PROPERTIES> <ENVELOPE minx="-180.0" miny="-90.0" maxx="180.0" maxy="90.0" /> <IMAGESIZE width="800" height="600" /> </PROPERTIES> <LAYER type="acetate" name="acetate" id="acetate"> <OBJECT units="pixel"> <POLYGON coords="10 10;400 10;400 20;10 20;10 10"> <SIMPLEPOLYGONSYMBOL fillcolor="255,255,0" /> </POLYGON> </OBJECT> </LAYER> <LAYER type="acetate" name="acetate1" id="acetate1"> <OBJECT units="database"> <SIMPLEPOLYGONSYMBOL fillcolor="0,255,0" /> <POLYGON> <RING> <POINT x="83.15605550814075" y="38.07185101549165" /> <POINT x="111.09942196116728" y="-4.70645066589869" /> <POINT x="155.1079549837513" y="-10.38915084069517" /> <POINT x="139.1079549837513" y="66.38915084069517" /> <POINT x="83.15605550814075" y="38.07185101549165" /> <HOLE> <POINT x="100.15605550814075" y="20.07185101549165" /> <POINT x="103.09942196116728" y="30.70645066589869" /> <POINT x="106.1079549837513" y="30.38915084069517" /> <POINT x="100.15605550814075" y="20.07185101549165" /> </HOLE> </RING> </POLYGON> </OBJECT> </LAYER> </GET_IMAGE> </REQUEST> </ARCXML> |