Publishing a Layer¶
Now that we've successfully connected to the store, the next step is to publish a layer so that it becomes available for use within GeoServer. Publishing a layer makes your data accessible for styling, previewing, and sharing with clients or other applications.
Step 1: Access Creation Page¶
To begin publishing, we first need to open the layer creation page in GeoServer.
-
On the New Layer page, locate the ne_110m_coastline layer.
-
Under Actions, click Publish.
-
The Edit Layer page will open, where you can configure the layer’s settings.
Step 2: Publish Layer¶
Now it’s time to make your data available as a layer in GeoServer.
-
On the Edit Layer page, fill in the required details:
Field Value Name ne_110m_coastline Title ne_110m_coastline -
In the Bounding Boxes section, click:
- Compute from data
- Compute from native bounds
-
Click Apply to save your progress without closing the page.
-
From the top of the page, click the Publishing tab.
-
Under WMS Settings, set the Default Style to line.
-
Click Save to finalize and publish your layer.
Step 3: Preview Layer¶
Once your layer is published, you can check that everything is working correctly by previewing it in GeoServer.
-
In the left-hand menu, under the Data section, click Layer Preview.
-
Find the ne_110m_coastline layer.
-
In the Common Formats column, click OpenLayers.
An OpenLayers map will open in a new tab, showing your shapefile data with the default line style. You can zoom, pan, and click on features to view their attributes.
manual in the search field.
Video Tutorial¶
Next up: Learn how to publish and manage a raster dataset using GeoServer, unlocking powerful visualization of continuous spatial data.