[GRASS-dev] [GRASS GIS] #3549: pygrass wrongly reports lines for point vector maps

GRASS GIS trac at osgeo.org
Mon Apr 23 00:56:34 PDT 2018


#3549: pygrass wrongly reports lines for point vector maps
---------------------------------+-------------------------
 Reporter:  sbl                  |      Owner:  grass-dev@…
     Type:  defect               |     Status:  new
 Priority:  normal               |  Milestone:  7.4.1
Component:  PyGRASS              |    Version:  7.4.0
 Keywords:  pygrass,vector,info  |        CPU:  Unspecified
 Platform:  All                  |
---------------------------------+-------------------------
 Tested on both Windows and Linux. Here an example using NC data set:

 {{{
 v.info busstopsall_uncont layer=1 -t
 nodes=0
 points=108
 lines=0
 boundaries=0
 centroids=0
 areas=0
 islands=0
 primitives=108
 map3d=0

 }}}

 So, no lines n the map. However, when I try to get the same info from
 pygrass, 108 lines are reported in addition to the 108 points:


 {{{
 from grass.pygrass.vector import VectorTopo
 in_vect = VectorTopo('busstopsall_uncont', layer=1)
 in_vect.open(mode='r')
 in_vect.is_open()
 True
 in_vect.number_of('points')
 108
 in_vect.number_of('lines')
 108
 }}}

-- 
Ticket URL: <https://trac.osgeo.org/grass/ticket/3549>
GRASS GIS <https://grass.osgeo.org>



More information about the grass-dev mailing list