[geos-commits] [SCM] GEOS branch master updated. 23ce93fe1ed062fca0ad035fca54e0002570b7f0

git at osgeo.org git at osgeo.org
Mon Sep 28 03:43:52 PDT 2020


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, master has been updated
       via  23ce93fe1ed062fca0ad035fca54e0002570b7f0 (commit)
      from  14a18becb0c6ec1564241bdc9b41317b9b1c06dd (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 23ce93fe1ed062fca0ad035fca54e0002570b7f0
Author: Sandro Santilli <strk at kbt.io>
Date:   Mon Sep 28 12:40:35 2020 +0200

    Add test for ticket #960
    
    No exception is thrown, so this commit
    closes #960

diff --git a/tests/unit/operation/buffer/BufferOpTest.cpp b/tests/unit/operation/buffer/BufferOpTest.cpp
index cef4333..b2dc84f 100644
--- a/tests/unit/operation/buffer/BufferOpTest.cpp
+++ b/tests/unit/operation/buffer/BufferOpTest.cpp
@@ -394,5 +394,32 @@ void object::test<12>
     ensure(gBuffer->getNumPoints() >= std::size_t(expected_segments));
 }
 
+// Test for ticket #960
+template<>
+template<>
+void object::test<13>
+()
+{
+    using geos::operation::buffer::BufferOp;
+    using geos::operation::buffer::BufferParameters;
+
+    std::string wkt0("MULTILINESTRING ((10 10, 20 20, 10 40), (40 40, 30 30, 40 20, 30 10))");
+
+    GeomPtr g0(wktreader.read(wkt0));
+
+    BufferParameters param;
+    param.setEndCapStyle(geos::operation::buffer::BufferParameters::CAP_FLAT);
+    param.setQuadrantSegments(6);
+
+    BufferOp op(g0.get(), param);
+
+    double const distance = 40.0;
+    GeomPtr gBuffer(op.getResultGeometry(distance));
+
+    ensure_not(gBuffer->isEmpty());
+    ensure(gBuffer->isValid());
+    ensure_equals(gBuffer->getGeometryTypeId(), geos::geom::GEOS_POLYGON);
+}
+
 } // namespace tut
 

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

Summary of changes:
 tests/unit/operation/buffer/BufferOpTest.cpp | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)


hooks/post-receive
-- 
GEOS


More information about the geos-commits mailing list