Skip to main content

Portolan GeoServer

A Python integration between Portolan catalogs and GeoServer.

portolan-geoserver discovers resources from Portolan catalogs and maps them to appropriate GeoServer stores, resources, and layers.

It combines:

  • portolan-python for understanding Portolan;
  • python-geoservercloud for interacting with GeoServer.

The project can operate as a standalone CLI and can also expose itself as a plugin for a pluggable portolan-cli.

Purpose

Given a Portolan catalog such as:

catalog
├── buildings
│   └── buildings.parquet
├── roads
│   └── roads.parquet
└── orthophoto
    └── imagery.tif

the integration should be able to derive:

Portolan GeoParquet asset
        ↓
GeoServer GeoParquet DataStore
        ↓
FeatureType
        ↓
Layer

and:

Portolan COG asset
        ↓
GeoServer COG CoverageStore
        ↓
Coverage
        ↓
Layer

The actual GeoParquet and COG data access remains the responsibility of GeoServer's corresponding native stores/readers.

Architecture

                   Portolan Catalog
                          │
                          ▼
                   portolan-python
                          │
                   domain objects
                          │
                          ▼
                 portolan-geoserver
                  mapping / planning
                          │
                          ▼
                python-geoservercloud
                          │
                          ▼
                      GeoServer
                 ┌────────┴────────┐
                 ▼                 ▼
         GeoParquet Store       COG Store
                 │                 │
                 ▼                 ▼
           FeatureTypes         Coverages
                 │                 │
                 └────────┬────────┘
                          ▼
                        Layers

Responsibilities

portolan-geoserver is responsible for:

  • opening Portolan catalogs through portolan-python;
  • discovering collections and assets;
  • determining whether an asset can be mapped to a supported GeoServer store;
  • generating a publication plan;
  • creating appropriate GeoServer stores;
  • creating resources;
  • publishing layers;
  • recording Portolan provenance;
  • reconciling existing GeoServer resources with Portolan catalogs;
  • supporting dry-run/plan operations;
  • supporting synchronization.

Commands include:

portolan-geoserver plan <catalog>
portolan-geoserver publish <catalog>
portolan-geoserver sync <catalog>
portolan-geoserver serve --catalog-id <id>
portolan-geoserver serve --all

plan, publish, and sync operate on a local Portolan catalog. serve operates from a Portolan registry. It fetches one or more catalog snapshots from the registry and publishes them to GeoServer.

Portolan CLI plugin

The same project should optionally register commands with portolan-cli.

Once installed:

pip install portolan-cli
pip install portolan-geoserver

the user may obtain:

portolan geoserver plan ...
portolan geoserver publish ...
portolan geoserver sync ...
portolan geoserver serve ...

without moving GeoServer-specific code into portolan-cli.

This package exposes the entry point portolan.cli.plugins. A portolan-cli installation can mount that entry point after it implements command-plugin discovery. Until then, portolan-geoserver works as a standalone CLI.

Conceptually:

portolan-cli
     │
     │ discovers plugins
     ▼
portolan-geoserver

The standalone and plugin interfaces should call the same application layer and must not duplicate publication logic.

Dependency boundaries

The project deliberately separates responsibilities.

portolan-python

Answers questions such as:

  • What collections exist?
  • What assets belong to a collection?
  • What is the asset HREF?
  • What media type does it declare?
  • What Portolan metadata applies?
  • Is the catalog conformant?

portolan-geoserver

Answers:

  • Which GeoServer store corresponds to this asset?
  • What should the store be called?
  • Which workspace should contain it?
  • What resources need to be created?
  • What needs to change during synchronization?

python-geoservercloud

Handles GeoServer operations.

GeoServer

Reads and serves the actual data.

This means portolan-geoserver should not implement GeoParquet or COG readers.

Planning before mutation

Publication should preferably be represented internally as a plan:

Portolan Catalog
       ↓
Publication Planner
       ↓
Publication Plan
       ↓
GeoServer Executor

Example conceptual plan:

workspace: overture

stores:
  - name: buildings
    type: geoparquet
    asset: s3://bucket/buildings.parquet

resources:
  - name: buildings
    store: buildings

layers:
  - name: buildings
    resource: buildings

This makes dry-run, testing, auditing, and reconciliation substantially easier.

Provenance

Resources managed from Portolan should preserve enough provenance to identify their source.

Possible metadata:

portolan.managed
portolan.catalog
portolan.collection
portolan.asset
portolan.checksum

For GeoServer, authoritative provenance should preferably be associated with the published resource (FeatureTypeInfo / CoverageInfo) rather than only with LayerInfo.

This enables future synchronization to answer:

Which Portolan object created this resource?

Has the source changed?

Should this resource be updated?

Should an obsolete managed resource be removed?

Relationship with geoserver-portolan

The two projects solve related problems using different integration strategies.

portolan-geoserver is an external Python-driven integration:

Portolan
   ↓
Python
   ↓
GeoServer API

geoserver-portolan is a native GeoServer integration:

GeoServer
   ↓
Java
   ↓
Portolan

They should share mapping concepts and expected behavior where appropriate, but neither should depend on the other.

portolan-geoserver is particularly useful for:

  • automation;
  • CI/CD;
  • external orchestration;
  • existing GeoServer installations;
  • experimentation;
  • provisioning and synchronization.

Local documentation

  • Architecture explains the catalog, planning, and execution layers.
  • Examples shows standalone and plugin command usage.
  • Plugin documents the portolan-cli integration point.
  • Development lists setup, test, and build commands.
  • Distribution explains release artifacts and PyPI publishing.

Metadata

Release files for portolan-geoserver 0.1.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for portolan-geoserver 0.1.8
File Size Uploaded Provenance Actions
portolan_geoserver-0.1.8.tar.gz 121.2 kB With provenance Details for portolan_geoserver-0.1.8.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for portolan-geoserver 0.1.8
File Interpreter ABI Platform Actions
portolan_geoserver-0.1.8-py3-none-any.whl Python 3 none any Details for portolan_geoserver-0.1.8-py3-none-any.whl

Total release size: 136.4 kB

Release files / portolan_geoserver-0.1.8.tar.gz

Download URL portolan_geoserver-0.1.8.tar.gz
Size 121.2 kB
Tags Source
SHA-256 checksum
How to use checksums
3eb8c97794625db1d6cdac3c7fab1a93bf9bdd840bfc2808f91c781208896937
BLAKE2b-256 checksum
How to use checksums
2118ae0d2ed4b2f28ba31ef8971704a9b7ec5acfdf2206abd3e983c21aaa7e89
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 17, 2026.

Transparency log

Release files / portolan_geoserver-0.1.8-py3-none-any.whl

Download URL portolan_geoserver-0.1.8-py3-none-any.whl
Size 15.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7d207efd2cb8f8c0c49dc0a2b76626dd83326bb232fc2ecbdc162626b71f444a
BLAKE2b-256 checksum
How to use checksums
c7c4fa99c7486f880991f08ce9541c476bf87bae2ff60449f6099ea18af30eb8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 17, 2026.

Transparency log

Security for portolan-geoserver 0.1.8

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for portolan_geoserver-0.1.8.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 17, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.8 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page