Skip to content

Publish data to GeoServer

Enciva can send the result of a workflow directly to GeoServer.

GeoServer is a Destination, not a processing step. Convert and Transform happen first; then Enciva publishes the finished vector layer.

Before you start

You'll need:

  • A GeoServer you can sign into
  • An existing workspace (Enciva does not create workspaces)
  • A saved GeoServer Destination in Enciva
  • Vector data with geometry and a CRS

You need to be signed in. Pick a saved Destination — GeoServer is not filled in as a one-off connection on the canvas.

1. Save a GeoServer connection

Open Destinations → Add Destination → GeoServer.

Field What to enter
GeoServer URL The web UI or /rest root, such as https://gis.example.com/geoserver
Username / Password A GeoServer account that can create stores and layers

Click Test. You should see Connected to GeoServer (sometimes with a version). Then Save.

Workspace, store, and layer names are chosen when you publish, not on the saved connection.

2. Add your data

Upload or import a vector dataset. Add Transform or Convert if you need them.

If the file has several layers, you will pick one layer to publish.

3. Choose GeoServer

Add GeoServer and select the saved Destination.

Then set:

Field Notes
Workspace Must already exist on the server
Store name New GeoPackage store. Enciva publishes a file store and cannot add a layer to an existing store
Layer name Layer name to publish
Layer to publish Shown when the dataset has more than one layer
If layer exists Fail (default) or Replace existing layer

Store and layer names must start with a letter and use only letters, numbers, _, or - (up to 64 characters).

4. Run

Click Run or Publish to GeoServer.

Enciva writes a GeoPackage for that layer and publishes it as a new store and layer in the workspace.

What happens next?

The layer is available in that GeoServer workspace.

If a store or layer with the same name already exists and If layer exists is Fail, publication stops and the existing resources are left untouched.

Replace existing layer deletes the GeoPackage store of the same name when that store only publishes this layer, then publishes again. It will not replace a PostGIS or other non-GeoPackage store, and it will not delete a store that still publishes other layers. If the layer exists in a different store, replace fails.

Jobs can repeat this workflow. Use Replace existing layer when a scheduled or retried run should overwrite the same Enciva-published store and layer.

Multi-layer files

A GeoPackage can contain several layers. GeoServer publication publishes one of them. Select Layer to publish. The other layers are not published in that run.

Having trouble?

See GeoServer rejected the publication.

See also