actinia-core
actinia-core copied to clipboard
Vector upload for gpkg data bug
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 "[email protected]" 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
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?