GeoNodeUserGroup-DE / contrib_datapackage

A geonode-importer handler to upload non-spatial data as datapackage
GNU General Public License v3.0
1 stars 0 forks source link

cannot upload csv containing geo information #3

Open mwallschlaeger opened 8 months ago

mwallschlaeger commented 8 months ago

when trying to upload a csv containing geoinformation (usually handled by the default geonode-importer i now when uploading the file. see: image

mkrueger-dev commented 2 months ago

I can second this. The not so desirable work around is uploading your csv as a ZIP. The file is then imported as a usual geospatial csv.

mwallschlaeger commented 2 months ago

hey @mkrueger-dev, 52North (@ridoo ) will continue to work on the imoprter-datapackage soon. So if you run into other issues please use this repository to notify us about it.

ridoo commented 2 months ago

@mwallschlaeger @mkrueger-dev The datapackage handler should not handle plain csv-files per se. The import handler is used only if

See here:

https://github.com/GeoNodeUserGroup-DE/importer-datapackage/blob/fae72b44b4de261dd3be287c04ab8bb9508a4a13/importer_datapackage/handlers/datapackage/handler.py#L57-L80

Could you make sure that this happens only, when the datapackage handler is active? You could comment out the handler in the settings.py.

mkrueger-dev commented 2 months ago

With the handler commented out in the settings.py the geo csv upload works as usual. However, with the handler active I am only able to upload the geo csv as a zip (without the datapackage.json inside the zip).

ridoo commented 4 days ago

Seems, the crux lays somewhere in here:

https://github.com/GeoNode/geonode-mapstore-client/blob/80010e2f22563ea12aa3c3ca1554bee456a4b431/geonode_mapstore_client/client/js/utils/ResourceUtils.js#L698-L712

The requires and needsFiles config seems to mix overlapping config. Will have to investigate further.

ridoo commented 4 days ago

TODO: check if problem is similar when upload is done via API