COORDSYS

Used in

CONFIG  REQUEST  RESPONSE  

Servers

Image  Feature  Extract  

Parent elements

GET_RASTER_INFO  LAYER  OBJECT 

Syntax

<COORDSYSAttribute Description Table
     (r)id="integer"
     (r)string="string"
     datumtransformid="integer"
     datumtransformstring="string"
>

     No Child Elements
</COORDSYS >
(r): Attribute or child element is required.

Description

Defines the projection coordinate system of a layer. COORDSYS cannot be used to project a layer; its purpose is to provide the metadata for the layer. FEATURECOORDSYS and FILTERCOORDSYS are used to project the layers to a specified projection.

Restrictions


Notes


Attribute Descriptions for COORDSYS

AttributeUsage
datumtransformidDatum transformation ID. Use either datumtransformid or datumstransformstring, but not both.
datumtransformstringDatum transformation definition string. Use either datumtransformid or datumstransformstring, but not both.
idProjected or geographic coordinate system ID. Use either id or string, but not both.
stringProjected or geographic coordinate system definition string. Use either id or string, but not both.
Back to top 

Examples for COORDSYS

Example 1: Using a coordinate system ID.
<?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="4326" />
        <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.
<?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[&quot;World_Mollweide&quot;,GEOGCS[&quot;GCS_WGS_1984&quot;,DATUM[&quot;D_WGS_1984&quot;,SPHEROID[&quot;WGS_1984&quot;,6378137,298.257223563]],PRIMEM[&quot;Greenwich&quot;,0],UNIT[&quot;Degree&quot;,0.017453292519943295]],PROJECTION[&quot;Mollweide&quot;],PARAMETER[&quot;False_Easting&quot;,0],PARAMETER[&quot;False_Northing&quot;,0],PARAMETER[&quot;Central_Meridian&quot;,0],UNIT[&quot;Meter&quot;,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").
<?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>

Back to top