Adding a (gpkg) Raster LayerΒΆ

In this section you will publish a GeoPackage raster layer in GeoServer.

  1. Open the GeoServer UI:

    http://localhost:8083/geoserver/web
    
  2. From the Data > Stores page click the Add new Store button

    ../_images/add-new-store.png
  3. Select the GeoPackage format from the Raster section:

    ../_images/gpkg-ras-store.png
  4. Define the store properties:

    Data Source Name: gpkg-bmreduced

    Connection parameters: browse the filesystem to identify the GPKG database:

    (Linux)
    cd ${TRAINING_ROOT}/data/user_data/countries.gpkg
    
    or
    
    (Windows)
    cd %TRAINING_ROOT%\data\user_data directory\countries.gpkg
    
    ../_images/gpkg-new-ras-store-1.png
  5. Click “Save”.

  6. Publish the layer:

    ../_images/gpkg-ras-layer-pub.png
    ../_images/gpkg-ras-layer-edit-0.png
    ../_images/gpkg-ras-layer-edit-1.png
  7. Click “Save”.

  8. Preview the layer:

    ../_images/gpkg-ras-layer-preview-0.png
    ../_images/gpkg-ras-layer-preview-1.png