Package: geomanager
GeoManagerWagtail based Geospatial Data Manager and backend CMS forgeomapviewerBackgroundNational Meteorological and Hydrological Services (NMHSs) and other national/regional institutions working in
weather/climate sectors usually use, produce or disseminate data and information that is Geo-referenced. This can range
from forecast model outputs, earth observation data, stations observation, periodic bulletins and advisories and so on.
Usually these are shared on their websites and social media pages in static formats, mostly PNGs.This project is an initiative by theWMO RAF, as part of the Digital Transformation
Package for the NMHSs in Africa, to provide an interactive system for managing and publishing Geo-referenced (GIS)
datasets. As the NMHSs produce and share their products in static formats, they can also use packages like this, to make
their data interactive.The package is developed primarily for the NMHSs at national levels, but can be adapted in other institutions or places
that need to visualize their geospatial data.FeaturesAll the raster and vector datasets uploaded must have time associated with each file.For netCDF files with time dimension, time is automatically extracted from the file. For Geotiff, each uploaded file
must be manually assigned time.Data management and visualizationUploading and visualization of gridded datanetCDFGeotiffUploading and visualization of vector dataShapefilesGeojsonRaster Tile serving of raster data usingdjango-large-image.
Alldjango-large-imagefeatures are availableVector tile serving using PostGIS MVT TilesMapViewer ManagementManagement of layers visualized on thegeomapviewerControl on visibility (public or private) of layers on the MapViewerInstallationPrerequisiteBefore installing this package, you should make sure you have GDAL installed in your system.TIP:Installing GDAL can be notoriously difficult. You can use pre-built Python wheels with the GDAL binary bundled,
provided byKitWare, for easy installation in production linux environments.To install GDAL using KitWare GDAL wheel, use:pipinstall--find-linkshttps://girder.github.io/large_image_wheelsGDALOther required packages that you will need to install, if not installed already in your Wagtail Projectpsycopg2 - for postgres/postgis database connectionInstallationYou can install the package using pip:pipinstallgeomanagerThe following packages will be automatically installed when installinggeomanager, if not already installed.wagtail>=4.2.2wagtail-modeladmin>=1.0.0adm-boundary-manager>=0.0.1django_extensions>=3.2.1wagtail_color_panel>=1.4.1wagtailfontawesomesvg>=0.0.3,django_json_widget>=1.1.1django_nextjs>= 2.2.2django-allauth>=0.54.0django-large-image>=0.9.0large-image-source-gdal>=1.20.6large-image-source-pil>=1.20.6large-image-source-tiff>=1.20.6django-filter>=22.1cftime>=1.6.2netCDF4>=1.6.3rasterio>=1.3.6rio-cogeo>=3.5.1xarray>=2023.3.0rioxarray>=0.14.0shapely>=2.0.1djangorestframework-simplejwt>=5.2.2wagtail-humanitarian-icons>=1.0.3wagtail-icon-chooser>=0.0.1matplotlib>=3.7.1django-tables2>=2.6.0django-tables2-bulma-template>=0.2.0CairoSVG>=2.7.0wagtail-cache>=2.3.0wagtail_adminsortable=0.1UsageMake sure the following are all added to yourINSTALLED_APPSin your WagtailsettingsINSTALLED_APPS=[..."geomanager","adminboundarymanager","django_large_image",'django_json_widget','django_nextjs',"django_filters","wagtail_color_panel","wagtail_adminsortable","wagtailhumanitarianicons","wagtailiconchooser","django_extensions","wagtailfontawesomesvg""allauth","allauth.account","wagtailcache","wagtail_modeladmin""wagtail.contrib.settings","rest_framework","django.contrib.gis",...]Run migrationspythonmanage.pymigrategeomanagerAdd the following to your project'surls.pyurlpatterns=[...path("",include("geomanager.urls")),...]Wagtail Cache SetupGeomanager depends on thewagtail-cachepackage for caching requests.
Please have a look at thewagtail-cache documentationfor setup
instructionsIncluding the Map ViewerThis package is the backend component to the frontendgeomapviewer.DocumentationTODO