GIS Procedural Guide Geocoding / Address Matching in ArcGIS Created by Steve Zuppa, Map Library Assistant - Serge A. Sauer Map Library, 2008

Size: px
Start display at page:

Download "GIS Procedural Guide Geocoding / Address Matching in ArcGIS Created by Steve Zuppa, Map Library Assistant - Serge A. Sauer Map Library, 2008"

Transcription

1 GIS Procedural Guide Geocoding / Address Matching in ArcGIS Created by Steve Zuppa, Map Library Assistant - Serge A. Sauer Map Library, 2008 Introduction In a traditional business database, street addresses are the most common form of geographic data. Using a GIS, this geographic component can be estimated and mapped based on an existing spatial database, such as a street network. This process is called address matching or geocoding. Step 1 Find the Data You need at least two data elements to geocode in ArcGIS: a table containing the addresses you would like to map and a proper road network data file. a) Address Table You will need to build a table consisting of addresses you would like to geocode. Normally some type of description of the address (ie. business name, or zoning type etc.) should be present in the table as well. Your table can be saved in a number of different formats (*.xls, *.csv, *.dbf, etc.), depending on the software installed on your computer. All UWO computers have access to Microsoft Office, so for this example, Excel has been utilized to create an address table for Record Stores in London, and has been saved in standard xls file format. Data was gathered from by undertaking a simple search for Music- Records, Compact Discs & Tapes within London, Ontario. Our table contains columns for Business ID, Business Name, Address, City Province, and Postal Code, however only the Address field is truly necessary (see below). Notice that the addresses are stored within one field in a very simple format (number name suffix). b) Road Network File Your road network file must have appropriate fields for Geocoding, mainly information on Street Name, Street Type, Street Direction, Address from Left, Address to Left, Address from Right, and Address to Right. Don t worry, this type of network file is very easy to find, either freely on the web or via consortium agreement data available to all UWO faculty, staff or students. For free data, Statistics Canada is an excellent source for free Canadian road network files that contain proper information for geocoding. These files are updated annually and are available to download in ARC/INFO shapefile format at:

2 For restricted (UWO only) data, see the DMTI CanMap RouteLogistics package available through the Map Library or the Data Resources Library. For this example, we will use Statistic Canada s 2008 Ontario Road Network file. Since we are only looking at addresses within London, the Road Network file has been clipped to London city boundary. Step 2 Build and Address Locator Open ArcCatalog and use the Catalog Tree to navigate to the folder where your data is stored. Note: You may need to Connect to Folder if you cannot see your folder in the Tree. Right click on folder name and select New Address Locator. Scroll down to select the US Streets (File) option (this is just a generic name). In the following window, give your new Address Locator a suitable name and in the Primary table tab select the 2008 Road Network as your reference data. You may want to check Store relative path names if you plan on moving your data to another folder or computer Make sure the appropriate Fields are selected below. If you are using the Statistics Canada Road Network File, the matching Fields are: House From Left: ADDR_FM_LE House To Left: ADDR_TO_LE House From Right: ADDR_FM_RG House To Right: ADDR_TO_RG Prefix Direction: <None> Prefix Type: <None> Street Name: NAME Street Type: TYPE Street Direction: DIRECTION The other options allow you to adjust matching scores and whether you want your point offset from the road line. We ll leave it as the default. Your window should look similar to the graphic below. Click OK. 2

3 Step 3 Geocode Addresses Open ArcMap and add your Road Network file. Next, add the table containing the addresses you would like to geocode. *Note: if you are using an XLS file, you will need to double click on the file name in the Add Data window, and then select the appropriate sheet (in this case it would be record_stores$). Make sure the Source tab is selected at the bottom of the ArcMap table of contents, so you are able to see both the road layer and the address table. See graphic below. Right click on your table name and select Geocode Addresses. You will need to Add the Address Locator you created in the previous step. Click on Add and browse to the folder where you stored your Locator. Click Add and then OK. In the following Geocode Addresses window, make sure your Address Table is properly selected; the Street or Intersection is set to your address field in your table; and make sure give an appropriate name and location to your Output shapefile. Click OK. Make sure the appropriate table is being used and the ADDRESS field is selected as the Address Input Field. You have the option of setting additional Geocoding Options including matching scores and offsets. For this example, we ll just use the defaults. Make sure to define and save your Output as a shapefile (or if you are saving to a geodatabase, then select Feature Classes ), and give it a suitable name. Click OK to geocode. 3

4 The next window will indicate how many of your address points were matched and unmatched. If all of your points matched with a suitable score, then you don t have to worry about the next step. If you have any that didn t match for some reason, you can attempt to manually match the address to your data. In this example, all of the records stores but one matched successfully. Now we ll try to figure out why the one address didn t match. Click Match Interactively. In our example, the one address that didn t match was for Speed City Records. The address we have recorded for this record store is 2909 SPRINGBANK DRIVE. Looking through the Interactive Review folder and scrolling through the list of potential matches (Candidates) and concentrating on the numbers shown in the LeftFrom, LeftTo, etc. it looks like there are no numbers up in the range. All the potential candidates have a relatively low score of 38% or less. This could indicate a problem with the table address data. Checking back with reveals that the actual address for Speed City Records is actually 299 SPRINGBANK DRIVE. It seems there was a typo in the data entry phase of our geocoding project. By clicking the Modify button and changing the HouseNum field to 299, we now have a candidate that has a match score of 100%. We ll select that candidate and click the Match and then the Done button. Click done in the Review/Rematch Address window and your points should be visible in the ArcMap display. You now have successfully Geocoded your addresses! You can use your point shapefile layer in any way you see fit. Here s a sample map made with some of the record store points and free Canada-wide NTDB data (available for download via Geogratis, see 4

5 Downtown Record Stores - London, Ontario L'Atelier Grigorian Mandala Books Music & Video Place DUNDAS ST DUNDAS ST QUEENS AVE Dundas Discs Sunrise Records YORK ST Grooves City Lights Bookshop STANLEY ST RICHMOND ST HORTON ST E WELLINGTON ST The Village Idiot WELLINGTON RD Base Data: NTDB, Map Sheets 40P3, 40I ,000 Metres