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.
It is not possible to upload a
cpg
file along with ashp
. 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 fromcpg
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 viaENCODING
orSHAPE_ENCODING
parameter.