GeoNode / geonode

GeoNode is an open source platform that facilitates the creation, sharing, and collaborative use of geospatial data.
https://geonode.org/
Other
1.45k stars 1.13k forks source link

Add ESRI Shapefile .cpg support to upload #11519

Closed jraisane closed 8 months ago

jraisane commented 1 year ago

Is your feature request related to a problem? Please describe. Uploading Shapefiles using Geonode does not support the .cpg file specified in the standard. This file specifies the text encoding in the .dbf file. When the encoding of the file is different from the default (UTF-8) for Geonode, an error is raised by the UI that is cryptic and does not appear to have anything to do with the actual issue. For example:

image

Describe the solution you'd like Both the UI and REST endpoint support sending a .cpg file as part of the Shapefile. Geonode then decodes the text using the format specified in the file.

Describe alternatives you've considered

Additional context Here's an example shapefile and the Geonode logs from the failure. This file can be loaded into other tools (e.g. QGIS) just fine. Geonode Encoding Error.zip

ridoo commented 1 year ago

There is a PR already for this issue: https://github.com/geonode/geonode-importer/issues/204

ridoo commented 1 year ago

The issue has been closed, so we can close this as duplicate.