[geos-commits] [SCM] GEOS branch master updated. 2036448ae9ef15ef026ff5b5bb6acbff119c75c3

git at osgeo.org git at osgeo.org
Tue Oct 1 16:06:09 PDT 2019


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  2036448ae9ef15ef026ff5b5bb6acbff119c75c3 (commit)
      from  ff05d9755d189771147acb3105bd9c9cfff730ff (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 2036448ae9ef15ef026ff5b5bb6acbff119c75c3
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date:   Tue Oct 1 16:05:31 2019 -0700

    Add trimmed down test case on Voronoi.
    Curiously, this case blows an exception on PostGIS, but not in the unit test.
    References #859

diff --git a/tests/unit/capi/GEOSVoronoiDiagramTest.cpp b/tests/unit/capi/GEOSVoronoiDiagramTest.cpp
index 9bc5ec7..91808a5 100644
--- a/tests/unit/capi/GEOSVoronoiDiagramTest.cpp
+++ b/tests/unit/capi/GEOSVoronoiDiagramTest.cpp
@@ -183,5 +183,17 @@ void object::test<6>
                       "MULTILINESTRING ((-14 376.5882352941176, 172.3651328095773 261.4803591470258), (172.3651328095773 261.4803591470258, 56.63157894736844 73), (172.3651328095773 261.4803591470258, 200.6640625 265.6015625), (200.6640625 265.6015625, 201 265.4), (201 265.4, 210 251), (210 251, 210 73), (208.04 450, 200.6640625 265.6015625), (397 343.8, 201 265.4), (210 251, 397 176.2))"
                      );
 }
+
+template<>
+template<>
+void object::test<7>
+()
+{
+    /* https://trac.osgeo.org/geos/ticket/859 */
+    std::string hex = "0104000020110F0000130000000101000000F06D31DFAA2E1B4131A0CD7FB94F604101010000000FE54E38B80E1B41C845F1FBB85260410101000000F06D31DFAA2E1B41CD873BECB854604101010000000FE54E38B80E1B4131A0CD7FB94F604101010000000FE54E38B80E1B410B4DECBCB94E604101010000000FE54E38B80E1B41452CADCDB85360410101000000F06D31DFAA2E1B41BAD5931AB950604101010000000FE54E38B80E1B417251B946BA4D604101010000000FE54E38B80E1B412209A9E2B85560410101000000F06D31DFAA2E1B41C845F1FBB85260410101000000F06D31DFAA2E1B41C2863DA9B95860410101000000F06D31DFAA2E1B413D7BF725B95660410101000000F06D31DFAA2E1B41E9C72241B95760410101000000F06D31DFAA2E1B4172D01602B951604101010000000FE54E38B80E1B4172D01602B951604101010000000FE54E38B80E1B41CD873BECB854604101010000000FE54E38B80E1B41BAD5931AB95060410101000000F06D31DFAA2E1B412209A9E2B85560410101000000F06D31DFAA2E1B41452CADCDB8536041";
+    geom1_ = GEOSGeomFromHEX_buf((const unsigned char*)(hex.c_str()), hex.length());
+    geom2_ = GEOSVoronoiDiagram(geom1_, nullptr, 0, 1);
+}
+
 } // namespace tut
 

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

Summary of changes:
 tests/unit/capi/GEOSVoronoiDiagramTest.cpp | 12 ++++++++++++
 1 file changed, 12 insertions(+)


hooks/post-receive
-- 
GEOS


More information about the geos-commits mailing list