HowTo:  Match addresses with ampersands in the street name

相关信息
Article ID: 42050
Software:
ArcGIS - ArcEditor 10
ArcGIS - ArcInfo 10
ArcGIS - ArcView 10
ArcGIS for Desktop Advanced 10.1, 10.2
ArcGIS for Desktop Standard 10.1, 10.2
ArcGIS for Desktop Basic 10.1, 10.2
Platforms:
Windows XP, Server 2003, Vista, Server 2008, Windows 7, Windows 8, Server 2012, Server 2008 R2

问题描述
This article describes how to modify the USAddress.lot.xml file to find addresses that contain ampersands in the street name. This method uses an address locator that was created using one of the US Address address locator styles (US Address—Dual Ranges, US Address—One Range, US Address—Single House, US Address—Street Name).
已邀请:

EsriSupport

赞同来自:

解决方案

Make a copy of the USAddress.lot.xml prior to modifying the file.

Make sure to have write permissions to the Locators folder where the address locator templates are stored.


Notepad++ is an example of a text editor that can be used to modify the XML file.

  1. Open the USAddress.lot.xml in a text or XML editor. This file is found in the following location:
     C:\Program Files (x86)\ArcGIS\Desktop10.x\Locators
     
     Substitute '10.x' in the address above to match the version of ArcMap in use.
  2. Scroll down or search for the comment 'This section defines basic elements for address parameters like optional Hyphens, Decimals, numbers, alphabets, Latin Characters, unit junks, separators etc.'
  3. Modify the basic element definition for 'word' to remove the ampersand symbol from being excluded.before:
    <def name="word"><alt>`[^ \t,;#$%^&*@!~|":]+`</alt></def> 
    after:
    def name="word"><alt>`[^ \t,;#$%*@!~|":]+`</alt></def>
  4. Save the edits.
  5. Create a new address locator using any of the US Address locator styles, and use the resulting address locator to find addresses where there are ampersands in the street name.


创建及修改时间
Created: 12/30/2013

Last Modified: 11/12/2014
原文链接
http://support.esri.com/en/kno ... 42050

要回复问题请先登录注册