From 5a5276dbf46524f020efe5f0d452d943e16f30ac Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Wed, 20 Mar 2013 16:10:40 +0000 Subject: [PATCH] Add perturbating edges in TopoJSON test git-svn-id: http://svn.osgeo.org/postgis/trunk@11189 b70326c6-7e19-0410-871a-916f4a2858ee --- topology/test/regress/topojson.sql | 7 +++++++ topology/test/regress/topojson_expected | 4 ++++ 2 files changed, 11 insertions(+) diff --git a/topology/test/regress/topojson.sql b/topology/test/regress/topojson.sql index e723aa779..f258d790c 100644 --- a/topology/test/regress/topojson.sql +++ b/topology/test/regress/topojson.sql @@ -4,6 +4,13 @@ set client_min_messages to WARNING; \i load_features.sql \i hierarchy.sql +-- This edge perturbates the topology so that walking around the boundaries +-- of P1 and P2 may require walking on some of them +SELECT 'E' || TopoGeo_addLinestring('city_data', 'LINESTRING(9 14, 15 10)'); +SELECT 'E' || TopoGeo_addLinestring('city_data', 'LINESTRING(21 14, 15 18)'); +SELECT 'E' || TopoGeo_addLinestring('city_data', 'LINESTRING(21 14, 28 10)'); +SELECT 'E' || TopoGeo_addLinestring('city_data', 'LINESTRING(35 14, 28 18)'); + --- Lineal non-hierarchical SELECT 'L1-vanilla', feature_name, topology.AsTopoJSON(feature, NULL) FROM features.city_streets diff --git a/topology/test/regress/topojson_expected b/topology/test/regress/topojson_expected index 1037875fe..86695250b 100644 --- a/topology/test/regress/topojson_expected +++ b/topology/test/regress/topojson_expected @@ -14,6 +14,10 @@ features.big_parcels.the_geom SRID:0 TYPE:MULTIPOLYGON DIMS:2 5 6 features.big_signs.the_geom SRID:0 TYPE:MULTIPOINT DIMS:2 +E27 +E28 +E29 +E30 L1-vanilla|R1|{ "type": "LineString", "arcs": [9,-11]} L1-vanilla|R2|{ "type": "LineString", "arcs": [4,-6]} L1-vanilla|R3|{ "type": "LineString", "arcs": [25]} -- 2.50.1