Install
Works with Drupal: ^11.4Using Composer to manage Drupal site dependencies
Alternative installation files
Release notes
First alpha release of the 2.0.x branch, a rewrite of the GeoServer module for Drupal 11.4 and GeoServer 3.0.2 or later. Background and agreed scope: #3590500.
This is an alpha release: it is meant for testing and feedback, and configuration and APIs may still change before the stable release. Alpha releases are not covered by the Drupal security advisory policy.
Highlights
- Layers and styles as configuration:
geoserver_layerandgeoserver_styleconfig entities with an admin UI, synchronized with GeoServer through the REST API. A GeoServer failure is reported but never blocks saving in Drupal. - Layer type plugins (
#[GeoServerLayerType]): PostGIS table or view, and GeoTIFF file in the raster submodule. - Workspace and PostGIS datastore are created automatically (default datastore name
cartaro). - Per-layer permissions (read layer, write layer) written to GeoServer as data security rules, with a configurable mapping from Drupal roles to GeoServer roles.
- OpenID Connect: Drupal is the identity provider (Simple OAuth), the GeoServer
sec-oidcextension is the client and the roles travel as a token claim. This replaces the 7.x password forwarding and cookie workaround. - GeoWebCache: tiles of the changed area are truncated when content with a Geofield is saved or deleted.
- Drush commands:
geoserver:sync,geoserver:status,geoserver:oidc-setup. - Service account credentials come from
settings.phpor the Key module, never from configuration.
Submodules
- GeoServer Importer: publishes zipped Shapefiles and GeoPackages from a file field through the GeoServer REST Importer, in a queue.
- GeoServer Raster: publishes GeoTIFF and Cloud Optimized GeoTIFF files of any size. Files are uploaded in chunks with File Resumable Upload and read by GeoServer from a shared directory, not sent over HTTP.
- GeoServer Leaflet: WMS, GeoWebCache (WMTS) and WFS layers on Leaflet maps, a map block and a Leaflet map definition. Replaces the 7.x OpenLayers integration.
Requirements
- Drupal 11.4 or later, PHP 8.3 or later. Drupal 10 is not supported.
- GeoServer 3.0.2 or later. GeoServer 2.x is not tested.
- Geofield, Leaflet, File Resumable Upload.
Upgrading from 7.x-1.x
There is no migration path from 7.x-1.x. Layers and styles have to be created again in Drupal 11, or kept in GeoServer and registered as layers of the PostGIS table type.
Documentation
See the README for installation, configuration and the Drush commands.
Contributors
This release was developed with the assistance of large language model (LLM) coding tools. All generated code was reviewed by the maintainer, checked against GeoServer 3.0.2 and covered by unit, kernel and functional tests.