I am trying to publish a new layer from a Geopackage store which I created using the following code

cat = Catalog("http://localhost:8080/geoserver/rest/")
geoserver_workspace = cat.get_workspace("myworkspace")

ds = cat.create_datastore(store_name, geoserver_workspace)


The above code does create a store in the Geoserver but the path of the database which I am giving is on local hard drive and not on the server.

This creates a problem when I manually try to publish a new layer using the above store

Could not list layers for this store, an error occurred retrieving them: null

Can some one help me in giving the right parameters to connection_parameters.update() function so that the store is correctly created in the geoserver location from the local drive.

I am using the gsconfig Python library as a wrapper to accessing Geoserver REST API https://github.com/ingenieroariel/gsconfig.py

When using shp file, the store is created in the Geoserver at file:/workshop/geonode/geoserver/data/data/myworkspace/study001_ins00/ using the create_featurestore() function

Geoserver Version is

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.