locatorType = sys.argv[1] # e.g."Postal" # gDBPath = sys.argv[2] # e.g. "C:/Users/akeogh/Documents/ArcGIS/CSV_fGDB.gdb" # csvFile = sys.argv[3] # e.g. "C:/Users/akeogh/Documents/ArcGIS/AddressBase.csv" # fullDataLayer = ConfigManager.getFullDataFCName() memLayer = "tempFullLayer" xCoords = ConfigManager.getXFieldName() yCoords = ConfigManager.getYFieldName() postcode = ConfigManager.getPostcodeFieldName() spRef = ConfigManager.getProjectionFile() print("Inputs -> ") print("Locator: "+locatorType) print("GDB Path: "+gDBPath) print("CSV File: "+csvFile) if locatorType.lower() == "postal": # Make a point feature class from CSV file, schema.ini file created here print ("Making in memory feature class") arcpy.MakeXYEventLayer_management(csvFile, xCoords, yCoords, memLayer, spRef)
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.