[GRASS-dev] [GRASS GIS] #2311: PyGRASS points read from map are always 2D although they have z coordinate
GRASS GIS
trac at osgeo.org
Sat May 24 18:37:34 PDT 2014
#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>
More information about the grass-dev
mailing list