[GRASS-dev] Reviewing GSoC 2017 page
massimo di stefano
massimodisasha at gmail.com
Tue Feb 14 08:11:41 PST 2017
For web grass the ideal is to have a dedicated rendering system, based on GRASS data read by C++ in a buffer and rendered to html5 canvas or webgl directly. there is a gitter page if anyone is interested on web grass and want discuss its further development.
For the jupyter notebook IMHO the easiest way to interact with grass, is to use a js framework as canvas and load images by converting grass data to jpeg or to tiled images (ipyleaflet or cesiumpy are good options) I use gdal2tiles and gdaldem to generate ipyleaflet friendly images.
The cons of this, as Rashad said, is that the grass data gets copied server side and will not be “in sync” in case the raster map is subject to some processing .. to keep the maps up-to-date I generate an sha-ash code for each raster and I connect it to a refresh button (ipywidgets) to regenerate the tiles or jpeg if the linked raster has changed.
The mapserver option introduce one more dependency … which can maybe annoying, but avoid to copy data by loading grass raster linked directly to the grass data from a map file (needs goal-grass plugin)
I use the “js" method in a pyqt gui application loading leaflet and cesium in a qtwebengine, for personal use it works quite well .. but is hackish and suboptimal …
Massimo.
On Feb 3, 2017, at 2:14 PM, Margherita Di Leo <diregola at gmail.com> wrote:
>
>
>
> On Thu, Jan 26, 2017 at 6:37 PM, Vaclav Petras <wenzeslaus at gmail.com <mailto:wenzeslaus at gmail.com>> wrote:
>
> [...]
>
> Not directly related. Jupyter Notebook is independent and with some additions of interactive maps it could be used as a web interface for advanced or Python aware users. It can be used even now, but for visualization, you need to deal with d.* commands (which is fine in general but not for zooming, panning, ...) or you need to plug in other solution for visualization (like MapServer reading from GRASS GIS Database). There might be some code sharing between (some/any) web GRASS and Jupyter on the side of Python API or JavaScript map display (if applicable).
>
>
> See: https://github.com/SylvainCorlay/ipyleaflet <https://github.com/SylvainCorlay/ipyleaflet>
>
> --
> Margherita Di Leo
> _______________________________________________
> grass-dev mailing list
> grass-dev at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/grass-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20170214/0c458525/attachment.html>
More information about the grass-dev
mailing list