ArcGIS Pro 2.7.2
Just started using the Create Composite Locator tool and now I am scripting it in python to automate the process. My python works, but I don't understand the field mapping portion of the tool and subsequently what I am providing to my script.
Here is a snapshot of the tool and parameters:
I purposely whittled down all the various input fields that appear by default, since I don't understand what they provide the tool.
When creating python scripts for geocoding, I always use the tool history details as a means to provide me the parameters of a successful tool run:
The resulting function in my script creates the composite locator just fine:
def compositeLocator():
addressLocators = r"N:\GIS\Geocoding\NewGeocoding\MsdMultiRoleLocator.loc MsdLocator;"\
r"N:\GIS\Geocoding\NewGeocoding\NonMSDMultiRoleLocator.loc NonMsdLocator"
fieldMap = r'Address "Address or Place" true true false 100 Text 0 0,First,#,N:\GIS\Geocoding\NewGeocoding\MsdMultiRoleLocator.loc,Address,0,0,N:\GIS\Geocoding\NewGeocoding\NonMSDMultiRoleLocator.loc,Address,0,0'
selectionCriteria = "MsdLocator #;"\
"NonMsdLocator #"
outLocator = r'N:\GIS\Geocoding\NewGeocoding\CityWorksLocator'
arcpy.geocoding.CreateCompositeAddressLocator(addressLocators, fieldMap, selectionCriteria, outLocator)
My question is this: in the fieldMap variable what are the various arguments such as:
Address "Address or Place" true true false 100 Text 0 0,First,#,(etc,etc, etc..)
Is there any documentation on this? I haven't stumbled upon any as of yet.
@BradNiemand
@ShanaBritt
That should just about do it....