]> granicus.if.org Git - postgis/commitdiff
Add perturbating edges in TopoJSON test
authorSandro Santilli <strk@keybit.net>
Wed, 20 Mar 2013 16:10:40 +0000 (16:10 +0000)
committerSandro Santilli <strk@keybit.net>
Wed, 20 Mar 2013 16:10:40 +0000 (16:10 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@11189 b70326c6-7e19-0410-871a-916f4a2858ee

topology/test/regress/topojson.sql
topology/test/regress/topojson_expected

index e723aa779c974232b918c03ea7a46045eafde8a1..f258d790c485ec3351b6533b34601573a536d7a3 100644 (file)
@@ -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
index 1037875fe9ade42a354f42a3577250ed78337f0c..86695250bfde60b4f89296ed157cbc9bb7f77043 100644 (file)
@@ -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]}