OBJECT | Examples |
<OBJECT | Attribute
Description Table |
units ="database | pixel"
lower ="double" [1:1] upper ="double" [1:infinity] > <LINE... /> [Or] <NORTHARROW... /> [Or] <POINT... /> [Or] <POLYGON... /> [Or] <SCALEBAR... /> [Or] <TEXT... /> [Or] <COORDSYS... /> </OBJECT > | |
Bold: Attribute or child element is
required. |
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"> <LINE coords="0 0;400 0;400 13;0 13;0 0"> <SIMPLELINESYMBOL color="0,0,0" /> </LINE> </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> |