2 Commits

Author SHA1 Message Date
Nyall Dawson
54eba4a1b0 Use metadata method to retrieve Shapefile encoding on GDAL 3.1+ builds
Avoids code duplication, correct behavior with vsi* sources
2020-02-13 09:32:02 +10:00
Nyall Dawson
bb71b713ec Add helper method to read encoding from shapefile .cpg or LDID information
Ported from the GDAL logic, which unfortunately is not available
for re-use directly from GDAL.
2020-02-13 09:32:02 +10:00