wiki:GSoC/2017/SOSInGRASS

Version 12 (modified by pesekon2, 7 years ago) ( diff )

--

GSoC 2017 SOS tools in GRASS GIS

Title: SOS tools in GRASS GIS
Student Name: Ondrej Pesek, Czech Technical University in Prague
Organization: OSGeo - Open Source Geospatial Foundation
Mentor Name: Luca Delucchi, Matteo De Stefano
GSoC proposal: view proposal
Repositories: Github for development: https://github.com/pesekon2/GRASS-GIS-SOS-tools
GRASS SVN AddOns for final modules: https://svn.osgeo.org/grass/grass-addons/grass7/
OWSlib fork with SOS patches: https://github.com/pesekon2/OWSLib

Abstract

GRASS GIS doesn’t have any module to work with Sensor Observation Service (SOS). SOS is an Open Geospatial Consortium (OGC) standard and it is useful to implement modules to work with this standard into GRASS.

Goal

Intended modules would enable the user to create a vector with or without the observation values, create a raster for each queried day and create a space time vector or raster dataset. One module would also allow the user to convert a space time vector dataset into a raster dataset. The user should be also allowed to get the capabilities to get info about sensors from these modules and filter the results.

Intended modules would also use OWSLib to work with the server and data. There are a few things to improve in OWSLib, so this should be the first part of my GSoC project. I would also like to use pyGrass (a python library allowing users to access the low-level GRASS API) to create new modules.

Timeline

status
Community bounding period Studying OWSLib and SOS *
Let the summer begin
MAY 30 - JUNE 2 Testing OWSLib functionalities on different SOS servers *
JUNE 5 - JUNE 9 Improving OWSLib functionalities *
JUNE 12 - 16 Improving OWSLib, developing background for forthcoming modules *
JUNE 19 - 23 v.in.sos (creating a vector with or without the observation values) *
JUNE 26 - 30 v.in.sos upgrades, t.vect.in.sos shuck
First evaluations
JULY 3 - 14 I am sorry but I will have no access to internet and neither to electricity due to my work at summer camp
JULY 17 - 21 t.vect.in.sos (creating a space time vector dataset)
JULY 24 - 28 r.in.sos (creating a raster for each queried day)
Second evaluations
JULY 31 - AUGUST 4 t.rast.in.sos (creating a space time raster dataset)
AUGUST 7 - 11 t.vect.to.rast (convert space time vector dataset into space time raster dataset)
AUGUST 14 - 18 Writing documentation, buffer in case of delay
AUGUST 21 - 29 Submitting the final work product
Final evaluations

Requirements

GRASS 7.3

Development

Weekly reports

May 30 - June 2

Studied OWSLib and its work with SOS (especially with istSOS) and in which formats are available in response.

Solved this issue in OWSLib.

Created converter between normal JSON output from OWSLib and geoJSON for points

June 5 - June 9

I had a problem with xml parser in OWSLib for SOS observations, because it works completely different way than we expected. After few conversations I have decided to work with raw output and write parser by myself.

Created pull request solving encoding issue for OWSLib.

Created converter between text/xml;subtype="om/1.0.0" output from OWSLib and geoJSON for points

Created a shuck of v.in.sos module

June 12 - June 16

Created v.in.sos

  • Makefile and first html
  • UI
  • Prints informations about sensor offerings
  • Imports the observation into GRASS GIS
  • This version is returning just the last observation

June 19 - June 23

v.in.sos

  • flags for printing timestamps of begin and end of observation
  • working with event_time (interval of observation is used in query)
  • v.in.sos returns one map with many layers (layers count = observed properties count)

xml2geojson

  • working with separated blocks of values, not just with single values
Note: See TracWiki for help on using the wiki.