#2311 closed defect (fixed)
PyGRASS points read from map are always 2D although they have z coordinate
Reported by: | annakrat | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | 7.2.0 |
Component: | Python | Version: | svn-trunk |
Keywords: | pygrass | Cc: | |
CPU: | Unspecified | Platform: | All |
Description
When I read a 3D vector map
from grass.pygrass.vector import VectorTopo vect = VectorTopo('precip_30ynormals_3d') vect.open() for point in vect[:3]: print point.is2D, point.z
gives
True None True None True None
I am not sure how to fix it. Temporary workaround is (when I know the map is 3D):
for point in vect[:3]: point.is2D = False
Change History (5)
comment:1 by , 11 years ago
comment:2 by , 11 years ago
follow-up: 4 comment:3 by , 11 years ago
It seems to work, thank you. Could you backport it before we close it? And the fix for #2320 as well.
comment:4 by , 10 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
A similar problem: I create a line from 3D points and the line is 2D. The same workaround as above works.