Using GET_SERVICE_INFO and SERVICEINFO with ArcMap Image Services |
Layer Name | Shapefile Name | Data Type | Layer ID |
Countries | CNTRY94 | Polygon | 0 |
Background | WORLD_IMG.gif | Image | 1 |
GET_SERVICE_INFO request: |
<?xml version="1.0" encoding="UTF-8"?> <ARCXML version="1.1"> <REQUEST> <GET_SERVICE_INFO envelope="true" fields="true" /> </REQUEST> </ARCXML> |
SERVICEINFO response: |
<?xml version="1.0" encoding="UTF-8"?> <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"/> <CAPABILITIES forbidden=""/> </ENVIRONMENT> <LAYOUTINFO pageunits="inches"> <ENVELOPE minx="0" miny="0" maxx="8.5" maxy="11" /> </LAYOUTINFO> <PROPERTIES> <FEATURECOORDSYS string="GEOGCS["GCS_Assumed_Geographic_1",DATUM["D_North_American_1927",SPHEROID["Clarke_1866",6378206.4,294.9786982]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]]"/> <FILTERCOORDSYS string="GEOGCS["GCS_Assumed_Geographic_1",DATUM["D_North_American_1927",SPHEROID["Clarke_1866",6378206.4,294.9786982]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]]"/> <MAPUNITS units="decimal_degrees"/> <BACKGROUND color="255,255,255"/> <ENVELOPE minx="-178.637433658708" miny="-149.932588181915" maxx="180.202305702247" maxy="148.932531819555" name="Initial_Extent" /> </PROPERTIES> <LAYERINFO type="image" name="Background" id="1" visible="true"> <ENVELOPE minx="-180.10415" miny="-89.8896767396583" maxx="179.900453479317" maxy="90.112625" /> </LAYERINFO> <LAYERINFO type="featureclass" name="Countries" id="0" visible="true"> <FCLASS type="polygon"> <ENVELOPE minx="-180" miny="-90" maxx="180" maxy="83.5960388183594" /> <FIELD name="#ID#" type="-99" size="4" precision="0" /> <FIELD name="#SHAPE#" type="-98" size="0" precision="0" /> <FIELD name="AREA" type="8" size="12" precision="11" /> <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" /> </FCLASS> </LAYERINFO> </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=";"/> <SCREEN dpi="96"/> <IMAGELIMIT pixelcount="1048576" /> <CAPABILITIES forbidden="GET_LAYOUT"/> </ENVIRONMENT> |
LAYOUTINFO and its child elements: |
<LAYOUTINFO pageunits="inches"> <ENVELOPE minx="0" miny="0" maxx="8.5" maxy="11" /> </LAYOUTINFO> |
PROPERTIES and its child elements: |
<PROPERTIES> <FEATURECOORDSYS string="GEOGCS["GCS_Assumed_Geographic_1",DATUM["D_North_American_1927",SPHEROID["Clarke_1866",6378206.4,294.9786982]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]]"/> <FILTERCOORDSYS string="GEOGCS["GCS_Assumed_Geographic_1",DATUM["D_North_American_1927",SPHEROID["Clarke_1866",6378206.4,294.9786982]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]]"/> <MAPUNITS units="decimal_degrees"/> <BACKGROUND color="255,255,255"/> <ENVELOPE minx="-178.637433658708" miny="-149.932588181915" maxx="180.202305702247" maxy="148.932531819555" name="Initial_Extent" /> </PROPERTIES> |
LAYERINFO and minimum returned information: |
<LAYERINFO type="image" name="Background" id="1" visible="true"> </LAYERINFO> <LAYERINFO type="featureclass" name="Countries" id="0" visible="true"> <FCLASS type="polygon"></FCLASS> </LAYERINFO> |
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" /> </REQUEST> </ARCXML> |
SERVICEINFO response with ENVELOPE: |
<?xml version="1.0" encoding="UTF-8"?> <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"/> <CAPABILITIES forbidden=""/> </ENVIRONMENT> <LAYOUTINFO pageunits="inches"> <ENVELOPE minx="0" miny="0" maxx="8.5" maxy="11" /> </LAYOUTINFO> <PROPERTIES> <FEATURECOORDSYS string="GEOGCS["GCS_Assumed_Geographic_1",DATUM["D_North_American_1927",SPHEROID["Clarke_1866",6378206.4,294.9786982]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]]"/> <FILTERCOORDSYS string="GEOGCS["GCS_Assumed_Geographic_1",DATUM["D_North_American_1927",SPHEROID["Clarke_1866",6378206.4,294.9786982]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]]"/> <MAPUNITS units="decimal_degrees"/> <BACKGROUND color="255,255,255"/> <ENVELOPE minx="-178.637433658708" miny="-149.932588181915" maxx="180.202305702247" maxy="148.932531819555" name="Initial_Extent" /> </PROPERTIES> <LAYERINFO type="image" name="Background" id="1" visible="true"> <ENVELOPE minx="-180.10415" miny="-89.8896767396583" maxx="179.900453479317" maxy="90.112625" /> </LAYERINFO> <LAYERINFO type="featureclass" name="Countries" id="0" visible="true"> <FCLASS type="polygon"> <ENVELOPE minx="-180" miny="-90" maxx="180" maxy="83.5960388183594" /> </FCLASS> </LAYERINFO> </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" /> </REQUEST> </ARCXML> |
SERVICEINFO response with FIELD: |
<?xml version="1.0" encoding="UTF-8"?> <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"/> <CAPABILITIES forbidden=""/> </ENVIRONMENT> <LAYOUTINFO pageunits="inches"> <ENVELOPE minx="0" miny="0" maxx="8.5" maxy="11" /> </LAYOUTINFO> <PROPERTIES> <FEATURECOORDSYS string="GEOGCS["GCS_Assumed_Geographic_1",DATUM["D_North_American_1927",SPHEROID["Clarke_1866",6378206.4,294.9786982]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]]"/> <FILTERCOORDSYS string="GEOGCS["GCS_Assumed_Geographic_1",DATUM["D_North_American_1927",SPHEROID["Clarke_1866",6378206.4,294.9786982]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]]"/> <MAPUNITS units="decimal_degrees"/> <BACKGROUND color="255,255,255"/> <ENVELOPE minx="-178.637433658708" miny="-149.932588181915" maxx="180.202305702247" maxy="148.932531819555" name="Initial_Extent" /> </PROPERTIES> <LAYERINFO type="image" name="Background" id="1" visible="true"> </LAYERINFO> <LAYERINFO type="featureclass" name="Countries" id="0" visible="true"> <FCLASS type="polygon"> <FIELD name="#ID#" type="-99" size="4" precision="0" /> <FIELD name="#SHAPE#" type="-98" size="0" precision="0" /> <FIELD name="AREA" type="8" size="12" precision="11" /> <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" /> </FCLASS> </LAYERINFO> </SERVICEINFO> </RESPONSE> </ARCXML> |
Request | Structure |
When dataframe is not included. |
<?xml version="1.0" encoding="UTF-8"?> <ARCXML version="1.1"> <RESPONSE> <SERVICEINFO> <ENVIRONMENT>...</ENVIRONMENT> <LAYOUTINFO>...</LAYOUTINFO> <PROPERTIES>...</PROPERTIES> <LAYERINFO>...</LAYERINFO> <LAYERINFO>...</LAYERINFO> </SERVICEINFO> </RESPONSE> </ARCXML> |
When dataframe is included. |
<?xml version="1.0" encoding="UTF-8"?> <ARCXML version="1.1"> <RESPONSE> <SERVICEINFO> <ENVIRONMENT>...</ENVIRONMENT> <LAYOUTINFO>...</LAYOUTINFO> <DATAFRAMEINFO> <PROPERTIES>...</PROPERTIES> <LAYERINFO>...</LAYERINFO> </DATAFRAMEINFO> <DATAFRAMEINFO> <PROPERTIES>...</PROPERTIES> <LAYERINFO>...</LAYERINFO> </DATAFRAMEINFO> </SERVICEINFO> </RESPONSE> </ARCXML> |
Usage | Result |
dataframe="" | Treated the same as if dataframe were not present in request. |
dataframe="#ALL#" | All data frames are included in response. |
dataframe="Layers" | Only information on the data frame named "Layers" is included in response. |
dataframe="Layers;States" | Information on the data frames named "Layers" and "States" is included in response. The separator used is a semicolon (;). One restriction in the ArcMap document is that data frame names cannot include a semicolon. If a semicolon is included in the data frame name, the request will likely not process correctly. |
dataframe="Layersxxx" | If a data frame in the list does not exist, an error message is returned, and the request is not processed. |
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" dataframe="#ALL#" /> </REQUEST> </ARCXML> |
SERVICEINFO response with DATAFRAMEINFO: |
<?xml version="1.0" encoding="UTF-8"?> <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"/> <CAPABILITIES forbidden=""/> </ENVIRONMENT> <LAYOUTINFO pageunits="inches"> <ENVELOPE minx="0" miny="0" maxx="8.5" maxy="11" /> </LAYOUTINFO> <DATAFRAMEINFO name="Layers"> <PROPERTIES> <FEATURECOORDSYS string="GEOGCS["GCS_Assumed_Geographic_1",DATUM["D_North_American_1927",SPHEROID["Clarke_1866",6378206.4,294.9786982]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]]"/> <FILTERCOORDSYS string="GEOGCS["GCS_Assumed_Geographic_1",DATUM["D_North_American_1927",SPHEROID["Clarke_1866",6378206.4,294.9786982]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]]"/> <MAPUNITS units="decimal_degrees"/> <BACKGROUND color="255,255,255"/> <ENVELOPE minx="-176.453309664892" miny="-120.899619477762" maxx="174.852769885559" maxy="123.217832626079" name="Initial_Extent" /> </PROPERTIES> <LAYERINFO type="image" name="Background" id="1" visible="true"> <ENVELOPE minx="-180.10415" miny="-89.8896767396583" maxx="179.900453479317" maxy="90.112625" /> </LAYERINFO> <LAYERINFO type="featureclass" name="Countries" id="0" visible="true"> <FCLASS type="polygon"> <ENVELOPE minx="-180" miny="-90" maxx="180" maxy="83.5960388183594" /> <FIELD name="FID" type="-99" size="4" precision="0" /> <FIELD name="#SHAPE#" type="-98" size="0" precision="0" /> <FIELD name="AREA" type="8" size="12" precision="11" /> <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" /> </FCLASS> </LAYERINFO> </DATAFRAMEINFO> </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" toc="true" toctype="bmp"/> </REQUEST> </ARCXML> |
SERVICEINFO response with extensions: |
<?xml version="1.0" encoding="UTF-8"?> <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"/> <CAPABILITIES forbidden=""/> </ENVIRONMENT> <LAYOUTINFO pageunits="inches"> <ENVELOPE minx="0" miny="0" maxx="8.5" maxy="11" /> </LAYOUTINFO> <PROPERTIES> <FEATURECOORDSYS string="GEOGCS["GCS_Assumed_Geographic_1",DATUM["D_North_American_1927",SPHEROID["Clarke_1866",6378206.4,294.9786982]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]]"/> <FILTERCOORDSYS string="GEOGCS["GCS_Assumed_Geographic_1",DATUM["D_North_American_1927",SPHEROID["Clarke_1866",6378206.4,294.9786982]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]]"/> <MAPUNITS units="decimal_degrees"/> <BACKGROUND color="255,255,255"/> <ENVELOPE minx="-178.637433658708" miny="-149.932588181915" maxx="180.202305702247" maxy="148.932531819555" name="Initial_Extent" /> </PROPERTIES> <LAYERINFO type="image" name="Background" id="1" visible="true"> <TOC> <TOCGROUP heading="RGB Composite"> <TOCCLASS label="Red: Band_1" description="Red: Band_1"<Qk0SCQ ...5uAAAA</TOCCLASS> <TOCCLASS label="Red: Band_2" description="Red: Band_2"<Qk0SCQ ...5uAAAA</TOCCLASS> <TOCCLASS label="Red: Band_3" description="Red: Band_3"<Qk0SCQ ...5uAAAA</TOCCLASS> </TOCGROUP> </TOC> </LAYERINFO> <LAYERINFO type="featureclass" name="Countries" id="0" visible="true"> <FCLASS type="polygon"></FCLASS> <TOC> <TOCGROUP> <TOCCLASS label="" description="">Qk0SCQ ...5uAAAA</TOCCLASS> </TOCGROUP> </TOC> </LAYERINFO> </SERVICEINFO> </RESPONSE> </ARCXML> |
<LAYERINFO type="featureclass" name="Countries" id="0" visible="true" maxscale="3307.29828126323"> <FCLASS type="point"> </FCLASS>> </LAYERINFO> |
<LAYERINFO type="featureclass" name="Countries" id="0" visible="true" 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" /> </REQUEST> </ARCXML> |
SERVICEINFO response: |
<?xml version="1.0" encoding="UTF-8"?> <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=";"/> <IMAGELIMIT pixelcount="1048576"/> <SCREEN dpi="192"/> <CAPABILITIES forbidden=""/> </ENVIRONMENT> <LAYOUTINFO pageunits="inches"> <ENVELOPE minx="0" miny="0" maxx="8.5" maxy="11" /> </LAYOUTINFO> <PROPERTIES> <FEATURECOORDSYS string="GEOGCS["GCS_North_American_1983",DATUM["D_North_American_1983",SPHEROID["GRS_1980",6378137.0,298.257222101]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]]"/> <FILTERCOORDSYS string="GEOGCS["GCS_North_American_1983",DATUM["D_North_American_1983",SPHEROID["GRS_1980",6378137.0,298.257222101]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]]"/> <MAPUNITS units="decimal_degrees"/> <BACKGROUND color="255,255,255"/> <ENVELOPE minx="-183.780014728684" miny="0.589718314252654" maxx="-61.4068546696843" maxy="89.741298838335" name="Initial_Extent" /> </PROPERTIES> <LAYERINFO type="featureclass" name="STATES" id="2" visible="true"> <FCLASS type="polygon"></FCLASS> </LAYERINFO> <LAYERINFO type="featureclass" name="COUNTIES" id="1" visible="true" maxscale="0.011897304807224"> <FCLASS type="polygon"></FCLASS> </LAYERINFO> <LAYERINFO type="featureclass" name="CITIES" id="0" visible="true" minscale="0.002379460961445" maxscale="0.014276765768669"> <FCLASS type="point"></FCLASS> </LAYERINFO> </SERVICEINFO> </RESPONSE> </ARCXML> |