This is an automated email from the ASF dual-hosted git repository.
jsorel pushed a commit to branch geoapi-4.0
in repository https://gitbox.apache.org/repos/asf/sis.git
The following commit(s) were added to refs/heads/geoapi-4.0 by this push:
new d0900317cd fix(Shapefile): use ISO-8559-1 when parsing prj file
d0900317cd is described below
commit d0900317cd59ac41a772a85a7e5278e77a0c03b5
Author: jsorel <[email protected]>
AuthorDate: Thu Dec 11 10:35:27 2025 +0100
fix(Shapefile): use ISO-8559-1 when parsing prj file
---
.../main/org/apache/sis/storage/shapefile/ShapefileStore.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/incubator/src/org.apache.sis.storage.shapefile/main/org/apache/sis/storage/shapefile/ShapefileStore.java
b/incubator/src/org.apache.sis.storage.shapefile/main/org/apache/sis/storage/shapefile/ShapefileStore.java
index 2f7f9f5e87..9e0efb2357 100644
---
a/incubator/src/org.apache.sis.storage.shapefile/main/org/apache/sis/storage/shapefile/ShapefileStore.java
+++
b/incubator/src/org.apache.sis.storage.shapefile/main/org/apache/sis/storage/shapefile/ShapefileStore.java
@@ -350,7 +350,7 @@ public final class ShapefileStore extends DataStore
implements WritableFeatureSe
final Path prjFile = files.getPrj(false);
if (prjFile != null) {
try {
- crs = CRS.fromWKT(Files.readString(prjFile,
StandardCharsets.UTF_8));
+ crs = CRS.fromWKT(Files.readString(prjFile,
StandardCharsets.ISO_8859_1));
} catch (IOException | FactoryException ex) {
throw new DataStoreException("Failed to parse prj
file.", ex);
}