Connecting tribes: how we connected the GRASS GIS database natively to GeoServer
This is a modal window.
The media could not be loaded, either because the server or network failed or because the format is not supported.
Formal Metadata
Title |
| |
Title of Series | ||
Number of Parts | 351 | |
Author | ||
Contributors | ||
License | CC Attribution 3.0 Unported: You are free to use, adapt and copy, distribute and transmit the work or content in adapted or unchanged form for any legal purpose as long as the work is attributed to the author in the manner specified by the author or licensor. | |
Identifiers | 10.5446/69222 (DOI) | |
Publisher | ||
Release Date | ||
Language | ||
Production Year | 2022 |
Content Metadata
Subject Area | ||
Genre | ||
Abstract |
| |
Keywords |
00:00
Grass (card game)DatabaseRaster graphicsRouter (computing)Service (economics)FeedbackImplementationJava appletDevice driverFile formatSpacetimeVisual systemOpen setScale (map)Temporal logicDemo (music)Beta functionDot productTotal S.A.BlogInformationData typeServer (computing)Group actionElectronic mailing listOrdinary differential equationRandom number generationEmailRandomizationGrass (card game)WordFile formatRaster graphicsMultiplication signReading (process)Data storage deviceCellular automatonLine (geometry)SpacetimeConnected spaceSoftwareSoftware maintenanceArithmetic meanMusical ensembleTime seriesComputer fileJava appletDatabaseProcess (computing)CuboidResultantWeb serviceBuildingBitStapeldateiGoodness of fitCubeServer (computing)GeometryBoom (sailing)MultiplicationString (computer science)Mathematical analysisView (database)Library catalogDevice driverCollaborationismComputer animation
03:55
Router (computing)Grass (card game)Raster graphicsImplementationHome pageServer (computing)Home pageDirectory serviceComputer fileRight angleServer (computing)Repository (publishing)GeometryComputer animation
04:28
Grass (card game)Raster graphicsTelecommunicationSlide ruleProjective planeHarmonic analysisConnected spaceComputer animation
Transcript: English(auto-generated)
00:01
So, hi everybody, I'm Marcus Nitterer, my name. We want to show today what we did in the last few months, connecting GrassGIS database natively to GeoServer. So the idea is to offer a new Grassner data store within GeoServer. This is a joint work of the two companies, Mundialis and Teresris.
00:24
We are sister companies sitting in the same building in Bonn and occasionally come up with joint work. So, we are working a lot with GrassGIS and also a lot with GeoServer, those knowing GrassGIS know that it comes with its own data format for good reason, and of course you do not
00:44
want to duplicate anything, we're talking about large amounts of data, we do time series processing and all this stuff, and especially you also want to be able to see intermediate results within your work, and maybe in a way that you have OGC web services or something
01:01
for collaboration, and yeah. What does it mean? So we wanted to kind of connect GrassGIS to GeoServer, what if that would work? And so we looked into the details, there's GDAL as usual, which is doing most of the job, there's for a long time already a GDAL GrassDriver, we have moved it out of GDAL itself,
01:23
for easier maintenance for everybody, and this is sitting on GitHub as usual. And what did we want to achieve? Of course, keep the raster format as it is, just read from there, be able also to support space time cubes, which can be managed, generated, analyzed in GrassGIS,
01:43
and turn it in WMS time, and of course do not limit things to 2GB, because that would be annoying. So effectively, we came up with some 70-50 lines of Java to solve the problem and renovate a little bit the GDAL GrassDriver, which can be used by the way, also by other software
02:03
by QGIS, by GDAL itself, if you want to directly read grass data, convert them to something else. So how does it look like? This is a screenshot of the raster data store, you have a selector there, please take the grass format now, then you register your data set, and this, if you look closely,
02:23
cell HD, that is a subdirectory in the grass database, which is simply the header file of the grass raster data, and you point it to there, and then GeoServer will read it, fill in the bounding boxes and all this stuff, tell you which band to use, if you have multiple bands, and boom, you get a result.
02:43
So this looks of course a bit annoying, because black and white, why is that? That is just one of the modus LSD also, we use a lot of LSD stuff un-styled, so what about this style that was the next thing to be done? So we wrote two grass add-ons, they are not yet online, but they come soon as maybe
03:01
after return from this week, rgeo-server-publish and rgeo-server-style, that means from your grass database you publish directly into GeoServer, register this stuff there, and you can basically automate everything, means if you do batch processing, and at the very end you put these commands here, they pop up in GeoServer then.
03:22
So this is the common view, here is some random example, word pop data, read through grass, we have done, well, we have a server, actinia-moondialis-de, where you can find this stuff, from there, through grass.js, we can do analysis, we push it to GeoServer, we get our WMS, and eventually of course you can consume it
03:44
with QGIS or whatever you want, and you have this style alongside, so there's nothing to do, I just open the WMS catalog, and then you can look at the data. So where's the stuff? Home page is on GitHub, the repository as well, and then we release occasionally on our
04:06
Nexus server the artifact, so it's pretty easy to set it up, basically two commands, here you see Maven cleanup, Maven install, and then you have two files which come out of this, you see here the two files, and those you copy along with the GDAL jar
04:24
into the right directory of GeoServer and you are set. Start the GeoServer and that's it. Pretty easy nowadays, I would say. This has been funded by two projects, one is the Connecting Europe GeoArmonizer project
04:43
we just concluded, and another one is a national one called FAIR on making climate and weather data available, so usual topic, how to get data online, and happy to talk to you if you have questions, if you want to try it out I can assist, and thank you.