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

desruisseaux 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 91cd9c2583 In case of failure to transform the envelope in metadata, 
report as a warning instead of a failure to read the file.
91cd9c2583 is described below

commit 91cd9c25838c1405b19a2b962c68090f77f51f58
Author: Martin Desruisseaux <martin.desruisse...@geomatys.com>
AuthorDate: Thu Jun 1 16:03:19 2023 +0200

    In case of failure to transform the envelope in metadata,
    report as a warning instead of a failure to read the file.
---
 .../main/java/org/apache/sis/internal/storage/esri/RasterStore.java  | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git 
a/storage/sis-storage/src/main/java/org/apache/sis/internal/storage/esri/RasterStore.java
 
b/storage/sis-storage/src/main/java/org/apache/sis/internal/storage/esri/RasterStore.java
index ab1c177127..9de8ce1903 100644
--- 
a/storage/sis-storage/src/main/java/org/apache/sis/internal/storage/esri/RasterStore.java
+++ 
b/storage/sis-storage/src/main/java/org/apache/sis/internal/storage/esri/RasterStore.java
@@ -41,7 +41,6 @@ import org.apache.sis.image.PlanarImage;
 import org.apache.sis.storage.GridCoverageResource;
 import org.apache.sis.storage.DataStoreProvider;
 import org.apache.sis.storage.DataStoreException;
-import org.apache.sis.storage.DataStoreReferencingException;
 import org.apache.sis.storage.StorageConnector;
 import org.apache.sis.internal.storage.PRJDataStore;
 import org.apache.sis.internal.storage.MetadataBuilder;
@@ -69,7 +68,7 @@ import org.apache.sis.math.Statistics;
  * </ul>
  *
  * @author  Martin Desruisseaux (Geomatys)
- * @version 1.2
+ * @version 1.4
  * @since   1.2
  */
 abstract class RasterStore extends PRJDataStore implements 
GridCoverageResource {
@@ -180,7 +179,7 @@ abstract class RasterStore extends PRJDataStore implements 
GridCoverageResource
         try {
             builder.addExtent(gridGeometry.getEnvelope());
         } catch (TransformException e) {
-            throw new DataStoreReferencingException(getLocale(), formatName, 
getDisplayName(), null).initCause(e);
+            listeners.warning(e);
         }
         /*
          * Do not invoke `getSampleDimensions()` because computing sample 
dimensions without statistics

Reply via email to