Opened 11 months ago

Closed 6 months ago

#3549 closed defect (fixed)

pygrass wrongly reports lines for point vector maps

Reported by: sbl Owned by: martinl
Priority: normal Milestone: 7.4.2
Component: PyGRASS Version: 7.4.0
Keywords: pygrass, vector, info Cc: grass-dev@…
CPU: Unspecified Platform: All

Description

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

Change History (5)

comment:1 Changed 9 months ago by neteler

Milestone: 7.4.17.4.2

comment:2 Changed 6 months ago by martinl

Cc: grass-dev@… added
Owner: changed from grass-dev@… to martinl
Status: newassigned

comment:3 Changed 6 months ago by martinl

In 73393:

pygrass wrongly reports lines for point vector maps, see #3549

comment:4 Changed 6 months ago by martinl

In 73395:

pygrass wrongly reports lines for point vector maps, see #3549 (g76: merge r73393 from trunk)

comment:5 Changed 6 months ago by martinl

Resolution: fixed
Status: assignedclosed

In 73397:

pygrass wrongly reports lines for point vector maps, closes #3549 (g74: merge r73393 from trunk)

Note: See TracTickets for help on using tickets.