Adding a (gpkg) Vector LayerΒΆ
In this section you will publish a GeoPackage vector layer in GeoServer.
Open the GeoServer UI:
http://localhost:8083/geoserver/web
From the Data > Stores page click the Add new Store button
Select the GeoPackage format from the Vector section:
Define the store properties:
Data Source Name: gpkg-countries
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
Click “Save”.
Publish the layer:
Click “compute from native bounds”:
Click “Save”.
Preview the layer: