Open ridoo opened 2 months ago
I dont like much the idea of changing a file format on the fly, this may lead to other issues (manly related to the OS)
What is intresting here is the error that raise:
does not support layer creation option SHAPE_ENCODING
Looking at this topic, they suggest to use the option ENCODING https://trac.osgeo.org/gdal/ticket/4359#comment:1 Is it possible for you to make a test with the ENCODING instead of SHAPE_ENCODING?
Issue https://github.com/GeoNode/geonode-importer/issues/210 added support for
cst
files. However, the approach adding the layer create optionENCODING
does not work (anymore?) as expected. For example (using vineyards register (Weinbergsrolle) from the German state Rhineland-Palatinate):When renaming
Weinlagen.cst
toWeinlagen.cpg
everything works as expected.@mattiagiupponi I tend to change the current approach "read and set the encoding" to change the
.cst
extension (if it exists) to.cpg
and letogr2ogr
do the rest. Any objections/thourghts on this?