From ff6207d200d58bd0c845c54a3459c77aed452ead Mon Sep 17 00:00:00 2001 From: Oliver Tonnhofer Date: Wed, 5 Feb 2014 10:04:00 +0100 Subject: [PATCH] add failing test-case for #18 multipolygons that are not closed (topological) can be handled by using GEOS LineMerge function. It's expected to be slower than the node ID based merger. Maybe it's feasible to use LineMerge as a fallback. --- test/imposm_system_test.py | 5 +++++ test/test.osm | 24 ++++++++++++++++++++++++ 2 files changed, 29 insertions(+) diff --git a/test/imposm_system_test.py b/test/imposm_system_test.py index 8a8c48b..e10ee5a 100644 --- a/test/imposm_system_test.py +++ b/test/imposm_system_test.py @@ -434,6 +434,11 @@ def test_generalized_linestring_is_valid(): assert road['geometry'].is_valid, road['geometry'].wkt assert road['geometry'].length > 1000000 +@unittest.skip("not implemented") +def test_relation_with_gap(): + """Multipolygon with gap (overlapping but different endpoints) gets closed""" + park = query_row(db_conf, 'osm_landusages', -7301) + assert park['geometry'].is_valid, park ####################################################################### def test_update(): diff --git a/test/test.osm b/test/test.osm index 48d2e06..ac8ed2b 100644 --- a/test/test.osm +++ b/test/test.osm @@ -341,6 +341,30 @@ + + + + + + + + + + + + + + + + + + + + + + + +