Publishing an Image¶
Now that you’ve learned how to publish vector data, it’s time to explore publishing raster datasets using GeoServer. Raster data, such as satellite imagery or shaded relief maps, provide continuous spatial information and can greatly enhance your geospatial projects.
Step 1: Create Store¶
This step involves adding a new data store to connect GeoServer with your raster dataset. Make sure your workspace (e.g., manual) is ready before proceeding.
-
In the left-hand menu, under the Data section, click Stores.
-
Click Add New Store and select WorldImage from the list.
-
On the Add Raster Data Source page, fill in the required details:
Field Value Workspace manual Data Source Name ne_shaded_relief Description Grayscale shaded relief of land areas -
Under URL, browse to Manual_Data_GeoServer/shaded_relief/.
-
Select the SR_50M.tif file.
-
Click Save.

Step 2: Publish Image¶
With your image store created, the next step is to publish the raster dataset as a layer in GeoServer.
-
On the New Layer page, locate the SR_50M layer.
-
Under Actions, click Publish.
-
On the Edit Layer page, complete the required fields:
Field Value Name SR_50M Title SR_50M -
In the Bounding Boxes section, click:
- Compute from data
- Compute from native bounds
-
Click Apply to save your changes without leaving the page.
-
Navigate to the Publishing tab at the top of the page.
-
Under WMS Settings, set the Default Style to raster.
-
Click Save to finalize and publish your image layer.

Step 3: Preview Image¶
Once your image layer is published, it’s important to verify that it displays correctly. GeoServer makes this easy with its built-in preview tools.
-
In the left-hand menu, under the Data section, click Layer Preview.
-
Locate the SR_50M layer in the list.
-
Under the Common Formats column, click OpenLayers.
A new browser tab will open displaying your shaded relief raster layer on an interactive OpenLayers map.

Next up: Discover how to combine multiple layers into a single, cohesive map view using a Layer Group.