#2311: PyGRASS points read from map are always 2D although they have z
coordinate
-------------------------+--------------------------------------------------
Reporter: annakrat | Owner: grass-dev@…
Type: defect | Status: new
Priority: normal | Milestone: 7.1.0
Component: Python | Version: svn-trunk
Keywords: pygrass | Platform: All
Cpu: Unspecified |
-------------------------+--------------------------------------------------
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
}}}
--
Ticket URL: <http://trac.osgeo.org/grass/ticket/2311>
GRASS GIS <http://grass.osgeo.org>
_______________________________________________
grass-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-dev