ENVIRONMENT

Used in

CONFIG  REQUEST  RESPONSE  Application Server RESPONSE  

Parent elements

CONFIG  GET_EXTRACT  GET_FEATURES  GET_IMAGE  GET_PROJECT  SERVICE  SERVICEINFO 

Syntax

<ENVIRONMENT >
     No Attributes


     When parent element is CONFIG:
     (r)<LOCALE... />
     (r)<UIFONT... />
     <SCREEN... />
     <SEPARATORS... />

     When parent element is GET_EXTRACT, GET_FEATURES, GET_IMAGE, GET_PROJECT:
     <SEPARATORS... />

     When parent element is SERVICE:
     (r)<LOCALE... />
     (r)<UIFONT... />

     When parent element is SERVICEINFO when sent to Geocode Server:
     (r)<CAPABILITIES... />
     (r)<LOCALE... />
     (r)<SEPARATORS... />
     (r)<UIFONT... />

     When parent element is SERVICEINFO when sent to Image, Feature, or ArcMap Servers:
     (r)<CAPABILITIES... />
     (r)<IMAGELIMIT... />
     (r)<LOCALE... />
     (r)<SCREEN... />
     (r)<SEPARATORS... />
     (r)<UIFONT... />

</ENVIRONMENT >
(r): Attribute or child element is required.

Description

The parent element for setting the ArcIMS environment.

Restrictions

 

Examples for ENVIRONMENT

Example 1: When in CONFIG.
<?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" />
        <FILTERCOORDSYS id="4326" />
        <FEATURECOORDSYS id="4326"/>
      </PROPERTIES>
      <WORKSPACES>
        <SHAPEWORKSPACE name="shp_ws-18" directory="<path to WORLD ESRIDATA>" />
      </WORKSPACES>
      <LAYER type="featureclass" name="CNTRY94" visible="true" id="0">
        <DATASET name="CNTRY94" type="polygon" workspace="shp_ws-18" />
        <SIMPLERENDERER>
          <SIMPLEPOLYGONSYMBOL fillcolor="127,227,127" filltype="solid" />
        </SIMPLERENDERER>
      </LAYER>
    </MAP>
  </CONFIG>
</ARCXML>

Example 2: When in an application server RESPONSE to GETCLIENTSERVICES.
<?xml version="1.0"?>
<ARCXML version="1.1">
  <RESPONSE>
    <SERVICES>
      <SERVICE name="europe" servicegroup="ImageServer1" access="PUBLIC" type="ImageServer" version=""  status="ENABLED" >
        <IMAGE type="JPG" />
        <ENVIRONMENT>
          <LOCALE country="US" language="en" variant="" />
          <UIFONT name="Arial" />
        </ENVIRONMENT>
        <CLEANUP interval="10" />
      </SERVICE>
    </SERVICES>
  </RESPONSE>
</ARCXML>

Back to top