Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import arcpy
- fc=r'D:GIS DataTOOLSEV calc in PythonData.gdbPolyWGS84'
- myList = []
- with arcpy.da.SearchCursor(fc,['OID@','SHAPE@']) as cursor:
- for row in cursor:
- array1=row[1].getPart()
- for vertice in range(row[1].pointCount):
- pnt=array1.getObject(0).getObject(vertice)
- print row[0],pnt.X,pnt.Y
- myList.append(str(pnt.X) + " " + str(pnt.Y))
- print ", ".join(myList)
- 1 151.513429431 -33.568900991
- 1 151.313554706 -34.011480738
- 1 150.928082023 -33.975788823
- 1 150.906666874 -34.27560091
- 1 150.506917425 -34.211355462
- 1 150.692515384 -33.51893231
- 1 151.513429431 -33.568900991
- 2 151.72520146 -32.500522999
- 2 152.082120611 -33.242914833
- 2 151.196961117 -33.100147173
- 2 151.72520146 -32.500522999
- 151.513429431 -33.568900991, 151.313554706 -34.011480738, 150.928082023 -33.975788823, 150.906666874 -34.27560091, 150.506917425 -34.211355462, 150.692515384 -33.51893231, 151.513429431 -33.568900991, 151.72520146 -32.500522999, 152.082120611 -33.242914833, 151.196961117 -33.100147173, 151.72520146 -32.500522999
- 151.513429431 -33.568900991, 151.313554706 -34.011480738, 150.928082023 -33.975788823, 150.906666874 -34.27560091, 150.506917425 -34.211355462, 150.692515384 -33.51893231, 151.513429431 -33.568900991
- 151.72520146 -32.500522999, 152.082120611 -33.242914833, 151.196961117 -33.100147173, 151.72520146 -32.500522999
- import arcpy
- fc=r'D:GIS DataTOOLSEV calc in PythonData.gdbPolyWGS84'
- with arcpy.da.SearchCursor(fc,['OID@','SHAPE@']) as cursor:
- for row in cursor:
- myList = []
- array1=row[1].getPart()
- for vertice in range(row[1].pointCount):
- pnt=array1.getObject(0).getObject(vertice)
- # print row[0],pnt.X,pnt.Y
- myList.append(str(pnt.X) + " " + str(pnt.Y))
- print row[0], ", ".join(myList)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement