GeoNode / geonode-importer

MIT License
2 stars 15 forks source link

Shapefile handler does not accept `cpg` and `cst` files #204

Closed ridoo closed 11 months ago

ridoo commented 1 year ago

It is not possible to upload a cpg file along with a shp. Not sure, if this is by intent, but such files include encoding information which get important if I want to upload Shapefiles which are not default encoded. GDAL tries several things to find out what encoding should be used including reading it from cpg content. We should just allow that file and let GDAL do its job.

However, GeoServer often exports encoding information as cst file. So, it would be good to allow such files as well, and set the encoding via ENCODING or SHAPE_ENCODING parameter.