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

cannot upload csv containing geo information #3

Open
mwallschlaeger opened this issue Nov 2, 2023 · 7 comments
Open

cannot upload csv containing geo information #3

mwallschlaeger opened this issue Nov 2, 2023 · 7 comments
Labels
52n bug Something isn't working

Comments

@mwallschlaeger
Copy link

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

@mwallschlaeger mwallschlaeger added the bug Something isn't working label Nov 2, 2023
@mkrueger-dev
Copy link

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
Copy link
Author

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
Copy link
Member

ridoo commented May 6, 2024

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

  • you upload a zip file
  • the zip file contains a file which is named datapackage.json

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
Copy link

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
Copy link
Member

ridoo commented Jul 4, 2024

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
Copy link
Member

ridoo commented Jul 4, 2024

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

@mwallschlaeger
Copy link
Author

i checked using geonodectl i can still upload "geo-csv" files using the API.

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

No branches or pull requests

3 participants