[GRASS-git] [OSGeo/grass] 9045c6: grass.jupyter: Add direct integration with folium ...

Caitlin Haedrich noreply at github.com
Tue Apr 12 18:03:30 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/OSGeo/grass
  Commit: 9045c625bfcc9454057e36685a56add5551a7fb1
      https://github.com/OSGeo/grass/commit/9045c625bfcc9454057e36685a56add5551a7fb1
  Author: Caitlin Haedrich <69856275+chaedri at users.noreply.github.com>
  Date:   2022-04-12 (Tue, 12 Apr 2022)

  Changed paths:
    M doc/notebooks/grass_jupyter.ipynb
    M python/.pylintrc
    M python/grass/jupyter/Makefile
    M python/grass/jupyter/__init__.py
    M python/grass/jupyter/interact_display.py
    A python/grass/jupyter/reprojection_renderer.py
    A python/grass/jupyter/tests/conftest.py
    A python/grass/jupyter/tests/reprojection_renderer_test.py
    M python/grass/jupyter/utils.py

  Log Message:
  -----------
  grass.jupyter: Add direct integration with folium (#2208)

Restructures InteractiveMap so that folium-like objects can be created and used directly with folium.

New Raster and Vector classes allow direct interaction with folium and have add_to method for adding into folium.  InteractiveMap is restructured to use new Raster and Vector classes. A new ReprojectionRenderer class takes most of the complex reprojection, rendering, and format conversion functionality from InteractiveMap and provides that to functions to  folium-like objects and InteractiveMap.

Adds tiles parameter to InteractiveMap. The main notebook now includes an example with direct use of folium. 

Adds pytest tests for ReprojectionRenderer. Removes interact_display.py from pylint ignore.




More information about the grass-commit mailing list