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 1e5b739c46 Move `GridCoordinateSystem` to the tiling package. At 
first, we though that it could be used in other contexts. But on a second 
though, it does not seem so likely.
1e5b739c46 is described below

commit 1e5b739c4694cbefe7981bd5e6dc224db9b9ce8d
Author: Martin Desruisseaux <[email protected]>
AuthorDate: Sat Nov 28 01:12:04 2026 +0100

    Move `GridCoordinateSystem` to the tiling package.
    At first, we though that it could be used in other contexts.
    But on a second though, it does not seem so likely.
---
 .../apache/sis/storage/geoheif/ImageResource.java    |  2 +-
 .../org/apache/sis/storage/geotiff/DataSubset.java   |  2 +-
 .../sis/storage/tiling}/GridCoordinateSystem.java    | 20 ++++++++++----------
 .../apache/sis/storage/tiling/TiledGridCoverage.java |  1 -
 .../sis/storage/tiling/ImageTileMatrixTest.java      |  1 -
 .../org/apache/sis/storage/gdal/TiledCoverage.java   |  2 +-
 6 files changed, 13 insertions(+), 15 deletions(-)

diff --git 
a/endorsed/src/org.apache.sis.storage.geoheif/main/org/apache/sis/storage/geoheif/ImageResource.java
 
b/endorsed/src/org.apache.sis.storage.geoheif/main/org/apache/sis/storage/geoheif/ImageResource.java
index 5748cb0912..efec05f945 100644
--- 
a/endorsed/src/org.apache.sis.storage.geoheif/main/org/apache/sis/storage/geoheif/ImageResource.java
+++ 
b/endorsed/src/org.apache.sis.storage.geoheif/main/org/apache/sis/storage/geoheif/ImageResource.java
@@ -40,13 +40,13 @@ import 
org.apache.sis.referencing.operation.transform.MathTransforms;
 import org.apache.sis.coverage.SampleDimension;
 import org.apache.sis.coverage.grid.GridExtent;
 import org.apache.sis.coverage.grid.GridGeometry;
-import org.apache.sis.coverage.grid.GridCoordinateSystem;
 import org.apache.sis.metadata.iso.DefaultMetadata;
 import org.apache.sis.storage.DataStore;
 import org.apache.sis.storage.DataStoreException;
 import org.apache.sis.storage.base.StoreResource;
 import org.apache.sis.storage.tiling.TiledGridCoverage;
 import org.apache.sis.storage.tiling.TiledGridCoverageResource;
+import org.apache.sis.storage.tiling.GridCoordinateSystem;
 import org.apache.sis.storage.isobmff.ByteRanges;
 import org.apache.sis.io.stream.Region;
 import org.apache.sis.io.stream.ChannelDataInput;
diff --git 
a/endorsed/src/org.apache.sis.storage.geotiff/main/org/apache/sis/storage/geotiff/DataSubset.java
 
b/endorsed/src/org.apache.sis.storage.geotiff/main/org/apache/sis/storage/geotiff/DataSubset.java
index 1c2de4cb36..0ce6cf74d4 100644
--- 
a/endorsed/src/org.apache.sis.storage.geotiff/main/org/apache/sis/storage/geotiff/DataSubset.java
+++ 
b/endorsed/src/org.apache.sis.storage.geotiff/main/org/apache/sis/storage/geotiff/DataSubset.java
@@ -40,11 +40,11 @@ import org.apache.sis.image.DataType;
 import org.apache.sis.image.internal.shared.TilePlaceholder;
 import org.apache.sis.image.internal.shared.ImageUtilities;
 import org.apache.sis.image.internal.shared.RasterFactory;
-import org.apache.sis.coverage.grid.GridCoordinateSystem;
 import org.apache.sis.storage.DataStoreException;
 import org.apache.sis.storage.DataStoreContentException;
 import org.apache.sis.storage.tiling.TiledGridCoverage;
 import org.apache.sis.storage.tiling.TiledGridCoverageResource;
+import org.apache.sis.storage.tiling.GridCoordinateSystem;
 import org.apache.sis.storage.geotiff.base.Resources;
 import org.apache.sis.storage.geotiff.reader.ReversedBitsChannel;
 import org.apache.sis.io.stream.Region;
diff --git 
a/endorsed/src/org.apache.sis.feature/main/org/apache/sis/coverage/grid/GridCoordinateSystem.java
 
b/endorsed/src/org.apache.sis.storage/main/org/apache/sis/storage/tiling/GridCoordinateSystem.java
similarity index 86%
rename from 
endorsed/src/org.apache.sis.feature/main/org/apache/sis/coverage/grid/GridCoordinateSystem.java
rename to 
endorsed/src/org.apache.sis.storage/main/org/apache/sis/storage/tiling/GridCoordinateSystem.java
index bb6b969fb6..b4aab41682 100644
--- 
a/endorsed/src/org.apache.sis.feature/main/org/apache/sis/coverage/grid/GridCoordinateSystem.java
+++ 
b/endorsed/src/org.apache.sis.storage/main/org/apache/sis/storage/tiling/GridCoordinateSystem.java
@@ -14,17 +14,18 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package org.apache.sis.coverage.grid;
+package org.apache.sis.storage.tiling;
 
 import java.awt.Rectangle;
 import java.awt.image.Raster;
 import java.awt.image.RenderedImage;
+import org.apache.sis.coverage.grid.GridCoverage;
+import org.apache.sis.storage.GridCoverageResource;
 
 
 /**
  * Identification of the coordinate system used for cell indices or tile 
indices in a grid.
- * The coordinates can be relative to a {@link 
org.apache.sis.storage.GridCoverageResource}
- * such as a big <abbr>TIFF</abbr> file,
+ * The coordinates can be relative to a {@link GridCoverageResource} such as a 
big <abbr>TIFF</abbr> file,
  * or relative to a {@link GridCoverage} read from a subset of that file,
  * or relative to a {@link RenderedImage} produced for a sub-region of that 
coverage,
  * or relative to a {@link Raster} for one tile of that image (non-exhaustive 
list).
@@ -44,23 +45,22 @@ public enum GridCoordinateSystem {
     /**
      * Cell or tile indices are in the grid coordinate system of a resource.
      * A resource is, for example, a data store opened on a big 
<abbr>TIFF</abbr> file
-     * and is represented by a {@link 
org.apache.sis.storage.GridCoverageResource}.
+     * and represented by a {@link GridCoverageResource}.
      * The origin with (0, 0, …) coordinates is often (but not necessarily) 
the upper-left corner of the whole file.
      *
-     * @see org.apache.sis.storage.GridCoverageResource#getGridGeometry()
+     * @see GridCoverageResource#getGridGeometry()
      */
     RESOURCE,
 
     /**
      * Cell or tile indices are in the grid coordinate system of a coverage.
-     * A coverage can be {@linkplain 
org.apache.sis.storage.GridCoverageResource#read read from a resource subspace}.
+     * A coverage can be {@linkplain GridCoverageResource#read read from a 
resource subspace}.
      * Compared to {@link #RESOURCE}, this coordinate system may be translated 
(although a {@link GridCoverage}
-     * can choose to keep the same origin as the the parent {@link 
org.apache.sis.storage.GridCoverageResource}
-     * even if that origin is not inside the coverage) and may have a scale 
factor if subsampling was applied
-     * at reading time.
+     * can choose to keep the same origin as the the parent {@link 
GridCoverageResource} even if that origin is
+     * not inside the coverage) and may have a scale factor if subsampling was 
applied at reading time.
      *
      * @see GridCoverage#getGridGeometry()
-     * @see 
org.apache.sis.storage.tiling.TiledGridCoverage#coverageToResourceCoordinate(long,
 int)
+     * @see TiledGridCoverage#coverageToResourceCoordinate(long, int)
      */
     COVERAGE,
 
diff --git 
a/endorsed/src/org.apache.sis.storage/main/org/apache/sis/storage/tiling/TiledGridCoverage.java
 
b/endorsed/src/org.apache.sis.storage/main/org/apache/sis/storage/tiling/TiledGridCoverage.java
index c37228b86e..46b7823907 100644
--- 
a/endorsed/src/org.apache.sis.storage/main/org/apache/sis/storage/tiling/TiledGridCoverage.java
+++ 
b/endorsed/src/org.apache.sis.storage/main/org/apache/sis/storage/tiling/TiledGridCoverage.java
@@ -44,7 +44,6 @@ import org.opengis.util.GenericName;
 import org.apache.sis.coverage.SubspaceNotSpecifiedException;
 import org.apache.sis.coverage.grid.GridCoverage;
 import org.apache.sis.coverage.grid.GridExtent;
-import org.apache.sis.coverage.grid.GridCoordinateSystem;
 import org.apache.sis.coverage.grid.DisjointExtentException;
 import org.apache.sis.image.PlanarImage;
 import org.apache.sis.image.internal.shared.DeferredProperty;
diff --git 
a/endorsed/src/org.apache.sis.storage/test/org/apache/sis/storage/tiling/ImageTileMatrixTest.java
 
b/endorsed/src/org.apache.sis.storage/test/org/apache/sis/storage/tiling/ImageTileMatrixTest.java
index db9a16c05f..8790f2b7cf 100644
--- 
a/endorsed/src/org.apache.sis.storage/test/org/apache/sis/storage/tiling/ImageTileMatrixTest.java
+++ 
b/endorsed/src/org.apache.sis.storage/test/org/apache/sis/storage/tiling/ImageTileMatrixTest.java
@@ -27,7 +27,6 @@ import org.apache.sis.coverage.SampleDimension;
 import org.apache.sis.coverage.grid.GridExtent;
 import org.apache.sis.coverage.grid.GridGeometry;
 import org.apache.sis.coverage.grid.PixelInCell;
-import org.apache.sis.coverage.grid.GridCoordinateSystem;
 import org.apache.sis.referencing.operation.transform.MathTransforms;
 import org.apache.sis.storage.DataStoreException;
 import org.apache.sis.storage.GridCoverageResource;
diff --git 
a/optional/src/org.apache.sis.storage.gdal/main/org/apache/sis/storage/gdal/TiledCoverage.java
 
b/optional/src/org.apache.sis.storage.gdal/main/org/apache/sis/storage/gdal/TiledCoverage.java
index abf0b249b1..8342aa2e29 100644
--- 
a/optional/src/org.apache.sis.storage.gdal/main/org/apache/sis/storage/gdal/TiledCoverage.java
+++ 
b/optional/src/org.apache.sis.storage.gdal/main/org/apache/sis/storage/gdal/TiledCoverage.java
@@ -26,7 +26,7 @@ import org.opengis.util.GenericName;
 import org.apache.sis.util.logging.Logging;
 import org.apache.sis.storage.DataStoreException;
 import org.apache.sis.storage.tiling.TiledGridCoverage;
-import org.apache.sis.coverage.grid.GridCoordinateSystem;
+import org.apache.sis.storage.tiling.GridCoordinateSystem;
 
 // Test dependencies
 import org.apache.sis.image.internal.shared.AssertionMessages;

Reply via email to