h2gis icon indicating copy to clipboard operation
h2gis copied to clipboard

Trouble reading SHP file

Open j3r3m1 opened this issue 9 months ago • 1 comments

Hi, When I try to read some shapefile, the same error message as in this issue (#1374) is displayed.

The data : data_test.zip

Any idea if this can come from the same problem as in the other issue ?

j3r3m1 avatar Apr 29 '24 09:04 j3r3m1

Hi,

There is no issues with version 2.2.1 with this command:

CALL SHPREAD('urock_buildings.shp', 'UROCK_BUILDINGS', 'windows-1252')

nicolas-f avatar May 06 '24 07:05 nicolas-f

OK I did not know about the .cpg file containing the information about encoding. Is there a way to automatically read the file with the right encoding using the SHPREAD function ?

j3r3m1 avatar May 13 '24 09:05 j3r3m1

Hi,

no the current version of h2gis assume that the dbf file is in utf8 encoding.

nicolas-f avatar May 13 '24 11:05 nicolas-f

See #1381

ebocher avatar May 21 '24 06:05 ebocher

Fixed

ebocher avatar May 21 '24 07:05 ebocher