GCSTYLE | Examples |
<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. |
GCSTYLE Address Style | Description |
---|---|
USAddressZ | U.S. streets with zone: This style considers street addresses with zone information such as postal ZIP Codes or city names. Street features are represented by two house number intervals, one for the left side of the street and the other for the right side of the street. The parity (odd/even) of each interval should agree. The beginning number of the intervals can either be lower or higher than the end number. |
USAddress | U.S. streets: This style is used for address geocoding without zone information. Street features are represented by two house number intervals, one for the left side of the street and the other for the right side of the street. |
USSingleRangeZ | U.S. single range with zone: This style considers street or parcel addresses with zone information such as postal ZIP Codes or city names. Features are represented by one house number interval. No parity (odd/even) of the house numbers is required. |
USSingleRange | U.S. single range: This style is used for address geocoding without zone information. Features are represented by one house number interval. No parity (odd/even) of the house numbers is required. |
USSingleHouseZ | U.S. single house with zone: This style considers parcel or point addresses with zone information such as postal ZIP Codes or city names. Features are represented by a single house number. |
USSingleHouse | U.S. single house: This style is used for address geocoding without zone information. Features are represented by a single house number. |
Zip4 | ZIP+4: This style is used for geocoding ZIP+4 using two components (ZIP and ZIP4). |
Zip4Range | ZIP+4 range: This style is used for geocoding ZIP+4 in a range using three components (ZIP, ZIP4Low, and ZIP4High). |
Zip5 | ZIP 5-digit: This style is used for geocoding five-digit ZIP Code addresses. |
SingleField | Single field: This style is used for geocoding based on the value of a single field in the reference layer's attribute table. The style contains one component (Keyfield). |
Attribute | Usage | Back to Top |
---|---|---|
name | Geocoding style. See Notes section for a description of the different geocoding styles. |
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: 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 4: 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 5: 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 6: 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 7: 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 8: Zip5 Style. | Back to Top |
<EXTENSION
type="Geocode"> <GCSTYLE name="Zip5"> <!--reqd--> <GCFIELD id="ZIP" name="ZIPL" /> </GCSTYLE> </EXTENSION> |
Example 9: SingleField Style. | Back to Top |
<EXTENSION
type="Geocode"> <GCSTYLE name="SingleField"> <!--reqd--> <GCFIELD id="KeyField" name="NAME" /> </GCSTYLE> </EXTENSION> |
Example 10: 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 11: When in a SERVICEINFO response that was routed to the Geocode Server. | Back to Top |
<?xml version="1.0"
encoding="UTF8"?> <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> |
Example 12: When in a SERVICEINFO response. | Back to Top |
<?xml version="1.0"
encoding="UTF8"?> <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> |