Skip to content

create_datastore fails for GeoPackage #142

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
pesekon2 opened this issue Mar 5, 2024 · 5 comments
Closed

create_datastore fails for GeoPackage #142

pesekon2 opened this issue Mar 5, 2024 · 5 comments
Labels
enhancement New feature or request New feature New feature or request

Comments

@pesekon2
Copy link
Contributor

pesekon2 commented Mar 5, 2024

I believe that the type of the store is not correctly set when trying to create a datastore based on a GeoPackage. I get the warning icon in GeoServer web interface. And if I try to publish the datastore with geo.publish_featurestore, I get the following error:

Traceback (most recent call last):
  File "/home/pesek/workspace/scripts/geoserver/create_coverage.py", line 9, in <module>
    geo.publish_featurestore(workspace='highways', store_name='highways', pg_table='highways')
  File "/home/pesek/workspace/scripts/.direnv/python-3.10.12/lib/python3.10/site-packages/geo/Geoserver.py", line 1901, in publish_featurestore
    raise GeoserverException(r.status_code, r.content)
geo.Geoserver.GeoserverException: Status : 500 - b'Failed to find the datastore factory for highways, did you forget to install the store extension jar?'
@iamtekson
Copy link
Collaborator

I am sorry, but the current implementation only supports the PostGIS table might not work from geopackage. Looks like we need another PR for uploading the geopackage.

@iamtekson iamtekson added enhancement New feature or request New feature New feature or request labels Mar 5, 2024
@iamtekson
Copy link
Collaborator

Not sure but the geo.create_shp_datastore might also work to create the geopackage datastore. Can you check and verify that?

@pesekon2
Copy link
Contributor Author

pesekon2 commented Mar 5, 2024

I am sorry, but the current implementation only supports the PostGIS table might not work from geopackage. Looks like we need another PR for uploading the geopackage.

Pity as we work solely with geopackages. But nice work otherwise!

Not sure but the geo.create_shp_datastore might also work to create the geopackage datastore. Can you check and verify that?

If I zip the geopackage, I am able to create the datastore, but it is (as expected) defined as a shapefile datastore.

image

Thus, I am not able to add any layer to that as the layers are not found (it is probably searching only for shapefiles). The same applies to the web interface. If I create a datastore based on geopackage using the web interface, I can see my layers there.

image

@iamtekson
Copy link
Collaborator

This issue is solved by #143. I will soon release the new version.

@pesekon2
Copy link
Contributor Author

Great, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request New feature New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants