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
commit fa02d98217c948efd2c1d2a219590334934998ab Author: Martin Desruisseaux <martin.desruisse...@geomatys.com> AuthorDate: Wed Dec 7 15:25:40 2022 +0100 Add missing component file (HDR) for ESRI RAW format. --- .../org/apache/sis/internal/storage/esri/RasterStore.java | 2 +- .../org/apache/sis/internal/storage/esri/RawRasterStore.java | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) 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 fba0839862..460a8931ed 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 @@ -95,7 +95,7 @@ abstract class RasterStore extends PRJDataStore implements GridCoverageResource * * @see #getComponentFiles() */ - private static final String STX = "stx", CLR = "clr"; + static final String STX = "stx", CLR = "clr"; /** * The color model, created from the {@code "*.clr"} file content when first needed. diff --git a/storage/sis-storage/src/main/java/org/apache/sis/internal/storage/esri/RawRasterStore.java b/storage/sis-storage/src/main/java/org/apache/sis/internal/storage/esri/RawRasterStore.java index 6e90480e80..7af2e2f21b 100644 --- a/storage/sis-storage/src/main/java/org/apache/sis/internal/storage/esri/RawRasterStore.java +++ b/storage/sis-storage/src/main/java/org/apache/sis/internal/storage/esri/RawRasterStore.java @@ -19,6 +19,7 @@ package org.apache.sis.internal.storage.esri; import java.util.List; import java.util.Locale; import java.io.IOException; +import java.nio.file.Path; import java.nio.ByteOrder; import java.awt.image.DataBuffer; import java.awt.image.SampleModel; @@ -191,6 +192,17 @@ final class RawRasterStore extends RasterStore { input = connector.commit(ChannelDataInput.class, RawRasterStoreProvider.NAME); } + /** + * Returns the {@linkplain #location} as a {@code Path} component together with auxiliary files. + * + * @return the main file and auxiliary files as paths, or an empty array if unknown. + * @throws DataStoreException if the URI cannot be converted to a {@link Path}. + */ + @Override + public Path[] getComponentFiles() throws DataStoreException { + return listComponentFiles(RawRasterStoreProvider.HDR, PRJ, STX, CLR); + } + /** * Returns the metadata associated to the raw binary file. *