[GRASS-dev] [GRASS GIS] #3149: Adding database information to v.info metadata output
GRASS GIS
trac at osgeo.org
Sat Sep 24 21:14:09 PDT 2016
#3149: Adding database information to v.info metadata output
--------------------------+----------------------------------
Reporter: huhabla | Owner: grass-dev@…
Type: enhancement | Status: new
Priority: normal | Milestone: 7.2.0
Component: Default | Version: svn-releasebranch72
Resolution: | Keywords: vector, info, v.info
CPU: Unspecified | Platform: Unspecified
--------------------------+----------------------------------
Comment (by wenzeslaus):
Replying to [comment:8 mmetz]:
> ...your approach can not handle multiple connections.
This is a common problem which was not yet addressed well. One solution is
to use something like this:
{{{
db_linked_layers=1,2
attribute_layer_1_layer_name=test_vinfo_with_db_3d
attribute_layer_1_database=/home/user/g/LL/user/vector/test_vinfo_with_db_3d/sqlite.db
attribute_layer_1_database_driver=sqlite
...
attribute_layer_2_layer_name=...
}}}
The naming should be improved but the idea is similar to OSM tagging:
{{{
emergency=fire_hydrant
fire_hydrant:type=underground
fire_hydrant:diameter=1
...
}}}
Alternative and more universal approach is using JSON as in case of
G7:v.what. Something like this:
{{{
...
"dblinks": [
{
"number": 1,
"name": "test_vinfo_with_db_3d",
"database": "/home/user/g/LL/user/vector/test_vinfo_with_db...",
...
{
]
...
}}}
Also comapre:
{{{
g.extension -g
g.search.modules gradient -j
}}}
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3149#comment:9>
GRASS GIS <https://grass.osgeo.org>
More information about the grass-dev
mailing list