Skip to content

Commit

Permalink
pygrass: retrieve 3D geometries for 3D vector maps (#2914)
Browse files Browse the repository at this point in the history
  • Loading branch information
landam committed Apr 22, 2023
1 parent 0c6d351 commit b8dd380
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions python/grass/pygrass/vector/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -450,6 +450,7 @@ def viter(self, vtype, idonly=False):
>>> test_vect.close()
"""
is2D = not self.is_3D()
if vtype in _GEOOBJ.keys():
if _GEOOBJ[vtype] is not None:
ids = (indx for indx in range(1, self.number_of(vtype) + 1))
Expand All @@ -461,6 +462,7 @@ def viter(self, vtype, idonly=False):
c_mapinfo=self.c_mapinfo,
table=self.table,
writeable=self.writeable,
is2D=is2D,
)
for indx in ids
)
Expand Down

0 comments on commit b8dd380

Please sign in to comment.