Quantcast
Channel: Forums - Python
Viewing all articles
Browse latest Browse all 2485

Issues with CreateGeocodeSDDraft

$
0
0
I cannot get the arcpy.CreateGeocodeSDDraft function to work. I have ArcGIS Server 10.2 installed and have the locator path set to the folder containing the geodatabase which has locators in it. Has anyone had any success with this code? Below is my current code:

locator_path = "C:/data/GEODATABASE"
sddraft_file = "C:/data/GeoCoding.sddraft"
sd_file = "C:/data/GeoCoding.sd"
service_name = "test"
summary = "Address locator for " + service_name
tags = "address, locator, geocode"
gis_server_connection_file = "C:/data/" + serverName + ".ags"

analyze_messages = arcpy.CreateGeocodeSDDraft(locator_path, sddraft_file, service_name,
connection_file_path=gis_server_connection_file,
summary=summary, tags=tags)

Viewing all articles
Browse latest Browse all 2485

Trending Articles