Opened 14 years ago

Closed 14 years ago

#267 closed defect (fixed)

v.what returns "Line:" attribute for points and centroids

Reported by: msieczka Owned by: grass-dev@…
Priority: major Milestone: 6.4.0
Component: Vector Version: svn-develbranch6
Keywords: Cc:
CPU: All Platform: All


It looks weird. Example, in spearfish, add vegcover, query it and you get output like:

East: 590751.108647
North: 4914649.113082
Map: vegcover 
Type: Centroid
Line: 10505
Layer: 1
Category: 5 
Driver: dbf
Database: /home/grassdata/spearfish60/PERMANENT/dbf/
Table: vegcover
Key column: cat
cat : 5
label : mixed forest

"Line: 10505" looks strange given that we are querying a centroid. I realized this "Line" is a feature ID actually, as cen be checked with 'd.vect vegcover display=shape,topo'. Wouldn't it be better if v.what printed "ID" instead of "Line"?

Change History (1)

comment:1 by martinl, 14 years ago

Resolution: fixed
Status: newclosed

I changed "Line" to "Id", devbr6 (r33153) and trunk (r33154).

Note: See TracTickets for help on using tickets.