COORDSYS | Examples |
<COORDSYS | Attribute
Description Table |
id ="integer" string ="string" datumtransformid ="integer" datumtransformstring ="string" > No child elements </COORDSYS > |
|
Bold: Attribute or child element is required. |
Attribute | Usage | Back to Top |
---|---|---|
datumtransformid | Datum transformation ID. | |
datumtransformstring | Datum transformation definition string. | |
id | Projected or geographic coordinate system ID. | |
string | Projected or geographic coordinate system definition string. |
Example 1: Using a coordinate system ID. | 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" /> </ENVIRONMENT> <MAP> <PROPERTIES> <ENVELOPE minx="-180.0" miny="-90.0" maxx="180.0" maxy="90.0" /> <MAPUNITS units="meters" /> <FEATURECOORDSYS id="54008" /> <FILTERCOORDSYS id="4326" /> </PROPERTIES> <WORKSPACES> <SHAPEWORKSPACE name="shp_ws-0" directory="<path to WORLD ESRIDATA>"/> </WORKSPACES> <LAYER type="featureclass" name="Cntry94" visible="true" id="0"> <DATASET name="Cntry94" type="polygon" workspace="shp_ws-0" /> <COORDSYS id="4326" /> <SIMPLERENDERER> <SIMPLEPOLYGONSYMBOL filltransparency="1.0" fillcolor="27,127,127" /> </SIMPLERENDERER> </LAYER> </MAP> </CONFIG> </ARCXML> |
Example 2: Using a coordinate system definition string. | 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="-15066114" miny="-9182334" maxx="15311928" maxy="8551044" /> <MAPUNITS units="meters" /> <FEATURECOORDSYS id="54008" /> <FILTERCOORDSYS id="54008"/> </PROPERTIES> <WORKSPACES> <SHAPEWORKSPACE name="shp_ws-0" directory="<path to data>"/> </WORKSPACES> <LAYER type="featureclass" name="Cntry94_Mollweide" visible="true" id="0"> <DATASET name="Cntry94_Mollweide" type="polygon" workspace="shp_ws-0" /> <COORDSYS string="PROJCS["World_Mollweide",GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137,298.257223563]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]],PROJECTION["Mollweide"],PARAMETER["False_Easting",0],PARAMETER["False_Northing",0],PARAMETER["Central_Meridian",0],UNIT["Meter",1]]" /> <SIMPLERENDERER> <SIMPLEPOLYGONSYMBOL filltransparency="1.0" fillcolor="27,127,127" /> </SIMPLERENDERER> </LAYER> </MAP> </CONFIG> </ARCXML> |
Example 3: Using a datum transformation from Pulkovo 1942 to WGS 1984 (datumstransformid="8206"). The overall MapService has a FEATURECOORDSYS in geographic coordinates (id="4326"). | 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="25.2483" miny="45.6663" maxx="25.49986079043528" maxy="45.833288705864874" name="Initial_Extent" /> <MAPUNITS units="decimal_degrees" /> <FEATURECOORDSYS id="4326" /> <FILTERCOORDSYS id="4326" /> </PROPERTIES> <WORKSPACES> <SHAPEWORKSPACE name="shp_ws-2" directory="<path to data>" /> </WORKSPACES> <LAYER type="featureclass" name="w84shp" visible="true" id="0"> <DATASET name="w84shp" type="point" workspace="shp_ws-2" /> <SIMPLERENDERER> <SIMPLEMARKERSYMBOL color="0,227,27" width="10" /> </SIMPLERENDERER> </LAYER> <LAYER type="featureclass" name="pulk42" visible="true" id="1"> <DATASET name="pulk42" type="point" workspace="shp_ws-2" /> <COORDSYS id="4284" datumtransformid="8206" /> <SIMPLERENDERER> <SIMPLEMARKERSYMBOL color="0,0,255" width="6" /> </SIMPLERENDERER> </LAYER> </MAP> </CONFIG> </ARCXML> |