I am trying to convert points to lines, to then make them into polygons. I have tried the points to line tool but it continues to fail. I have attached the error message I keep receiving as well as my data set. I should note that the lat and long are from a total station so.. not truely lat and long.
Solved! Go to Solution.
It appears to be having trouble locating the python numpy library. This link has a suggestion for changing your PYTHONPATH.
It appears to be having trouble locating the python numpy library. This link has a suggestion for changing your PYTHONPATH.
Darren
Thank you so much!! This worked!
If the above link does not solve your problem, this (admittedly simplified) script creates lines for each set of points, after converting your csv to a point feature class (here named, "csv_points").
>>> lines = [] ... points = [] ... redd = 1 ... with arcpy.da.SearchCursor("csv_points",["SHAPE@","Redd"]) as cursor: ... for row in cursor: ... if row[1] != redd: ... line = arcpy.Polyline(arcpy.Array(points)) ... lines.append(line) ... points = [] ... points.append(row[0].centroid) ... redd = row[1] ... arcpy.CopyFeatures_management(lines,r'in_memory\lines')