Adding geocode parameters to the geocode extension expand/collapse all
Related Topics

Summary of Geocoding Elements

Setting geocoding properties

GCSTYLE

expand/collapse item About the geocode extension and GCSTYLE

A common function in Web mapping applications is to allow users to find an address. You should use Author to initially set geocode properties. Author creates a geocode extension along with some geocode indexes for the layer. Once you have created the extension and indexes in Author, you can add additional geocode parameters in a text or XML editor.

For more details and examples, see GCSTYLE.

expand/collapse item How to add GCSTYLE attributes

expand/collapse item Adding attributes to GCSTYLE

  1. Open your map configuration file in a text or XML editor.
  2. Find the GCSTYLE element in the geocode extension.

    <EXTENSION type="Geocode">
      <GCSTYLE name="USAddressZ">
        <GCFIELD id="FromLeft" name="L_F_ADD" />
        <GCFIELD id="FromRight" name="R_F_ADD" />
        <GCFIELD id="ToLeft" name="L_T_ADD" />
        <GCFIELD id="ToRight" name="R_T_ADD" />
        <GCFIELD id="PreDir" name="PREFIX" />
        <GCFIELD id="PreType" name="PRE_TYPE" />
        <GCFIELD id="StreetName" name="NAME" />
        <GCFIELD id="StreetType" name="TYPE" />
        <GCFIELD id="SufDir" name="SUFFIX" />
        <GCFIELD id="LeftZone" name="ZIPL" />
        <GCFIELD id="RightZone" name="ZIPR" />
      </GCSTYLE>
    </EXTENSION>

  3. Add endoffset, sideoffset, sideoffsetunits, and spellingsensitivity as desired.

    <GCSTYLE name="USAddressZ" sideoffset="25" sideoffsetunits="feet" endoffset="4.0" spellingsensitivity="70">

    These attributes are optional, and you do not need to include all of them.

  4. Save your changes to the map configuration file.

Once you have added these attributes, you should not open or save your map configuration file in Author. Your edits will be removed.



Search code: @config_geocode