GCSTYLE  Examples
 
Used in:  CONFIG   RESPONSE  
Servers: 
Geocode  
Parent elements: 
EXTENSION  
<GCSTYLE Attribute Description Table
     name ="USAddressZ | USAddress | USSingleHouse | USSingleHouseZ | USSingleRange | USSingleRangeZ | Zip4 | Zip4Range | Zip5 | SingleField"
>



     When parent element is EXTENSION in map configuration file:
     (m) <GCFIELD... />


     When parent element is EXTENSION in SERVICEINFO response:
     (m) <GCINPUT... />


</GCSTYLE >
Bold: Attribute or child element is required.
(m):
 Child element can be used multiple times.

Description:

    Identifies the geocoding style used for a layer.

Restrictions:

    None

Notes:

 

Attribute Descriptions for GCSTYLE:

Attribute Usage Back to Top
name 1 Geocoding style. See Notes section for a description of the different geocoding styles.
 

Examples for GCSTYLE:

Example 1: USAddressZ Style. Required elements are noted with <!--reqd-->. 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>
      <PROPERTIES>
       <ENVELOPE minx="-71.077092" miny="42.357962" maxx="-71.034511" maxy="42.385263" name="Initial_Extent" />
       <MAPUNITS units="decimal_degrees" />
      </PROPERTIES>
      <WORKSPACES>
       <SHAPEWORKSPACE name="shp_ws-64" directory="<path to data>" />
      </WORKSPACES>
      <LAYER type="featureclass" name="Streets" visible="true" id="4">
       <DATASET name="bosstreets" type="line" workspace="shp_ws-64" />
       <SIMPLERENDERER>
         <SIMPLELINESYMBOL type="solid" width="2" color="255,0,0" />
       </SIMPLERENDERER>
       <EXTENSION type="Geocode">
         <GCSTYLE name="USAddressZ">
<!--reqd--> <GCFIELD id="FromLeft" name="L_F_ADD" />
<!--reqd--> <GCFIELD id="FromRight" name="R_F_ADD" />
<!--reqd--> <GCFIELD id="ToLeft" name="L_T_ADD" />
<!--reqd--> <GCFIELD id="ToRight" name="R_T_ADD" />
            <GCFIELD id="PreDir" name="PREFIX" />
            <GCFIELD id="PreType" name="PRE_TYPE" />
<!--reqd--> <GCFIELD id="StreetName" name="NAME" />
            <GCFIELD id="StreetType" name="TYPE" />
            <GCFIELD id="SufDir" name="SUFFIX" />
<!--reqd--> <GCFIELD id="LeftZone" name="ZIPL" />
<!--reqd--> <GCFIELD id="RightZone" name="ZIPR" />
         </GCSTYLE>
       </EXTENSION>
      </LAYER>
    </MAP>
  </CONFIG>
</ARCXML>
 
Example 2: USAddress Style. Back to Top
<EXTENSION type="Geocode">
          <GCSTYLE name="USAddress">
<!--reqd--> <GCFIELD id="FromLeft" name="L_F_ADD" />
<!--reqd--> <GCFIELD id="FromRight" name="R_F_ADD" />
<!--reqd--> <GCFIELD id="ToLeft" name="L_T_ADD" />
<!--reqd--> <GCFIELD id="ToRight" name="R_T_ADD" />
            <GCFIELD id="PreDir" name="PREFIX" />
            <GCFIELD id="PreType" name="PRE_TYPE" />
<!--reqd--> <GCFIELD id="StreetName" name="NAME" />
            <GCFIELD id="StreetType" name="TYPE" />
            <GCFIELD id="SufDir" name="SUFFIX" />
          </GCSTYLE>
</EXTENSION>
 
Example 3: USSingleHouseZ Style. Back to Top
<EXTENSION type="Geocode">
   <GCSTYLE name="USSingleHouseZ">
<!--reqd--><GCFIELD id="HouseNum" name="HOUSE_NUM" />
     <GCFIELD id="PreDir" name="PRE_DIR" />
     <GCFIELD id="PreType" name="PRE_TYPE" />
<!--reqd--><GCFIELD id="StreetName" name="STREET_NAM" />
     <GCFIELD id="StreetType" name="STREET_TYP" />
     <GCFIELD id="SufDir" name="SUF_DIR" />
<!--reqd--><GCFIELD id="Zone" name="ZIP" />
   </GCSTYLE>
</EXTENSION>
 
Example 4: USSingleHouse Style. Back to Top
<EXTENSION type="Geocode">
        <GCSTYLE name="USSingleHouse">
<!--reqd--> <GCFIELD id="HouseNum" name="ADDRESS" />
          <GCFIELD id="PreDir" name="PREFIX" />
          <GCFIELD id="PreType" name="PRE_TYPE" />
<!--reqd--> <GCFIELD id="StreetName" name="NAME" />
          <GCFIELD id="StreetType" name="TYPE" />
          <GCFIELD id="SufDir" name="SUFFIX" />
        </GCSTYLE>
</EXTENSION>
 
Example 5: USSingleRangeZ Style. Back to Top
<EXTENSION type="Geocode">
        <GCSTYLE name="USSingleRangeZ">
<!--reqd--> <GCFIELD id="From" name="FROM_ADD" />
<!--reqd--> <GCFIELD id="To" name="TO_ADD" />
          <GCFIELD id="PreDir" name="PREFIX" />
          <GCFIELD id="PreType" name="PRE_TYPE" />
          <GCFIELD id="StreetName" name="NAME" />
<!--reqd--> <GCFIELD id="StreetType" name="TYPE" />
          <GCFIELD id="SufDir" name="SUFFIX" />
<!--reqd--> <GCFIELD id="Zone" name="CFCC" />
        </GCSTYLE>
</EXTENSION>
 
Example 6: USSingleRange Style. Back to Top
<EXTENSION type="Geocode">
        <GCSTYLE name="USSingleRange">
<!--reqd--> <GCFIELD id="From" name="FROM_ADD" />
<!--reqd--> <GCFIELD id="To" name="TO_ADD" />
          <GCFIELD id="PreDir" name="PREFIX" />
          <GCFIELD id="PreType" name="PRE_TYPE" />
<!--reqd--> <GCFIELD id="StreetName" name="NAME" />
          <GCFIELD id="StreetType" name="TYPE" />
          <GCFIELD id="SufDir" name="SUFFIX" />
        </GCSTYLE>
</EXTENSION>
 
Example 7: Zip4 Style. Back to Top
<EXTENSION type="Geocode">
        <GCSTYLE name="Zip4">
<!--reqd--> <GCFIELD id="ZIP" name="ZIP" />
<!--reqd--> <GCFIELD id="ZIP4" name="ZIP4" />
        </GCSTYLE>
</EXTENSION>
 
Example 8: Zip4Range Style. Back to Top
<EXTENSION type="Geocode">
        <GCSTYLE name="Zip4Range">
<!--reqd--> <GCFIELD id="ZIP" name="ZIP" />
<!--reqd--> <GCFIELD id="Zip4Low" name="ZIPL" />
<!--reqd--> <GCFIELD id="Zip4High" name="ZIPH" />
        </GCSTYLE>
</EXTENSION>
 
Example 9: Zip5 Style. Back to Top
<EXTENSION type="Geocode">
        <GCSTYLE name="Zip5">
<!--reqd--> <GCFIELD id="ZIP" name="ZIPL" />
        </GCSTYLE>
</EXTENSION>
 
Example 10: SingleField Style. Back to Top
<EXTENSION type="Geocode">
        <GCSTYLE name="SingleField">
<!--reqd--> <GCFIELD id="KeyField" name="NAME" />
        </GCSTYLE>
</EXTENSION>
 
Example 11: When in a SERVICEINFO response. Back to Top
<?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" />
      </ENVIRONMENT>
      <PROPERTIES>
        <ENVELOPE minx="-71.077172" miny="42.355504" maxx="-71.034431" maxy="42.387721" name="Initial_Extent" />
        <MAPUNITS units="decimal_degrees" />
      </PROPERTIES>
      <LAYERINFO type="featureclass" visible="true" name="Streets" id="0">
        <FCLASS type="line"></FCLASS>
        <EXTENSION type="Geocode" >
          <GCSTYLE name="USAddressZ" />
        </EXTENSION>
      </LAYERINFO>
    </SERVICEINFO>
  </RESPONSE>
</ARCXML>
 
Example 12: When in a SERVICEINFO response that was routed to the Geocode Server. Back to Top
<?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=";"/>
      </ENVIRONMENT>
      <LAYERINFO name="Streets" id="4" >
        <EXTENSION type="geocode">
          <GCSTYLE name="USAddressZ" >
            <GCINPUT id="STREET" type="text" label="Street" width="10" description="street number, street name and type" />
            <GCINPUT id="ZONE" type="text" label="Zone" width="5" description="zone information" />
            <GCINPUT id="CROSSSTREET" type="text" label="Cross street" width="10" description="cross street name and type" />
          </GCSTYLE>
        </EXTENSION>
      </LAYERINFO>
    </SERVICEINFO>
  </RESPONSE>
</ARCXML>