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

commit d3891721cdb310a80cff845e3e7c10b67b5e3a52
Author: Martin Desruisseaux <[email protected]>
AuthorDate: Mon Nov 30 11:22:04 2026 +0100

    Documentation: prefer "tile" instead of "chunk" even in the n-dimensional 
case,
    because "chunk" is used in a more general sense in other I/O operations.
---
 .../org/apache/sis/coverage/grid/GridClippingMode.java     |  6 +++---
 .../main/org/apache/sis/coverage/grid/GridDerivation.java  | 14 ++++++++------
 .../main/org/apache/sis/coverage/grid/GridExtent.java      |  2 +-
 .../main/org/apache/sis/image/Interpolation.java           |  2 +-
 .../apache/sis/image/internal/shared/ImageUtilities.java   |  8 ++++----
 .../apache/sis/image/internal/shared/ScaledColorModel.java |  2 +-
 .../org/apache/sis/storage/tiling/TiledGridCoverage.java   |  2 +-
 .../sis/storage/tiling/TiledGridCoverageResource.java      |  6 ++----
 8 files changed, 21 insertions(+), 21 deletions(-)

diff --git 
a/endorsed/src/org.apache.sis.feature/main/org/apache/sis/coverage/grid/GridClippingMode.java
 
b/endorsed/src/org.apache.sis.feature/main/org/apache/sis/coverage/grid/GridClippingMode.java
index 1dfd4e798b..d797216054 100644
--- 
a/endorsed/src/org.apache.sis.feature/main/org/apache/sis/coverage/grid/GridClippingMode.java
+++ 
b/endorsed/src/org.apache.sis.feature/main/org/apache/sis/coverage/grid/GridClippingMode.java
@@ -40,9 +40,9 @@ public enum GridClippingMode {
     STRICT,
 
     /**
-     * Clipping is applied on the <i>Area Of Interest</i> supplied by user, 
before expansion for
-     * margin and chunk size. After clipping, the addition of a margin and the 
rounding to chunk size
-     * may cause the final grid extent to expand outside the base grid extent.
+     * Clipping is applied on the <i>Area Of Interest</i> supplied by user, 
before expansion for margin and tile size.
+     * After clipping, the addition of a margin and the rounding to tile size 
may cause the final grid extent to expand
+     * outside the base grid extent.
      *
      * @see GridDerivation#margin(int...)
      */
diff --git 
a/endorsed/src/org.apache.sis.feature/main/org/apache/sis/coverage/grid/GridDerivation.java
 
b/endorsed/src/org.apache.sis.feature/main/org/apache/sis/coverage/grid/GridDerivation.java
index afd15e6352..0c87126181 100644
--- 
a/endorsed/src/org.apache.sis.feature/main/org/apache/sis/coverage/grid/GridDerivation.java
+++ 
b/endorsed/src/org.apache.sis.feature/main/org/apache/sis/coverage/grid/GridDerivation.java
@@ -126,7 +126,7 @@ public class GridDerivation {
 
     /**
      * If the grid is divided in tiles or chunks, the size of the chunks.
-     * This is used for snapping grid size to multiple values of chunk size.
+     * This is used for snapping grid size to multiple values of tile size.
      * If non-null, cannot be empty. Trailing 1 values are omitted.
      *
      * @see #chunkSize(int...)
@@ -375,13 +375,15 @@ public class GridDerivation {
     }
 
     /**
-     * Specifies the size of tiles or chunks in the base grid geometry. If a 
chunk size is specified,
+     * Specifies the size of tiles or chunks in the base grid geometry. If a 
size is specified,
      * then the grid extent computed by {@link #build()} will span an integer 
number of chunks.
-     * The grid coordinates (0, 0, …) locate the corner of a chunk.
+     * The grid coordinates (0, 0, …) locate the corner of a chunk (or tile).
+     * A chunk is often a tile, but not necessarily as it can be, for example,
+     * any kind of sub-division required during I/O operations.
      *
      * <p>This property operates on the same methods as the {@linkplain 
#margin(int...) margin}.
-     * If both a margin and a chunk size are specified, then margins are added 
first
-     * and the resulting grid coordinates are rounded to chunk size.
+     * If both a margin and a chunk (or tile) size are specified, then margins 
are added first
+     * and the resulting grid coordinates are rounded to chunk (or tile) size.
      * This calculation is done in units of the {@linkplain #base} grid cells, 
i.e. before subsampling.
      * For example if subsampling is 2, then a tile size of 20×20 pixels 
specified with this method will
      * result in a tile size of 10×10 cells in the grid extent computed by the 
{@link #build()} method.</p>
@@ -1580,7 +1582,7 @@ public class GridDerivation {
         }
         if (chunkSize != null && dimension < chunkSize.length) {
             /*
-             * If the coverage is divided in tiles (or "chunk" in 
n-dimensional case), we want the subsampling
+             * If the coverage is divided in "chunk" (often tiles, but not 
necessarily), we want the subsampling
              * to be a divisor of tile size. In the special case where the 
subsampling is larger than tile size,
              * we can remove an integer number of tiles because tiles can be 
fully skipped at read time.
              */
diff --git 
a/endorsed/src/org.apache.sis.feature/main/org/apache/sis/coverage/grid/GridExtent.java
 
b/endorsed/src/org.apache.sis.feature/main/org/apache/sis/coverage/grid/GridExtent.java
index 44e4676e01..a0402cd3c3 100644
--- 
a/endorsed/src/org.apache.sis.feature/main/org/apache/sis/coverage/grid/GridExtent.java
+++ 
b/endorsed/src/org.apache.sis.feature/main/org/apache/sis/coverage/grid/GridExtent.java
@@ -1709,7 +1709,7 @@ public class GridExtent implements GridEnvelope, 
LenientComparable, Serializable
 
     /**
      * Returns a grid extent expanded by the minimal number of cells needed 
for covering an integer number of chunks.
-     * The grid coordinates (0, 0, …) locate the corner of a chunk.
+     * The grid coordinates (0, 0, …) locate the corner of a chunk (often a 
tile).
      *
      * <h4>Number of arguments</h4>
      * The {@code sizes} array length should be equal to the {@linkplain 
#getDimension() number of dimensions}.
diff --git 
a/endorsed/src/org.apache.sis.feature/main/org/apache/sis/image/Interpolation.java
 
b/endorsed/src/org.apache.sis.feature/main/org/apache/sis/image/Interpolation.java
index 2b2b50dcf6..fc211a4fc1 100644
--- 
a/endorsed/src/org.apache.sis.feature/main/org/apache/sis/image/Interpolation.java
+++ 
b/endorsed/src/org.apache.sis.feature/main/org/apache/sis/image/Interpolation.java
@@ -115,7 +115,7 @@ public abstract class Interpolation {
      * If the given image uses an index color model, interpolating the indexed 
values does not produce the
      * expected colors. Safest approach is to disable completely 
interpolations in that case.
      *
-     * <p><b>Design note</b>
+     * <p><b>Design note:</b>
      * We could interpolate if we knew that all index values, without 
exception (i.e. no index for missing values),
      * are related to measurements by a linear function. In practice it rarely 
happens, because there is usually
      * at least one index value reserved for missing values. Scientific data 
in SIS are usually stored as floating
diff --git 
a/endorsed/src/org.apache.sis.feature/main/org/apache/sis/image/internal/shared/ImageUtilities.java
 
b/endorsed/src/org.apache.sis.feature/main/org/apache/sis/image/internal/shared/ImageUtilities.java
index bdad223571..8c391112d0 100644
--- 
a/endorsed/src/org.apache.sis.feature/main/org/apache/sis/image/internal/shared/ImageUtilities.java
+++ 
b/endorsed/src/org.apache.sis.feature/main/org/apache/sis/image/internal/shared/ImageUtilities.java
@@ -463,7 +463,7 @@ public final class ImageUtilities {
     /**
      * Converts a <var>x</var> pixel coordinates to a tile index.
      *
-     * <p><b>Implementation note</b>
+     * <p><b>Implementation note:</b>
      * This method performs its calculation using <em>tile grid offset</em> 
instead of minimum coordinate
      * values because the former does not assume that image coordinates start 
at the beginning of first tile.
      * In practice it would be risky to have image {@code minX} different than 
first tile {@code minX},
@@ -495,7 +495,7 @@ public final class ImageUtilities {
      * Converts a tile column index to smallest <var>x</var> pixel coordinate 
inside the tile.
      * The returned value is a coordinate of the pixel in upper-left corner.
      *
-     * <p><b>Implementation note</b>
+     * <p><b>Implementation note:</b>
      * This method performs its calculation using <em>tile grid offset</em> 
instead of minimum coordinate
      * values because the former does not assume that image coordinates start 
at the beginning of first tile.
      * In practice it would be risky to have image {@code minX} different than 
first tile {@code minX},
@@ -529,7 +529,7 @@ public final class ImageUtilities {
      * Converts pixel coordinates to pixel indices.
      * This method does <strong>not</strong> clip the rectangle to image 
bounds.
      *
-     * <p><b>Implementation note</b>
+     * <p><b>Implementation note:</b>
      * This method performs its calculation using <em>tile grid offset</em> 
instead of minimum coordinate
      * values because the former does not assume that image coordinates start 
at the beginning of first tile.
      * The intent is to be consistent with {@link #pixelToTileX(RenderedImage, 
int)}.</p>
@@ -563,7 +563,7 @@ public final class ImageUtilities {
      * Tiles will be fully included in the returned range of pixel indices.
      * This method does <strong>not</strong> clip the rectangle to image 
bounds.
      *
-     * <p><b>Implementation note</b>
+     * <p><b>Implementation note:</b>
      * This method performs its calculation using <em>tile grid offset</em> 
instead of minimum coordinate
      * values because the former does not assume that image coordinates start 
at the beginning of first tile.
      * The intent is to be consistent with {@link #tileToPixelX(RenderedImage, 
int)}.</p>
diff --git 
a/endorsed/src/org.apache.sis.feature/main/org/apache/sis/image/internal/shared/ScaledColorModel.java
 
b/endorsed/src/org.apache.sis.feature/main/org/apache/sis/image/internal/shared/ScaledColorModel.java
index 4b5a14a097..6d9ad22e9b 100644
--- 
a/endorsed/src/org.apache.sis.feature/main/org/apache/sis/image/internal/shared/ScaledColorModel.java
+++ 
b/endorsed/src/org.apache.sis.feature/main/org/apache/sis/image/internal/shared/ScaledColorModel.java
@@ -141,7 +141,7 @@ final class ScaledColorModel extends ComponentColorModel {
      * Returns {@code true} if the given object is also an instance of {@link 
ScaledColorModel}
      * with equals color space and same transfer type.
      *
-     * <p><b>Implementation note</b>
+     * <p><b>Implementation note:</b>
      * We have to override this method because the {@link 
ComponentColorModel#equals(Object)} implementation
      * is confused by our overriding of {@link #getTransparency()} method. 
However, we do not need to override
      * {@link #hashCode()}.</p>
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 46b7823907..494421e55a 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
@@ -1893,7 +1893,7 @@ public abstract class TiledGridCoverage extends 
GridCoverage {
          * <p>The returned region is based on the user's request in her/his 
call to {@link #render(GridExtent)},
          * but is not necessarily identical. The render method may have 
expanded or clipped the user's request.
          * The returned extent may be larger than the actual resource extent 
because it may be rounded to an
-         * integer number of chunks.</p>
+         * integer number of chunks (usually tiles).</p>
          *
          * @return extent of all tiles to be traversed by this iterator, in 
units of the originating resource.
          */
diff --git 
a/endorsed/src/org.apache.sis.storage/main/org/apache/sis/storage/tiling/TiledGridCoverageResource.java
 
b/endorsed/src/org.apache.sis.storage/main/org/apache/sis/storage/tiling/TiledGridCoverageResource.java
index 43810fa4fb..22e852b581 100644
--- 
a/endorsed/src/org.apache.sis.storage/main/org/apache/sis/storage/tiling/TiledGridCoverageResource.java
+++ 
b/endorsed/src/org.apache.sis.storage/main/org/apache/sis/storage/tiling/TiledGridCoverageResource.java
@@ -72,9 +72,7 @@ import org.opengis.coverage.CannotEvaluateException;
 
 
 /**
- * Base class of grid coverage resources that store data in tiles.
- * The word "tile" is used for simplicity but can be understood
- * as "chunk" in a <var>n</var>-dimensional generalization.
+ * Base class of grid coverage resources that store data in 
<var>n</var>-dimensional tiles.
  * Subclasses need to implement the following methods:
  *
  * <ul>
@@ -597,7 +595,7 @@ check:  if (dataType.isInteger()) {
         /**
          * The area to read in unit of the full coverage (without subsampling).
          * This is the intersection between user-specified domain and enclosing
-         * {@link TiledGridCoverageResource} domain, expanded to an integer 
number of chunks.
+         * {@link TiledGridCoverageResource} domain, expanded to an integer 
number of chunks or tiles.
          * A chunk size is usually a tile size, but not necessarily as there 
is other
          * criteria to take in account such as "atom" size and subsampling.
          */

Reply via email to