#Needed Lists csvlist = [pdrivedir + 'Spotters.csv', pdrivedir + 'Contacts.csv'] for csv in csvlist: print 'Geocoding: ' + str(csv) # Set local variables: address_table = csv address_locator = r'http://aserver/arcgis/rest/services/locators/streetaddress/GeocodeServer/10.0 North America Geocode Service' if 'Spotters' in csv: geocode_result = rdrivedir + "Spotters" if 'Contacts' in csv: geocode_result = rdrivedir + "Contacts" arcpy.GeocodeAddresses_geocoding(address_table, address_locator, "Address Address VISIBLE NONE;City CITY VISIBLE NONE;State State VISIBLE NONE;Zip Zip VISIBLE NONE", geocode_result, "STATIC")
#Needed Lists csvlist = [pdrivedir + 'Spotters.csv', pdrivedir + 'Contacts.csv'] for csv in csvlist: print 'Geocoding: ' + str(csv) # Set local variables: address_table = csv address_locator = r"GIS Servers\arcgis on tasks.arcgisonline.com\Locators\TA_Streets_US_10.geocodeServer" if 'Spotters' in csv: geocode_result = tempdir + "Spotters" if 'Contacts' in csv: geocode_result = tempdir + "Contacts" arcpy.GeocodeAddresses_geocoding(address_table, address_locator, "Address ADDRESS VISIBLE NONE;City CITY VISIBLE NONE;State STATE VISIBLE NONE;Zip ZIP VISIBLE NONE", geocode_result, "STATIC")
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.