Adding a (gpkg) Vector LayerΒΆ

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

  1. Open the GeoServer UI:

  2. From the Data > Stores page click the Add new Store button

  3. Select the GeoPackage format from the Vector section:

  4. Define the store properties:

    Data Source Name: gpkg-countries

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

    cd ${TRAINING_ROOT}/data/user_data/countries.gpkg
    cd %TRAINING_ROOT%\data\user_data directory\countries.gpkg
  5. Click “Save”.

  6. Publish the layer:


    Click “compute from native bounds”:

  7. Click “Save”.

  8. Preview the layer: