[geos-commits] [SCM] GEOS branch 3.14 updated. e79760289d817a33268a8e8e8f6bcc1b3a3e2b90

git at osgeo.org git at osgeo.org
Tue Sep 30 00:30:39 PDT 2025


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GEOS".

The branch, 3.14 has been updated
       via  e79760289d817a33268a8e8e8f6bcc1b3a3e2b90 (commit)
      from  559a3515772450af3626aa99522021177599992b (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit e79760289d817a33268a8e8e8f6bcc1b3a3e2b90
Author: Daniel Baston <dbaston at gmail.com>
Date:   Tue Sep 30 03:30:10 2025 -0400

    GridIntersection: Fix crash for certain polygons outside grid extent

diff --git a/NEWS.md b/NEWS.md
index fa23cb5b0..5555b42ff 100644
--- a/NEWS.md
+++ b/NEWS.md
@@ -4,6 +4,7 @@
 
 - Fixes/Improvements:
   - Make floating-point exceptions optional for geosop (GH-1305, Maxim Kochetkov)
+  - GridIntersection: Fix crash for certain polygons outside grid extent (Dan Baston)
 
 
 ## Changes in 3.14.0
diff --git a/src/operation/grid/Grid.cpp b/src/operation/grid/Grid.cpp
index 73a036ec9..28b84c709 100644
--- a/src/operation/grid/Grid.cpp
+++ b/src/operation/grid/Grid.cpp
@@ -63,7 +63,7 @@ Grid<infinite_extent>::getCellEnvelope(size_t row, size_t col) const
     }
 
     if (row == 0) {
-        cell_ymax = std::max(xmax() + PADDED_CELL_SIZE, m_domain.getMaxX());
+        cell_ymax = std::max(ymax() + PADDED_CELL_SIZE, m_domain.getMaxY());
     } else if (row == getNumRows() - 1) {
         cell_ymax = ymin(); // because bottom row of regular may have different height from others
     } else {

-----------------------------------------------------------------------

Summary of changes:
 NEWS.md                     | 1 +
 src/operation/grid/Grid.cpp | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)


hooks/post-receive
-- 
GEOS


More information about the geos-commits mailing list