Opened 6 years ago

Closed 6 years 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 by neteler, 6 years ago

Milestone: 7.4.17.4.2

comment:2 by martinl, 6 years ago

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

comment:3 by martinl, 6 years ago

In 73393:

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

comment:4 by martinl, 6 years ago

In 73395:

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

comment:5 by martinl, 6 years ago

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.