[Git][debian-gis-team/geos][experimental] 4 commits: New upstream version 3.11.0~rc0

Bas Couwenberg (@sebastic) gitlab at salsa.debian.org
Thu Jun 30 04:37:18 BST 2022



Bas Couwenberg pushed to branch experimental at Debian GIS Project / geos


Commits:
a7d18d81 by Bas Couwenberg at 2022-06-30T05:19:15+02:00
New upstream version 3.11.0~rc0
- - - - -
e466b1ba by Bas Couwenberg at 2022-06-30T05:19:27+02:00
Update upstream source from tag 'upstream/3.11.0_rc0'

Update to upstream version '3.11.0~rc0'
with Debian dir 99c6f68b3d0eb036e6a2e0a3ccbc8bf065be20b5
- - - - -
ba93a1b1 by Bas Couwenberg at 2022-06-30T05:19:44+02:00
New upstream release candidate.

- - - - -
a2e732b3 by Bas Couwenberg at 2022-06-30T05:21:12+02:00
Set distribution to experimental.

- - - - -


10 changed files:

- NEWS.md
- Version.txt
- benchmarks/operation/predicate/RectangleIntersectsPerfTest.cpp
- capi/geos_c.h.in
- debian/changelog
- include/geos/triangulate/quadedge/Vertex.h
- release.md
- src/noding/snap/SnappingNoder.cpp
- src/operation/buffer/OffsetSegmentGenerator.cpp
- src/operation/overlay/validate/OffsetPointGenerator.cpp


Changes:

=====================================
NEWS.md
=====================================
@@ -1,5 +1,5 @@
-## Changes in 3.11.0beta2
-2022-06-20
+## Changes in 3.11.0rc0
+2022-06-29
 
 - New things:
   - OffsetCurve (GH-530, Paul Ramsey/Martin Davis)
@@ -11,6 +11,8 @@
   - CAPI: GEOSGeom_transformXY (GH-563, Dan Baston/Brendan Ward)
   - CAPI: GEOSRemoveRepeatedPoints (GH-599, Paul Ramsey)
   - CAPI: GEOSLineMergeDirected (GH-597, Sergei Sh)
+  - CAPI: setFixStructure for WKB/WKT readers to automatically repair
+    structural errors in the input (GH-639, Paul Ramsey)
 
 - Fixes/Improvements:
   - Fix unaryUnion to avoid segfault with empty polygon (GH-501, Mike Taves)


=====================================
Version.txt
=====================================
@@ -5,7 +5,7 @@ GEOS_VERSION_MINOR=11
 GEOS_VERSION_PATCH=0
 
 # OPTIONS: "", "dev", "rc1" etc.
-GEOS_PATCH_WORD=beta2
+GEOS_PATCH_WORD=rc0
 
 # GEOS CAPI Versions
 #
@@ -15,9 +15,9 @@ GEOS_PATCH_WORD=beta2
 # - Deleting interfaces / compatibility issues - bump CURRENT, others to zero
 #   ( THIS MUST BE CAREFULLY AVOIDED )
 #
-CAPI_INTERFACE_CURRENT=17
+CAPI_INTERFACE_CURRENT=18
 CAPI_INTERFACE_REVISION=0
-CAPI_INTERFACE_AGE=16
+CAPI_INTERFACE_AGE=17
 
 # JTS Port
 JTS_PORT=1.18.0


=====================================
benchmarks/operation/predicate/RectangleIntersectsPerfTest.cpp
=====================================
@@ -111,7 +111,7 @@ private:
     createRectangles(const Envelope& env, int nRect, double,
                      std::vector<const Geometry*>& rectList)
     {
-        int nSide =  1 + (int)sqrt((double) nRect);
+        int nSide =  1 + (int)std::sqrt((double) nRect);
         double dx = env.getWidth() / nSide;
         double dy = env.getHeight() / nSide;
 


=====================================
capi/geos_c.h.in
=====================================
@@ -2792,8 +2792,8 @@ extern int GEOS_DLL GEOSMakeValidParams_setMethod(
     enum GEOSMakeValidMethods method);
 
 /**
-* When this parameter is not set to 0, the GEOS_MAKE_VALID_STRUCTURE method will drop
-* any component that has collapsed into a lower dimensionality.
+* When this parameter is nn-zero, the GEOS_MAKE_VALID_STRUCTURE method will keep
+* components that have collapsed into a lower dimensionality.
 * For example, a ring collapsing to a line, or a line collapsing
 * to a point.
 * \return 0 on exception, 1 on success.
@@ -3780,7 +3780,9 @@ extern GEOSGeometry GEOS_DLL *GEOSNode(const GEOSGeometry* g);
 * linework is extracted as the edges to be polygonized.
 *
 * The edges must be correctly noded; that is, they must only meet
-* at their endpoints. Polygonization will accept incorrectly noded
+* at their endpoints and not overlap anywhere. If your edges are not
+* already noded, run them through GEOSUnaryUnion() first.
+* Polygonization will accept incorrectly noded
 * input but will not form polygons from non-noded edges, and reports
 * them as errors.
 *


=====================================
debian/changelog
=====================================
@@ -1,8 +1,9 @@
-geos (3.11.0~beta2-1~exp2) UNRELEASED; urgency=medium
+geos (3.11.0~rc0-1~exp1) experimental; urgency=medium
 
+  * New upstream release candidate.
   * Bump Standards-Version to 4.6.1, no changes.
 
- -- Bas Couwenberg <sebastic at debian.org>  Tue, 21 Jun 2022 07:07:50 +0200
+ -- Bas Couwenberg <sebastic at debian.org>  Thu, 30 Jun 2022 05:20:59 +0200
 
 geos (3.11.0~beta2-1~exp1) experimental; urgency=medium
 


=====================================
include/geos/triangulate/quadedge/Vertex.h
=====================================
@@ -180,7 +180,7 @@ public:
     inline double
     magn() const
     {
-        return (sqrt(p.x * p.x + p.y * p.y));
+        return (std::sqrt(p.x * p.x + p.y * p.y));
     }
 
     /* returns k X v (cross product). this is a vector perpendicular to v */


=====================================
release.md
=====================================
@@ -1,4 +1,4 @@
-2022-06-20
+2022-06-29
 
 - New things:
   - OffsetCurve (GH-530, Paul Ramsey/Martin Davis)
@@ -10,6 +10,8 @@
   - CAPI: GEOSGeom_transformXY (GH-563, Dan Baston/Brendan Ward)
   - CAPI: GEOSRemoveRepeatedPoints (GH-599, Paul Ramsey)
   - CAPI: GEOSLineMergeDirected (GH-597, Sergei Sh)
+  - CAPI: setFixStructure for WKB/WKT readers to automatically repair
+    structural errors in the input (GH-639, Paul Ramsey)
 
 - Fixes/Improvements:
   - Fix unaryUnion to avoid segfault with empty polygon (GH-501, Mike Taves)


=====================================
src/noding/snap/SnappingNoder.cpp
=====================================
@@ -28,6 +28,7 @@
 
 #include <algorithm> // for std::min and std::max
 #include <memory>
+#include <cmath>
 
 using namespace geos::geom;
 using namespace geos::index::kdtree;
@@ -73,7 +74,7 @@ SnappingNoder::snapVertices(std::vector<SegmentString*>& segStrings, std::vector
 void
 SnappingNoder::seedSnapIndex(std::vector<SegmentString*>& segStrings)
 {
-    double PHI_INV = (sqrt(5) - 1.0) / 2.0;
+    double PHI_INV = (std::sqrt(5.0) - 1.0) / 2.0;
 
     for (SegmentString* ss: segStrings) {
         CoordinateSequence* cs = ss->getCoordinates();


=====================================
src/operation/buffer/OffsetSegmentGenerator.cpp
=====================================
@@ -179,7 +179,7 @@ OffsetSegmentGenerator::computeOffsetSegment(const LineSegment& seg, int p_side,
     int sideSign = p_side == Position::LEFT ? 1 : -1;
     double dx = seg.p1.x - seg.p0.x;
     double dy = seg.p1.y - seg.p0.y;
-    double len = sqrt(dx * dx + dy * dy);
+    double len = std::sqrt(dx * dx + dy * dy);
     // u is the vector that is the length of the offset,
     // in the direction of the segment
     double ux = sideSign * p_distance * dx / len;


=====================================
src/operation/overlay/validate/OffsetPointGenerator.cpp
=====================================
@@ -90,7 +90,7 @@ OffsetPointGenerator::computeOffsets(const Coordinate& p0,
 {
     double dx = p1.x - p0.x;
     double dy = p1.y - p0.y;
-    double len = sqrt(dx * dx + dy * dy);
+    double len = std::sqrt(dx * dx + dy * dy);
 
     // u is the vector that is the length of the offset,
     // in the direction of the segment



View it on GitLab: https://salsa.debian.org/debian-gis-team/geos/-/compare/532c4c6decebbea30f5e0f90a66d4317fbe06e65...a2e732b36f08c5e38a68ae13b1106ada4114e772

-- 
View it on GitLab: https://salsa.debian.org/debian-gis-team/geos/-/compare/532c4c6decebbea30f5e0f90a66d4317fbe06e65...a2e732b36f08c5e38a68ae13b1106ada4114e772
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-grass-devel/attachments/20220630/0d43e8bb/attachment-0001.htm>


More information about the Pkg-grass-devel mailing list