[GRASS-dev] [GRASS GIS] #3172: v.what: does not take into account layer information
GRASS GIS
trac at osgeo.org
Sun Oct 2 05:21:20 PDT 2016
#3172: v.what: does not take into account layer information
--------------------------+-------------------------
Reporter: mlennert | Owner: grass-dev@…
Type: defect | Status: new
Priority: normal | Milestone: 7.2.0
Component: Vector | Version: unspecified
Keywords: v.what layer | CPU: Unspecified
Platform: Unspecified |
--------------------------+-------------------------
As [https://lists.osgeo.org/pipermail/grass-user/2016-October/075244.html
reported] by Dave Roberts and Helmut Kudrnovsky on grass-user:
{{{
g.copy vector=firestations at PERMANENT,myfire
v.category input=myfire at user1
layer=1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25
output=myfire_manylayers option=transfer
v.db.addtable map=myfire_manylayers at user1 layer=2
[...]
v.db.addtable map=myfire_manylayers at user1 layer=25
}}}
Gives the following output when queries by v.what:
{{{
v.what -a map=myfire_manylayers at user1 layer=25
coordinates=635642.103403,234048.276032 distance=10
East: 635642.103403
North: 234048.276032
------------------------------------------------------------------
Map: myfire_manylayers
Mapset: user1
Type: Point
Id: 17
Layer: 1
Category: 17
Driver: sqlite
Database: J:\gisdata\nc_spm_08_grass7\user1\sqlite\sqlite.db
Table: myfire_manylayers
Key column: cat
cat : 17
ID : 0
LABEL : RFD #17
LOCATION : 4601 Pleasant Valley Rd
CITY : Raleigh
MUN_COUNT : M
PUMPERS : 1
PUMPER_TAN : 0
TANKER : 0
MINI_PUMPE : 0
RESCUE_SER : 0
AERIAL : 0
BRUSH : 0
OTHERS : 0
WATER_RESC : 0
MUNCOID : 1
BLDGCODE : 257
AGENCY : RF
STATIONID : RF17
RECNO : 19
CV_SID2 : RF17
CVLAG : 0
Layer: 2
Category: 17
Driver: sqlite
Database: J:\gisdata\nc_spm_08_grass7\user1\sqlite\sqlite.db
Table: myfire_manylayers_2
Key column: cat
cat : 17
Layer: 3
Category: 17
Driver: sqlite
Database: J:\gisdata\nc_spm_08_grass7\user1\sqlite\sqlite.db
Table: myfire_manylayers_3
Key column: cat
cat : 17
[...]
Layer: 25
Category: 17
Driver: sqlite
Database: J:\gisdata\nc_spm_08_grass7\user1\sqlite\sqlite.db
Table: myfire_manylayers_25
Key column: cat
cat : 17
xcoor : 635640.313379964
ycoor : 234048.036434468
}}}
d.what.vect and thus the GUI query are also affected.
The attached patch is an attempt to solve this for v.what. Please test.
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3172>
GRASS GIS <https://grass.osgeo.org>
More information about the grass-dev
mailing list