Using GET_SERVICE_INFO and SERVICEINFO |
Layer Name | Data Name | Data Type | Layer ID |
Background | WORLD_IMG.gif | Image | 0 |
Countries | CNTRY94 | Polygon | 1 |
northarrow | N/A | Acetate | northarrow |
Map configuration file used with the GET_SERVICE_INFO requests that follow: |
<?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="-180.0" miny="-90.0" maxx="180.0" maxy="90.0" name="Initial_Extent" /> <MAPUNITS units="decimal_degrees" /> </PROPERTIES> <WORKSPACES> <IMAGEWORKSPACE directory="<path to data>" name="jai_ws-4" /> <SHAPEWORKSPACE name="shp_ws-5" directory="<path to WORLD ESRIDATA>" /> </WORKSPACES> <LAYER type="image" name="Background" visible="true" id="0"> <DATASET name="WORLD_IMG.gif" type="image" workspace="jai_ws-4" /> </LAYER> <LAYER type="featureclass" name="Countries" visible="true" id="1"> <DATASET name="CNTRY94" type="polygon" workspace="shp_ws-5" /> <SIMPLERENDERER> <SIMPLEPOLYGONSYMBOL filltransparency="0.0" boundarywidth="2"/> </SIMPLERENDERER> <EXTENSION type="Extract"> <EXTRACTPARAMS clip="true"> <OUTPUTFILE file="world"> <OUTPUTFIELD name="NAME" alias="Country" /> </OUTPUTFILE> </EXTRACTPARAMS> </EXTENSION> <EXTENSION type="Geocode"> <GCSTYLE name="SingleField"> <GCFIELD id="KeyField" name="NAME" /> </GCSTYLE> </EXTENSION> <EXTENSION type="StoredQuery"> <STOREDQUERIES> <STOREDQUERY name="Country"> <QUERY where="( NAME = [%var%] )" subfields="#SHAPE# AREA NAME ABBREVNAME FIPS_CODE WB_CNTRY" /> <SQVAR position="0" name="[%var%]"> <FIELD name="NAME" precision="0" type="12" size="40" /> </SQVAR> </STOREDQUERY> </STOREDQUERIES> </EXTENSION> </LAYER> <LAYER type="acetate" name="northarrow" id="northarrow"> <OBJECT units="pixel"> <NORTHARROW type="6" size="40" coords="60 80" shadow="32,32,32" angle="0" antialiasing="True" overlap="False"/> </OBJECT> </LAYER> </MAP> </CONFIG> </ARCXML> |
GET_SERVICE_INFO request dpi: |
<?xml version="1.0"
encoding="UTF-8"?> <ARCXML version="1.1"> <REQUEST> <GET_SERVICE_INFO evelope="true" fields="true" renderer="true" extensions="true" /> </REQUEST> </ARCXML> |
SERVICEINFO response: |
<?xml version="1.0"
encoding="UTF8"?> <ARCXML version="1.1"> <RESPONSE> <SERVICEINFO> <ENVIRONMENT> <LOCALE language="en" country="US" /> <UIFONT name="Arial" color="0,0,0" size="12" style="regular" /> <SEPARATORS cs=" " ts=";"/> <SCREEN dpi="96"/> <IMAGELIMIT pixelcount="1048576" /> </ENVIRONMENT> <PROPERTIES> <ENVELOPE minx="-180" miny="-90" maxx="180" maxy="90" name="Initial_Extent" /> <MAPUNITS units="decimal_degrees" /> </PROPERTIES> <LAYERINFO type="image" name="Background" visible="true" id="0"> <ENVELOPE minx="-180" miny="-89.9747543334961" maxx="179.9423828125" maxy="90" /> </LAYERINFO> <LAYERINFO type="featureclass" visible="true" name="Countries" id="1"> <FCLASS type="polygon"> <ENVELOPE minx="-180" miny="-90" maxx="180" maxy="83.5960388183594" /> <FIELD name="AREA" type="8" size="12" precision="3" /> <FIELD name="NAME" type="12" size="40" precision="0" /> <FIELD name="ABBREVNAME" type="12" size="12" precision="0" /> <FIELD name="FIPS_CODE" type="12" size="2" precision="0" /> <FIELD name="WB_CNTRY" type="12" size="3" precision="0" /> <FIELD name="#SHAPE#" type="-98" size="0" precision="0" /> <FIELD name="#ID#" type="-99" size="16" precision="0" /> </FCLASS> <SIMPLERENDERER> <SIMPLEPOLYGONSYMBOL filltransparency="0.0" boundarywidth="2" /> </SIMPLERENDERER> <EXTENSION type="extract"> <EXTRACTPARAMS clip="true"> <OUTPUTFILE file="world"> <OUTPUTFIELD name="NAME" alias="Country"/> </OUTPUTFILE> </EXTRACTPARAMS> </EXTENSION> <EXTENSION type="Geocode" > <GCSTYLE name="SingleField" /> </EXTENSION> <EXTENSION type="StoredQuery"> <STOREDQUERIES> <STOREDQUERY name="Country"> <QUERY subfields="#SHAPE# AREA NAME ABBREVNAME FIPS_CODE WB_CNTRY" where="( NAME = [%var%] )" > </QUERY> <SQVAR name="[%var%]" position="0"> <FIELD name="NAME" type="12" precision="0" size="40" /> </SQVAR> </STOREDQUERY> </STOREDQUERIES> </EXTENSION> </LAYERINFO> <LAYERINFO type="acetate" name="northarrow" visible="true" id="northarrow"/> </SERVICEINFO> </RESPONSE> </ARCXML> |
ENVIRONMENT and its child elements: |
<ENVIRONMENT> <LOCALE language="en" country="US" /> <UIFONT name="Arial" color="0,0,0" size="12" style="regular" /> <SEPARATORS cs=" " ts=";"/> <CAPABILITIES forbidden="GET_GEOCODE,GET_EXTRACT"/> <SCREEN dpi="96"/> <IMAGELIMIT pixelcount="1048576" /> </ENVIRONMENT> |
PROPERTIES and its child elements: |
<PROPERTIES> <FEATURECOORDSYS id="54030" /> <FILTERCOORDSYS id="4326" /> <ENVELOPE minx="-180" miny="-90" maxx="180" maxy="90" name="Initial_Extent" /> <MAPUNITS units="meters" /> <LEGEND autoextend="true" backgroundcolor="255,255,0"/> <BACKGROUND color="0,0,255" /> <IMAGESIZE width="480" height="640"/> <OUTPUT path="c:\arcims\website" baseurl="http://mycomputer.domain.com/website"/> </PROPERTIES> |
LAYERINFO and minimum returned information: |
<LAYERINFO type="image"
name="Background" visible="true" id="0" <ENVELOPE minx="-180" miny="-89.9747543334961" maxx="179.9423828125" maxy="90" /> </LAYERINFO> <LAYERINFO type="featureclass" visible="true" name="Countries" id="1"> <FCLASS type="polygon"> </FCLASS> </LAYERINFO> <LAYERINFO type="acetate" name="northarrow" visible="true" id="northarrow"/> |
GET_SERVICE_INFO request setting attributes false: |
<?xml version="1.0"
encoding="UTF-8"?> <ARCXML version="1.1"> <REQUEST> <GET_SERVICE_INFO envelope="false" fields="false" renderer="false" extensions="false"/> </REQUEST> </ARCXML> |
SERVICEINFO response with ENVELOPE: |
<?xml version="1.0"
encoding="UTF8"?> <ARCXML version="1.1"> <RESPONSE> <SERVICEINFO> <ENVIRONMENT> <LOCALE language="en" country="US" /> <UIFONT name="Arial" color="0,0,0" size="12" style="regular" /> <SEPARATORS cs=" " ts=";"/> <SCREEN dpi="96"/> <IMAGELIMIT pixelcount="1048576" /> </ENVIRONMENT> <PROPERTIES> <ENVELOPE minx="-180" miny="-90" maxx="180" maxy="90" name="Initial_Extent" /> <MAPUNITS units="decimal_degrees" /> </PROPERTIES> <LAYERINFO type="image" name="Background" visible="true" id="0"> <ENVELOPE minx="-180" miny="-89.9747543334961" maxx="179.9423828125" maxy="90" /> </LAYERINFO> <LAYERINFO type="featureclass" visible="true" name="Countries" id="1"> <FCLASS type="polygon"></FCLASS> </LAYERINFO> <LAYERINFO type="acetate" name="northarrow" visible="true" id="northarrow"/> </SERVICEINFO> </RESPONSE> </ARCXML> |
GET_SERVICE_INFO request using envelope: |
<?xml version="1.0"
encoding="UTF-8"?> <ARCXML version="1.1"> <REQUEST> <GET_SERVICE_INFO envelope="true" fields="false" renderer="false" extensions="false"/> </REQUEST> </ARCXML> |
SERVICEINFO response with ENVELOPE: |
<?xml version="1.0"
encoding="UTF8"?> <ARCXML version="1.1"> <RESPONSE> <SERVICEINFO> <ENVIRONMENT> <LOCALE language="en" country="US" /> <UIFONT name="Arial" color="0,0,0" size="12" style="regular" /> <SEPARATORS cs=" " ts=";"/> <SCREEN dpi="96"/> <IMAGELIMIT pixelcount="1048576" /> </ENVIRONMENT> <PROPERTIES> <ENVELOPE minx="-180" miny="-90" maxx="180" maxy="90" name="Initial_Extent" /> <MAPUNITS units="decimal_degrees" /> </PROPERTIES> <LAYERINFO type="image" name="Background" visible="true" id="0"> <ENVELOPE minx="-180" miny="-89.9747543334961" maxx="179.9423828125" maxy="90" /> </LAYERINFO> <LAYERINFO type="featureclass" visible="true" name="Countries" id="1"> <FCLASS type="polygon"> <ENVELOPE minx="-180" miny="-90" maxx="180" maxy="83.5960388183594" /> </FCLASS> </LAYERINFO> <LAYERINFO type="acetate" name="northarrow" visible="true" id="northarrow"/> </SERVICEINFO> </RESPONSE> </ARCXML> |
GET_SERVICE_INFO request with fields: |
<?xml version="1.0"
encoding="UTF-8"?> <ARCXML version="1.1"> <REQUEST> <GET_SERVICE_INFO envelope="false" fields="true" renderer="false" extensions="false"/> </REQUEST> </ARCXML> |
SERVICEINFO response with FIELD: |
<?xml version="1.0"
encoding="UTF8"?> <ARCXML version="1.1"> <RESPONSE> <SERVICEINFO> <ENVIRONMENT> <LOCALE language="en" country="US" /> <UIFONT name="Arial" color="0,0,0" size="12" style="regular" /> <SEPARATORS cs=" " ts=";"/> <SCREEN dpi="96"/> <IMAGELIMIT pixelcount="1048576" /> </ENVIRONMENT> <PROPERTIES> <ENVELOPE minx="-180" miny="-90" maxx="180" maxy="90" name="Initial_Extent" /> <MAPUNITS units="decimal_degrees" /> </PROPERTIES> <LAYERINFO type="image" name="Background" visible="true" id="0"> <ENVELOPE minx="-180" miny="-89.9747543334961" maxx="179.9423828125" maxy="90" /> </LAYERINFO> <LAYERINFO type="featureclass" visible="true" name="Countries" id="1"> <FCLASS type="polygon"> <FIELD name="AREA" type="8" size="12" precision="3" /> <FIELD name="NAME" type="12" size="40" precision="0" /> <FIELD name="ABBREVNAME" type="12" size="12" precision="0" /> <FIELD name="FIPS_CODE" type="12" size="2" precision="0" /> <FIELD name="WB_CNTRY" type="12" size="3" precision="0" /> <FIELD name="#SHAPE#" type="-98" size="0" precision="0" /> <FIELD name="#ID#" type="-99" size="16" precision="0" /> </FCLASS> <LAYERINFO type="acetate" name="northarrow" visible="true" id="northarrow"/> </SERVICEINFO> </RESPONSE> </ARCXML> |
GET_SERVICE_INFO request with renderer: |
<?xml version="1.0"
encoding="UTF-8"?> <ARCXML version="1.1"> <REQUEST> <GET_SERVICE_INFO envelope="false" fields="false" renderer="true" extensions="false"/> </REQUEST> </ARCXML> |
SERVICEINFO response with rendering: |
<?xml version="1.0"
encoding="UTF8"?> <ARCXML version="1.1"> <RESPONSE> <SERVICEINFO> <ENVIRONMENT> <LOCALE language="en" country="US" /> <UIFONT name="Arial" color="0,0,0" size="12" style="regular" /> <SEPARATORS cs=" " ts=";"/> <SCREEN dpi="96"/> <IMAGELIMIT pixelcount="1048576" /> </ENVIRONMENT> <PROPERTIES> <ENVELOPE minx="-180" miny="-90" maxx="180" maxy="90" name="Initial_Extent" /> <MAPUNITS units="decimal_degrees" /> </PROPERTIES> <LAYERINFO type="image" name="Background" visible="true" id="0"> <ENVELOPE minx="-180" miny="-89.9747543334961" maxx="179.9423828125" maxy="90" /> </LAYERINFO> <LAYERINFO type="featureclass" visible="true" name="Countries" id="1"> <FCLASS type="polygon"> <SIMPLERENDERER> <SIMPLEPOLYGONSYMBOL filltransparency="0.0" boundarywidth="2" /> </SIMPLERENDERER> </FCLASS> </LAYERINFO> <LAYERINFO type="acetate" name="northarrow" visible="true" id="northarrow"/> </SERVICEINFO> </RESPONSE> </ARCXML> |
GET_SERVICE_INFO request with extensions: |
<?xml version="1.0"
encoding="UTF-8"?> <ARCXML version="1.1"> <REQUEST> <GET_SERVICE_INFO envelope="false" fields="false" renderer="false" extensions="true"/> </REQUEST> </ARCXML> |
SERVICEINFO response with extensions: |
<?xml version="1.0"
encoding="UTF8"?> <ARCXML version="1.1"> <RESPONSE> <SERVICEINFO> <ENVIRONMENT> <LOCALE language="en" country="US" /> <UIFONT name="Arial" color="0,0,0" size="12" style="regular" /> <SEPARATORS cs=" " ts=";"/> <SCREEN dpi="96"/> <IMAGELIMIT pixelcount="1048576" /> </ENVIRONMENT> <PROPERTIES> <ENVELOPE minx="-180" miny="-90" maxx="180" maxy="90" name="Initial_Extent" /> <MAPUNITS units="decimal_degrees" /> </PROPERTIES> <LAYERINFO type="image" name="Background" visible="true" id="0"> <ENVELOPE minx="-180" miny="-89.9747543334961" maxx="179.9423828125" maxy="90" /> </LAYERINFO> <LAYERINFO type="featureclass" visible="true" name="Countries" id="1"> <FCLASS type="polygon"> <EXTENSION type="extract"> <EXTRACTPARAMS clip="true"> <OUTPUTFILE file="world"> <OUTPUTFIELD name="NAME" alias="Country"/> </OUTPUTFILE> </EXTRACTPARAMS> </EXTENSION> <EXTENSION type="Geocode" > <GCSTYLE name="SingleField" /> </EXTENSION> <EXTENSION type="StoredQuery"> <STOREDQUERIES> <STOREDQUERY name="Country"> <QUERY subfields="#SHAPE# AREA NAME ABBREVNAME FIPS_CODE WB_CNTRY" where="( NAME = [%var%] )" > </QUERY> <SQVAR name="[%var%]" position="0"> <FIELD name="NAME" type="12" precision="0" size="40" /> </SQVAR> </STOREDQUERY> </STOREDQUERIES> </EXTENSION> </LAYERINFO> <LAYERINFO type="acetate" name="northarrow" visible="true" id="northarrow"/> </SERVICEINFO> </RESPONSE> </ARCXML> |
GET_SERVICE_INFO request with extensions routed to Geocode Server: |
<?xml version="1.0"
encoding="UTF-8"?> <ARCXML version="1.1"> <REQUEST> <GET_SERVICE_INFO envelope="false" fields="false" renderer="false" extensions="true"/> </REQUEST> </ARCXML> |
SERVICEINFO response with Geocode extension information: |
<?xml version="1.0"
encoding="UTF8"?> <ARCXML version="1.1"> <RESPONSE> <SERVICEINFO> <ENVIRONMENT> <LOCALE language="en" country="US" /> <UIFONT name="Arial" color="0,0,0" size="12" style="regular" /> <SEPARATORS cs=" " ts=";"/> <SCREEN dpi="96"/> </ENVIRONMENT> <LAYERINFO name="Countries" id="1" > <EXTENSION type="geocode"> <GCSTYLE name="SingleField" > <GCINPUT id="KEYFIELD" type="text" label="KeyField" width="10" description="Any single field" /> </GCSTYLE> </EXTENSION> </LAYERINFO> </SERVICEINFO> </RESPONSE> </ARCXML> |
<LAYERINFO type="featureclass"
visible="true" name="Cities" id="4" maxscale="3307.29828126323"> <FCLASS type="point"> </FCLASS>> </LAYERINFO> |
<LAYERINFO type="featureclass"
visible="true" name="Cities" id="4" maxscale="2645.83862501058"> <FCLASS type="point"> </FCLASS>> </LAYERINFO> |
GET_SERVICE_INFO request with dpi: |
<?xml version="1.0"
encoding="UTF-8"?> <ARCXML version="1.1"> <REQUEST> <GET_SERVICE_INFO dpi="192" envelope="false" fields="false" renderer="false" extensions="false"/> </REQUEST> </ARCXML> |
SERVICEINFO response: |
<?xml version="1.0"
encoding="UTF8"?> <ARCXML version="1.1"> <RESPONSE> <SERVICEINFO> <ENVIRONMENT> <LOCALE language="en" country="US" /> <UIFONT name="Arial" color="0,0,0" size="12" style="regular" /> <SEPARATORS cs=" " ts=";"/> <SCREEN dpi="192"/> <IMAGELIMIT pixelcount="1048576" /> </ENVIRONMENT> <PROPERTIES> <ENVELOPE minx="-180" miny="-90" maxx="180" maxy="90" name="Initial_Extent" /> <MAPUNITS units="decimal_degrees" /> </PROPERTIES> <LAYERINFO type="image" name="Background" visible="true" id="0"> <ENVELOPE minx="-180" miny="-89.9747543334961" maxx="179.9423828125" maxy="90" /> </LAYERINFO> <LAYERINFO type="featureclass" visible="true" name="Countries" id="1"> <FCLASS type="polygon"><FCLASS> </LAYERINFO> <LAYERINFO type="acetate" name="northarrow" visible="true" id="northarrow"/> </SERVICEINFO> </RESPONSE> </ARCXML> |