This is an automated email from the ASF dual-hosted git repository.

asf-gitbox-commits 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 8c8a957e44 Date parsing error fix and documentation adjustment. 
https://issues.apache.org/jira/browse/SIS-629
8c8a957e44 is described below

commit 8c8a957e44228af5c2faf1f76dd9ee4b4b47c9ef
Author: Martin Desruisseaux <[email protected]>
AuthorDate: Wed Aug 26 01:28:29 2026 +0200

    Date parsing error fix and documentation adjustment.
    https://issues.apache.org/jira/browse/SIS-629
---
 README.md                                                      |  1 +
 .../org/apache/sis/referencing/factory/sql/EPSGDataAccess.java |  3 ++-
 .../src/org.apache.sis.referencing.epsg/main/module-info.java  |  2 +-
 .../apache/sis/referencing/factory/sql/epsg/package-info.java  |  4 ++--
 .../sis/referencing/factory/sql/epsg/DataScriptUpdater.java    |  4 ++++
 .../test/org/apache/sis/referencing/factory/sql/epsg/README.md | 10 ++++++++--
 6 files changed, 18 insertions(+), 6 deletions(-)

diff --git a/README.md b/README.md
index 999dedd0ff..c1df4f7f39 100644
--- a/README.md
+++ b/README.md
@@ -10,6 +10,7 @@ structures along with methods derived from the following 
international standards
 * Features and filters    — ISO 19109, ISO 19143
 * Units of measurement    — ISO 19103, JSR 385
 * Data formats:
+  * GeoHEIF
   * GeoTIFF               — OGC 19-008
   * NetCDF                — OGC 10-092, OGC 16-114
   * XML and GML           — ISO 19139, ISO 19136, OGC 01-009
diff --git 
a/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/referencing/factory/sql/EPSGDataAccess.java
 
b/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/referencing/factory/sql/EPSGDataAccess.java
index 90d8ff5ca0..2f2c237172 100644
--- 
a/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/referencing/factory/sql/EPSGDataAccess.java
+++ 
b/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/referencing/factory/sql/EPSGDataAccess.java
@@ -45,6 +45,7 @@ import java.net.URI;
 import java.net.URISyntaxException;
 import java.time.DateTimeException;
 import java.time.LocalDate;
+import java.time.format.DateTimeParseException;
 import java.time.temporal.Temporal;
 import javax.measure.Unit;
 import javax.measure.quantity.Angle;
@@ -1039,7 +1040,7 @@ public class EPSGDataAccess extends 
GeodeticAuthorityFactory implements CRSAutho
     {
         try {
             return LenientDateFormat.parseBest(getOptionalString(result, 
columnIndex));
-        } catch (NumberFormatException exception) {
+        } catch (DateTimeParseException exception) {
             unexpectedException(caller, exception);          // Not a fatal 
error.
         }
         return null;
diff --git a/optional/src/org.apache.sis.referencing.epsg/main/module-info.java 
b/optional/src/org.apache.sis.referencing.epsg/main/module-info.java
index 8f4f4a6abb..54e2ac08a8 100644
--- a/optional/src/org.apache.sis.referencing.epsg/main/module-info.java
+++ b/optional/src/org.apache.sis.referencing.epsg/main/module-info.java
@@ -27,7 +27,7 @@
  * see <a href="https://sis.apache.org/epsg.html";>How to use EPSG geodetic 
dataset</a> on the <abbr>SIS</abbr> web site.
  *
  * @author  Martin Desruisseaux (Geomatys)
- * @version 1.5
+ * @version 1.7
  * @since   0.7
  */
 module org.apache.sis.referencing.epsg {
diff --git 
a/optional/src/org.apache.sis.referencing.epsg/main/org/apache/sis/referencing/factory/sql/epsg/package-info.java
 
b/optional/src/org.apache.sis.referencing.epsg/main/org/apache/sis/referencing/factory/sql/epsg/package-info.java
index 982b8fa434..2fea77f42e 100644
--- 
a/optional/src/org.apache.sis.referencing.epsg/main/org/apache/sis/referencing/factory/sql/epsg/package-info.java
+++ 
b/optional/src/org.apache.sis.referencing.epsg/main/org/apache/sis/referencing/factory/sql/epsg/package-info.java
@@ -16,7 +16,7 @@
  */
 
 /**
- * SQL scripts for EPSG geodetic data set installation.
+ * <abbr>SQL</abbr> scripts for <abbr>EPSG</abbr> geodetic data set 
installation.
  * The <a href="https://epsg.org/";>EPSG</a> geodetic dataset provides 
definitions for thousands of
  * {@linkplain org.opengis.referencing.crs.CoordinateReferenceSystem 
Coordinate Reference Systems} (<abbr>CRS</abbr>),
  * together with parameter values for thousands of {@linkplain 
org.opengis.referencing.operation.ConcatenatedOperation
@@ -31,7 +31,7 @@
  * see <a href="https://sis.apache.org/epsg.html";>How to use EPSG geodetic 
dataset</a> on the <abbr>SIS</abbr> web site.
  *
  * @author  Martin Desruisseaux (Geomatys)
- * @version 1.5
+ * @version 1.7
  * @since   0.7
  */
 package org.apache.sis.referencing.factory.sql.epsg;
diff --git 
a/optional/src/org.apache.sis.referencing.epsg/test/org/apache/sis/referencing/factory/sql/epsg/DataScriptUpdater.java
 
b/optional/src/org.apache.sis.referencing.epsg/test/org/apache/sis/referencing/factory/sql/epsg/DataScriptUpdater.java
index 1b899e3a1a..d9e57df35c 100644
--- 
a/optional/src/org.apache.sis.referencing.epsg/test/org/apache/sis/referencing/factory/sql/epsg/DataScriptUpdater.java
+++ 
b/optional/src/org.apache.sis.referencing.epsg/test/org/apache/sis/referencing/factory/sql/epsg/DataScriptUpdater.java
@@ -67,6 +67,10 @@ public final class DataScriptUpdater {
              Connection c = db.source.getConnection())
         {
             final var formatter = new DataScriptFormatter(c);
+            /*
+             * Dates formatted in a way that we cannot parse.
+             */
+            formatter.addSpellingChange("Datum", null, "March\\s*2011", 
"2011-03");
             /*
              * The version number noted in the history table is a 
copy-and-paste error.
              */
diff --git 
a/optional/src/org.apache.sis.referencing.epsg/test/org/apache/sis/referencing/factory/sql/epsg/README.md
 
b/optional/src/org.apache.sis.referencing.epsg/test/org/apache/sis/referencing/factory/sql/epsg/README.md
index 66ff572bc4..eb4dfa1afd 100644
--- 
a/optional/src/org.apache.sis.referencing.epsg/test/org/apache/sis/referencing/factory/sql/epsg/README.md
+++ 
b/optional/src/org.apache.sis.referencing.epsg/test/org/apache/sis/referencing/factory/sql/epsg/README.md
@@ -1,5 +1,10 @@
 # EPSG dataset update procedure
 
+<!--
+Online version:
+https://github.com/apache/sis/blob/main/optional/src/org.apache.sis.referencing.epsg/test/org/apache/sis/referencing/factory/sql/epsg/README.md
+-->
+
 The `org.apache.sis.referencing.factory.sql.epsg` package in the 
`non-free:sis-epsg` Maven artifact
 provides SQL scripts for installing a local copy of the [EPSG geodetic 
dataset](https://epsg.org/).
 That dataset provides definitions for thousands of Coordinate Reference 
Systems (CRS),
@@ -44,12 +49,13 @@ Verify that the new SQL scripts downloaded from EPSG 
defines the same tables as
 
 ```bash
 cd _<directory containing EPSG scripts of previous version>_
+diff PostgreSQL_Readme.txt $EPSG_SCRIPTS/PostgreSQL_Readme.txt
 diff PostgreSQL_Table_Script.sql $EPSG_SCRIPTS/PostgreSQL_Table_Script.sql
 diff PostgreSQL_FKey_Script.sql  $EPSG_SCRIPTS/PostgreSQL_FKey_Script.sql
 ```
 
-If there are some changes, port them manually to the {@code Tables.sql} and 
{@code FKeys.sql} scripts.
-The [page listing the changes](./Changes.html) gives information about the 
changes to expert or to reproduce.
+If there are some changes, port them manually to the `Tables.sql` and 
`FKeys.sql` scripts.
+The [page listing the changes](./Changes.md) gives information about the 
changes to expect or to reproduce.
 Then, execute the `main` method of the 
`org.apache.sis.referencing.factory.sql.epsg.*Updater` classes
 located in the test directory of the `org.apache.sis.non-free:sis-epsg` Maven 
sub-project.
 Adjust version numbers as needed in the following commands:

Reply via email to