Re: [Geotools-devel] ESRI Shapefile driver read charset from *.cpg file

2023-09-15 Thread mark
hmm, I though GeoTools already inspected the CPG sidecar file; as of 26.x, see https://github.com/geotools/geotools/pull/3405 Have you set the `tryCPGFile` value to to true on the store? -M Op 15-09-2023 om 09:56 schreef Andrea Aime: That sounds great, but at the same time I'm a bit confused.

Re: [Geotools-devel] ESRI Shapefile driver read charset from *.cpg file

2023-09-15 Thread Andrea Aime
That sounds great, but at the same time I'm a bit confused. The ESRI specification claims that the file contains a "codepage ", while Java needs a Charset

Re: [Geotools-devel] ESRI Shapefile driver read charset from *.cpg file

2023-09-14 Thread Jody Garnett
That would be a welcome improvement :) Have you read our contribution policy, did you have any questions? On Thu, Sep 14, 2023 at 12:45 PM Burkhard Strauss wrote: > Some providers of ESRI Shapefile data provide an additional *.cpg-file > containing the character set name for string-fields in

[Geotools-devel] ESRI Shapefile driver read charset from *.cpg file

2023-09-14 Thread Burkhard Strauss
Some providers of ESRI Shapefile data provide an additional *.cpg-file containing the character set name for string-fields in the *.dbf-file. One such provider is HERE/NavStreets street map data. Currently the API-user has to specify a Charset to the ShapefileDataStoreFactory to ensure