import arcpy zero = arcpy.GetParameterAsText(0) one = arcpy.GetParameterAsText(1) two = arcpy.GetParameterAsText(2) arcpy.AddMessage(zero) arcpy.AddMessage(one) arcpy.AddMessage(two) inPointList = [zero, one, two] outPointList = [] for inPoint in inPointList: if len(inPoint) > 0: coordList = inPoint.split(',') if len(coordList) == 2: pointList = [float(coordList[0]), float(coordList[1])] outPointList.append(pointList) for coordPair in outPointList: point = arcpy.Point(coordPair[0], coordPair[1]) ## insert this point into a shapefile or feature class
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.