ARCGIS ESRI GIS. Geocoding Tutorial (eBook - PDF)

  • Published on
    29-Oct-2015

  • View
    211

  • Download
    3

Transcript

  • IN THIS CHAPTER

    1

    Exercise 1: Locating andrematching addresses

    Exercise 2: Using alternatenames and place name aliases

    Exercise 3: Dynamicallygeocoding addresses

    Geocoding addresses on anArcSDE server

    This tutorial introduces you to geocoding with ESRIfi ArcGIS 8.1. It willshow you the basic techniques for creating geocoding services andperforming address geocoding with ArcGIS. Complete exercises 2 and 3 tolearn about some advanced featuresusing alternate names and placename aliases and creating a dynamic feature class that is related to theaddress table.

    This tutorial assumes that you are already familiar with using ArcCatalogand ArcMap. You should know how to copy data to a new location andadd data to a map. You should also have a basic understanding about whata geodatabase is and the objects they can contain. If youre new to GIS orfeel you need to refresh your knowledge, please take some time to readGetting Started with ArcGIS. You might also work though the quick-starttutorials in Using ArcCatalog and Using ArcMap.

    Geocoding tutorial

  • 2 GEOCODING TUTORIAL

    Exercise 1: Locating and rematching addressesIn the first part of this tutorial youll learn how to create anew geocoding service, how to locate an address on a map,and how to create a set of point features representing streetaddresses stored in a table such as customer locations.

    Before you begin, you must make a copy of the data usedin this tutorial so the original tutorial data will remainunmodified. Copy the Atlanta folder to a new location onyour computer such as the C:\ disk; youll find it in theArcTutor\Geocoding folder on the local disk where thetutorial data was installedfor example, at C:\ArcGIS.Youll need 5 MB of free disk space to store the Atlantafolder.

    The Atlanta folder contains a personal geodatabase namedAtlanta.

    Creating a new geocoding serviceA geocoding service lets you convert textual descriptionsof locations into geographic features. The GeocodingServices folder at the top level of the Catalog tree lets youmanage existing and create new geocoding services on

    your computer. The first thing youll do is create ageocoding service based on your copy of the Atlantapersonal geodatabase.

    1. Start ArcCatalog.

    2. In the Geocoding Services folder at the top level in theCatalog tree, double-click Create New GeocodingService.

    The Create New Geocoding Service dialog box appears.

    3. Click the geocoding style US Streets with Zone (GDB),then click OK.

  • GEOCODING TUTORIAL 3

    The New US Streets with Zone (GDB) GeocodingService dialog box appears.

    4. In the Name text box, replace the default name NewGeocoding Service with the name Atlanta.

    5. In the Primary table tab, click the Browse button next tothe Reference data text box.

    6. In the Choose Reference Data dialog box, navigate tothe folder containing your copy of the Atlanta personalgeodatabase. Double-click the personal geodatabase,click the streets feature class, then click Add.

    7. Click OK in the New US Streets with Zone (GDB)Geocoding Service dialog box. The new geocodingservice appears in the Geocoding Services folder.

    Youll notice that the name of the geocoding service isprefaced by your login name. If your login name isssmith, the geocoding service would appear in theCatalog as ssmith.Atlanta. New geocoding servicesare private; other users who log in to the same computerwont have access to your geocoding services.

    When the new geocoding service is created, ageocoding index is built for the streets feature classwithin the Atlanta geodatabase. The index is stored in anew table named GC_SZS1 in the Atlanta geodatabase.With this index, the street features can be quicklymatched to the addresses you want to geocode.

    You can modify a geocoding services properties after ithas been created.

    8. Right-click the yourLogin.Atlanta geocoding service andclick Properties. The Geocoding Service Propertiesdialog box appears.

    9. On the right under Matching Options, you can see thatthe default Minimum candidate score is 10. Change thisvalue to 30.

    5

  • 4 GEOCODING TUTORIAL

    10. Click OK.

    Your changes are saved in the geocoding service. Now youcan use this geocoding service to find out where addressesare located on a map.

    Finding an address interactivelyYou can use geocoding services to locate addresses whileyour are working in ArcMap.

    1. Start ArcMap and click OK to create a new, emptymap.

    2. Add the streets feature class in the Atlanta geodatabaseto the map.

    3. Click the Find button on the Tools toolbar.

    4. In the Find dialog box, click the Addresses tab.

    Before you can locate an address on your map, youmust identify the geocoding service you want to use.

    5. Click the Browse button to choose a geocoding service.Navigate to the Geocoding Services folder, click theyourLogin.Atlanta geocoding service, and click Add.

    6. Type 150 Linden Ave NE in the Street or Intersectiontext box. Type 30308 in the Zone text box.

    7. Click Find.

    One candidate address appears in the list at the bottomof the Find dialog box.

    8. Right-click the candidate and click Add as Graphic(s) toMap.

    Find

    9

  • GEOCODING TUTORIAL 5

    A graphic point representing the addresss locationappears on the map.

    9. Check Show all candidates in the Find dialog box andclick Find again.

    This time youll see several candidates in the list. Allcandidates whose score is above the minimum candidatescore as defined in the geocoding service will appear inthe list. When Show all candidates is not checked, onlycandidates whose score is above the minimum matchscore will be listed. For this geocoding service theminimum candidate score is 30 and the minimum matchscore is 60.

    10. Click the Close button in the upper right corner of theFind dialog box.

    The list of candidates is generated by breaking the addressinto its individual components, then comparing each

    component to the reference data. The score indicates howclosely each candidate feature in the reference datamatches the address that you are geocoding. A score willbe lower if the street number doesnt fall within the addressrange for the candidate or if the street name is misspelled,for example.

    Geocoding addresses in a tableIf you have a table that contains address information, youcan geocode all of its addresses at once. This can show youwhere your customers are located.

    1. Open a new map document in ArcMap. Dont save themap you created in the previous task.

    2. Add the streets feature class and the customers tablefrom the Atlanta geodatabase to your map.

    3. Click the Tools menu, point to Geocoding, then clickGeocode Addresses. Or right-click the customers tablein the Source tab of the maps table of contents andclick Geocode Addresses.

    4. Click Add.

    5. In the Add Geocoding Service dialog box, navigate tothe Geocoding Services folder, click theyourLogin.Atlanta geocoding service, then click Add.

    6. Click yourLogin.Atlanta in the Choose a geocodingservice to use dialog box, then click OK.

  • 6 GEOCODING TUTORIAL

    7. In the Geocode Addresses: yourLogin.Atlanta dialogbox, click the Browse button to define the Outputshapefile or feature class.

    8. In the Saving Data dialog box, navigate to the Atlantapersonal geodatabase, then double-click the personalgeodatabase. Click the Save as type dropdown arrow,then click Personal Geodatabase feature classes. In theName text box, type atlanta_results. Click Save.

    A new point feature class named atlanta_results will becreated in the Atlanta geodatabase. The point featuresgenerated by the geocoding process will be saved in thatfeature class.

    9. Click OK to start geocoding.

    When the geocoding process is finished, the Review/Rematch Addresses dialog box appears. It shows thestatistics of the addresses that were matched or notmatched. Youll rematch the unmatched addresses laterin the tutorial.

    7

  • GEOCODING TUTORIAL 7

    10. Click Done.

    A Geocoding Result layer is added to the map. It shows thepoints that were added to the atlanta_results feature class.

    You can geocode a table of addresses in ArcCatalog aswell as ArcMap. To do so, you would right-click thecustomers table in the Atlanta geodatabase and clickGeocode Addresses. In the Select Geocoding Service dialogbox, you would click yourLogin.Atlanta and click OK.Then, you would follow steps 8 through 10 in the task aboveto match the addresses. When you geocode a table ofaddresses in ArcCatalog, the resulting feature class will notbe added to ArcMap automatically.

    Rematch addresses1. In ArcMap, click the Geocoding Result: atlanta_results

    layer in the table of contents.

    2. Click the Tools menu, point to Geocoding, point toReview/Rematch Addresses, then click GeocodingResult: atlanta_results. Or right-click the GeocodingResult: atlanta_results layer, point to Data, then clickReview/Rematch Addresses.

    3. The message This operation requires that you beediting this workspace. Would you like to start editing?appears. Click Yes.

    The Review/Rematch Addresses dialog box appears.

    4. In the Rematch Criteria, click Addresses withcandidates tied.

    5. Click Match Interactively.

  • 8 GEOCODING TUTORIAL

    The Interactive Review dialog box appears. Theaddress records that you have chosen to rematch arelisted at the top of the dialog box. In this exercise thereis one record in the feature class that has candidatesthat are tied for the highest match score. The tiedcandidates are listed at the bottom of the dialog box.

    6. Arrange the ArcMap window and the InteractiveReview dialog box so you can see the map. The locationof the selected candidate is highlighted on the map.

    7. Click the second candidate in the candidate list. Thelocation of the highlighted candidate changes on themap.

    8. In the bottom right-hand corner of the InteractiveReview dialog box, click Match. The selected address inthe list at the top of the dialog box is now associatedwith the second candidate in the list at the bottom.

    9. Click Close.

    10. Click Done in the Review/Rematch Addresses dialogbox.

    As with geocoding, you can also rematch addresseswith ArcCatalog. To do so, refresh the contents of theAtlanta geodatabase if you dont see the atlanta_resultsfeature class listed in the Contents tab. Right-click theatlanta_results feature class, then clickReview/Rematch Addresses. Follow steps 4 through 8above to rematch the addresses. When you rematchaddresses with ArcCatalog, the locations of thecandidates will not appear on a map.

    11. On the Editor toolbar, click the Editor menu and clickStop Editing. Click Yes to save your changes.

  • GEOCODING TUTORIAL 9

    A geocoding service has the option to use alternate namesand place name aliases. Place name aliases let youassociate names of well-known places with streetaddressesfor example, the names of museums, hospitals,or landmarks. When geocoding an address, the place namealias table is consulted first. If found, the street addressfrom the place name alias table is geocoded instead.Similarly, alternate names can be defined for features in thereference data. When geocoding an address, the alternatestreet name table is also searched to find potentialcandidates.

    Creating a geocoding service that uses alternatenames and place name aliasesIn this task youll create a new geocoding service that usesalternate names and place name aliases, then use thatservice in ArcMap to find addresses.

    1. In ArcCatalog, click the Geocoding Services folder atthe top level in the Catalog tree, then double-clickCreate New Geocoding Service.

    2. Click the geocoding style US Streets with AltName(GDB), then click OK.

    The New US Streets with AltName (GDB) GeocodingService dialog box appears.

    3. In the Name text box, replace the default name NewGeocoding Service with the name Atlanta_AltName.

    4. In the Primary table tab, click the Browse button next tothe Reference data text box.

    5. In the Choose Reference Data dialog box, navigate tothe Atlanta personal geodatabase. Double-click thepersonal geodatabase, click the streets feature class,then click Add.

    8

    Exercise 2: Using alternate names and place name aliases

  • 10 GEOCODING TUTORIAL

    6. In the New US Streets with AltName (GDB)Geocoding Service dialog box, click the Alternate Nametable tab.

    7. Click the Browse button next to the Reference data textbox.

    8. In the Choose Reference Data dialog box, navigate tothe Atlanta personal geodatabase. Double-click thepersonal geodatabase, click the altname table, then clickAdd.

    9. In the Alternate Name table tab, click the Join IDdropdown list, then click ALTNAME_ID.

    The ALTNAME_ID column in the altname table andthe OBJECTID column in the streets feature class areused to join the table and the feature class together.

    10. On the right under Matching Options, click Place NameAlias Table.

    The Alias Table dialog box appears.

    11. Click the Browse button, then navigate to the Atlantageodatabase. Double-click the personal geodatabase,click the place_aliases table in the Atlanta geodatabase,then click Add.

    12. Click the Alias field dropdown arrow, then click NAME.

    13. Click OK.

    Q

  • GEOCODING TUTORIAL 11

    14. Click OK in the New US Streets with AltName (GDB)Geocoding Service dialog box. The newyourLogin.Atlanta_AltName geocoding service appearsin the Geocoding Services folder.

    15. Click the File menu and click Exit to close ArcCatalog.

    Now you can use this geocoding service to find out wherean address is located on a map.

    Finding locations using alternate names and placename aliases1. Open a new map document in ArcMap. Dont save the

    map you created in the previous task.

    2. Add the streets feature class from the Atlantageodatabase to your map.

    3. Click the Find button on the Tools toolbar.

    4. In the Find dialog box, click the Addresses tab.

    5. Click the Browse button to choose a geocoding service.Navigate to the Geocoding Services folder, click theyourLogin.Atlanta_AltName geocoding service, andclick Add.

    A street may have more than one name. For example,Atlanta Blvd is defined as an alternate name for Old10th St NE. With the yourLogin.Atlanta_AltNamegeocoding service, 30 Old 10th St NE and 30 AtlantaBlvd will both find the same location.

    6. Type 30 Old 10th St NE in the Street or Intersectiontext box, then click Find.

    7. Right-click the candidate and click Add as Graphic(s) toMap.

    A graphic point representing the addresss locationappears on the map.

    8. Type 30 Atlanta Blvd in the Street or Intersection textbox, then click Find.

    9. Right-click the candidate and click Flash CandidateLocation(s). You can see that both addresses arematched to the same location on the map.

    In addition to geocoding addresses, you can alsogeocode place names that have been defined in theplace_aliases table.

  • 12 GEOCODING TUTORIAL

    10. Type Childrens Hospital in the Street or Intersectiontext box, then click Find.

    11. Right-click the first candidate in the candidates list,which has a score of 100, and click Add as Graphic(s)to Map.

    The location of the hospital appears on the map as ifyou had typed its complete address.

    12. Click Cancel to close the Find dialog box.

    Creating geocoding services that use alternate names andplace name aliases is beneficial for people...

Recommended

View more >