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 0d66da390b Change policy about the ordering of lattice: make the 
ordering part of the method contract.
0d66da390b is described below

commit 0d66da390b4fd2bb2c0b912d5ea10725c1e9f415
Author: Martin Desruisseaux <[email protected]>
AuthorDate: Wed Apr 15 19:44:12 2026 +0200

    Change policy about the ordering of lattice:
    make the ordering part of the method contract.
---
 .../main/org/apache/sis/coverage/grid/GridExtent.java                 | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

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 6cfb4fa004..52fd31bd54 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
@@ -2148,7 +2148,8 @@ public class GridExtent implements GridEnvelope, 
LenientComparable, Serializable
      * Create a stream of all lattice points contained inside this grid extent.
      * For each dimension, the coordinate values range from {@linkplain 
#getLow(int) low}
      * to {@linkplain #getHigh(int) high} inclusive.
-     * No assumption about iteration order should be made.
+     * The stream is ordered from first dimension varying the fastest to last 
dimension varying the slowest.
+     * For a two-dimensional grid, this ordering corresponds to the row-major 
order.
      *
      * @param  parallel  whether to return a parallel stream.
      * @return stream of lattice points inside this grid extent.
@@ -2160,6 +2161,7 @@ public class GridExtent implements GridEnvelope, 
LenientComparable, Serializable
 
     /**
      * Iterator over all grid coordinates included inside the grid extent, low 
and high values included.
+     * Iteration is ordered from first dimension varying the fastest to last 
dimension varying the slowest.
      */
     private static final class Iter implements Spliterator<long[]> {
         /**

Reply via email to