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)
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.