OUTPUTFIELD  Examples

Used in:  CONFIG   RESPONSE  
Servers:  Extract  
Parent elements:  OUTPUTFILE  

<OUTPUTFIELD Attribute Description Table

     alias ="string"
     name ="string"
>

     No Child Elements
</OUTPUTFIELD >
Bold: Attribute or child element is required.


Description:


Restrictions:


Notes:


Attribute Descriptions for OUTPUTFIELD:

Attribute Usage Back to Top
alias Alias name for field in the database.

Shapefiles use DBF files to store attribute data, and fields in a DBF are limited to 10 characters. Since other databases often allow more than 10 characters, it is possible to end up with two fields in the DBF file with the same name. ArcIMS will not allow shapefiles with duplicate field names to be used. In this scenario, an alias name should be used.
name Name of field in the database.
 

Examples for OUTPUTFIELD:

Example 1: 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 dynamic="true">
      <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-2" directory="<path to USA ESRIDATA>" />
      </WORKSPACES>
      <LAYER type="featureclass" name="STATES" visible="true" id="States">
        <DATASET name="STATES" type="polygon" workspace="shp_ws-2" />
        <EXTENSION type="Extract" >
          <EXTRACTPARAMS clip="true" />
        </EXTENSION>
        <SIMPLERENDERER>
          <SIMPLEPOLYGONSYMBOL filltype="solid" fillcolor="255,0,0" />
        </SIMPLERENDERER>
      </LAYER>
      <LAYER type="featureclass" name="CITIES" visible="true" id="35">
        <DATASET name="CITIES" type="point" workspace="shp_ws-2" />
        <SIMPLERENDERER>
          <SIMPLEMARKERSYMBOL color="102,0,102" width="8.0" />
        </SIMPLERENDERER>
        <SPATIALQUERY where="POP1990 &gt; 100000" subfields="CITY_NAME STATE_NAME POP1990 MALES FEMALES"  />
        <EXTENSION type="Extract" >
        <EXTRACTPARAMS clip="true" >
          <OUTPUTFILE file="us_cities" >
            <OUTPUTFIELD name="CITY_NAME" alias="City" />
            <OUTPUTFIELD name="STATE_NAME" alias="State" />
            <OUTPUTFIELD name="POP1990" alias="Population" />
            <OUTPUTFIELD name="MALES" alias="Male_pop" />
            <OUTPUTFIELD name="FEMALES" alias="Female_pop" />
          </OUTPUTFILE>
        </EXTRACTPARAMS>
        </EXTENSION>
      </LAYER>
    </MAP>
  </CONFIG>
</ARCXML>