Skip to content
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

Vector upload for gpkg data bug #327

Open
Momen-Mawad opened this issue Mar 21, 2022 · 1 comment
Open

Vector upload for gpkg data bug #327

Momen-Mawad opened this issue Mar 21, 2022 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@Momen-Mawad
Copy link
Contributor

When uploading a vector data to actinia using the following command:

curl -L -u "XX:XX" -X POST -H "Content-Type: multipart/form-data" -F "file=@NRW.gpkg" https://actinia-dev.mundialis.de/api/v3/locations/latlong_wgs84/mapsets/test_mapset/vector_layers/testvector

I received an error by v.import:

"stderr": [
"ERROR: Unable to open data source </actinia_core/workspace/download_cache/momen/NRW_4ae15f5f-3505-4a1a-bfc6-3c1a8705bf75.gpkg>",
"ERROR: Unable to open data source </actinia_core/workspace/download_cache/momen/NRW_4ae15f5f-3505-4a1a-bfc6-3c1a8705bf75.gpkg>",
"ERROR: Unable to create location from OGR datasource </actinia_core/workspace/download_cache/momen/NRW_4ae15f5f-3505-4a1a-bfc6-3c1a8705bf75.gpkg>",
""

This command seems to work fine with geojson and zipped shapefile.

Attached the example NRW.gpkg

@Momen-Mawad Momen-Mawad added the bug Something isn't working label Mar 21, 2022
@mmacata
Copy link
Member

mmacata commented Mar 22, 2022

Works fine for me: curl -L -u XX:XX -X POST -H "Content-Type: multipart/form-data" -F "file=@Downloads/NRW.gpkg" https://actinia-dev.mundialis.de/api/v3/locations/latlong_wgs84/mapsets/test_mapset/vector_layers/testvector_ct and
"message": "Vector layer <testvector_ct> successfully imported.",
I used the NRW.gpkg you attached, unzipped it and everything worked out well.
https://actinia-dev.mundialis.de/api/v3/locations/latlong_wgs84/mapsets/test_mapset/vector_layers/testvector_ct
Can you try again please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants