pesekon2 / GRASS-GIS-SOS-tools

My Google Summer of Code 2017 project. This is just development part. Intended GRASS GIS modules and final code will be at https://svn.osgeo.org/grass/grass-addons/
GNU General Public License v2.0
3 stars 1 forks source link

Connect points from db layers > 1 to their geometry #46

Closed pesekon2 closed 3 years ago

pesekon2 commented 4 years ago

Currently, it seems that the points from db layers greater than 1 are not connected to their geometry. Both in the GUI (when you click on a corresponding row, it does not select any geometry in the map display) and in the TUI (see the example).

> v.in.sos url=http://istsos.org/istsos/demo? off=temporary \
    obs=urn:ogc:def:parameter:x-istsos:1.0:meteo:air:rainfall event=2015-05-07T14:30:00+0200/2015-05-07T16:00:00+0200 out=test
WARNING: No observations of
         urn:ogc:def:parameter:x-istsos:1.0:meteo:air:rainfall found for
         procedure WS_ARDUINO.
WARNING: No observations of
         urn:ogc:def:parameter:x-istsos:1.0:meteo:air:rainfall found for
         procedure P_CAV.
Working on the observed property urn:ogc:def:parameter:x-istsos:1.0:meteo:air:rainfall
Building topology for vector map <test@PERMANENT>...
Registering primitives...

> v.db.select test layer=1
connection|timestamp|urn_ogc_def_parameter_x_istsos_1_0_meteo_air_rainfall
1|t20150507T144000|0
1|t20150507T145000|0
1|t20150507T150000|0
1|t20150507T151000|0
1|t20150507T152000|0
1|t20150507T153000|0
1|t20150507T154000|0
1|t20150507T155000|0
1|t20150507T160000|0

> v.db.select test layer=2
connection|timestamp|urn_ogc_def_parameter_x_istsos_1_0_meteo_air_rainfall
2|t20150507T144000|0.1
2|t20150507T145000|0
2|t20150507T150000|0
2|t20150507T151000|0
2|t20150507T152000|0
2|t20150507T153000|0
2|t20150507T154000|0
2|t20150507T155000|0
2|t20150507T160000|0

> v.db.select test layer=1 -r
n=8.961270
s=8.961270
w=46.027230
e=46.027230

> v.db.select test layer=2 -r
n=0.000000
s=0.000000
w=0.000000
e=0.000000