By accident I discovered that the null points are the separators of interior and exterior rings. It's useful if you wanna extract the outer perimeter of a polygon with holes by iterating over the polygon's arrays of points, as it starts by the exteriors and never gets to the interiors due to the null point. At least that's what I have understood that it's happening!
Hello, I'm new at programming, and I'm working on eclpse trying to create a polygon over a certain area, the problem is that the program doesn't recorgnice the sentence "arcpy.da.InsertCursor", specially the InserCursor part. I've already import arcpy do I don't know what to do. Thank you
for poly in list_poly: ... point_obj.x=poly[0] ... point_obj.y = poly[1] ... array.add(point_obj) ... Runtime error Traceback (most recent call last): File "", line 2, in NameError: name 'point_obj' is not defined >>>
In the case of the polygon with a hole, is it not necessary a null point to separate the outer ring from the inner rings?
By accident I discovered that the null points are the separators of interior and exterior rings. It's useful if you wanna extract the outer perimeter of a polygon with holes by iterating over the polygon's arrays of points, as it starts by the exteriors and never gets to the interiors due to the null point. At least that's what I have understood that it's happening!
Hello, I'm new at programming, and I'm working on eclpse trying to create a polygon over a certain area, the problem is that the program doesn't recorgnice the sentence "arcpy.da.InsertCursor", specially the InserCursor part. I've already import arcpy do I don't know what to do. Thank you
when i print coords i got 5*5 matrix way print but you got 5*2 how i can resolve
>>> array = arcpy.Array()
>>> list_coords = [ [0,0], [5,0], [5,5], [0,5], [0,0] ]
>>> for coords in list_coords:
... print coords
[0, 0]
[5, 0]
[5, 5]
[0, 5]
[0, 0]
for poly in list_poly:
... point_obj.x=poly[0]
... point_obj.y = poly[1]
... array.add(point_obj)
...
Runtime error
Traceback (most recent call last):
File "", line 2, in
NameError: name 'point_obj' is not defined
>>>