Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I am creating a model that processes a large road dataset, then creates an address locator from the roads. The Create Address Locator tool does not allow me to set options like Spelling Sensitivity or Minimum Candidate Score. Is it possible to set these options in Model Builder (or at least, within an arcpy Python script)? I'm using ArcGIS 10, but I'm also interested in whether it's possible in 10.1.

share|improve this question
    
I think you will have to create the locator and then open ArcMap to change the settings. Awkward, but how many locators do you need? –  gm70560 Apr 30 '13 at 21:22
    
Just the one, but the customer's GIS techs are supposed to be able to run the data processing model whenever they need to update their data for our custom software. It looks like we'll just need to train them to set up the geocoder manually. Like you said, awkward. –  Tanner Apr 30 '13 at 21:41
2  
This is not possible at 10.1 either. –  Cindy Williams May 1 '13 at 10:47
1  
@Arabella I think you should make your Comment into an Answer because it answers the question. Can I also suggest that someone creates an ArcGIS Idea for this (and link to it here) if it is important to your work. –  PolyGeo May 2 '13 at 10:44

2 Answers 2

up vote 1 down vote accepted

It is currently not possible at 10.1 to use arcpy to change locator settings.

share|improve this answer

The .loc files generated by an address locator are plain text files. Therefore, you can modify any settings that are specified in the .loc file without the need for an arcpy function.

For example, to change the minimum match score from the default to 70%:

locator_fn = 'my_address_locator.loc'
locator_file = open(locator_fn,'a')  # open for appending
locator_file.writelines('MinimumMatchScore = 70')
locator_file.close()

You will need to do some experimenting to find out the exact syntax. The easiest way is to change the settings in ArcMap, and examine the .loc file before and after to see which lines have been written.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.