]> granicus.if.org Git - postgis/commitdiff
Add regression test for #2216
authorSandro Santilli <strk@keybit.net>
Thu, 28 Feb 2013 17:56:27 +0000 (17:56 +0000)
committerSandro Santilli <strk@keybit.net>
Thu, 28 Feb 2013 17:56:27 +0000 (17:56 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@11121 b70326c6-7e19-0410-871a-916f4a2858ee

regress/in_geojson.sql
regress/in_geojson_expected

index 7310397b390e1c0142e73577167519bee01f469b..36135b0d9d82d8090b25207134842e52803060b0 100644 (file)
@@ -13,3 +13,6 @@ select '#1434.2',ST_GeomFromGeoJSON('crashme');;
 
 -- #2130 --
 SELECT '#2130', ST_NPoints(ST_GeomFromGeoJSON('{"type":"MultiPolygon","coordinates":[[[[-117,32],[-117,32],[-117,32],[-117,32],[-117,32],[-117,32],[-117,32],[-117,32],[-117,32],[-117,32],[-117,32],[-117,32],[-117,32],[-117,33],[-117,33],[-117,33],[-117,33],[-117,33],[-117,33],[-117,33],[-117,33],[-117,33],[-117,33],[-117,33],[-117,33],[-117,32],[-117,32],[-117,32],[-117,32],[-116,32],[-116,32],[-116,32],[-116,32],[-116,32],[-116,32],[-116,32],[-116,32],[-116,32],[-116,32],[-117,32],[-117,32],[-117,32],[-117,32]],[[-117,33],[-117,33],[-117,33],[-117,33],[-117,33],[-117,32],[-117,33]]]]}'));
+
+-- #2216 --
+SELECT '#2216', ST_NPoints(ST_GeomFromGeoJSON('{"type":"MultiPolygon","coordinates":[[[[4,0],[0,-4],[-4,0],[0,4],[4,0]],[[2,0],[0,2],[-2,0],[0,-2],[2,0]]],[[[24,0],[20,-4],[16,0],[20,4],[24,0]],[[22,0],[20,2],[18,0],[20,-2],[22,0]]],[[[44,0],[40,-4],[36,0],[40,4],[44,0]],[[42,0],[40,2],[38,0],[40,-2],[42,0]]]]}'));
index a3f59d4b76db4504fbaefce29a421b0d1784100d..701bb5f58b31106915cb0381745e8a2c8c05fffd 100644 (file)
@@ -8,3 +8,4 @@ geomfromgeojson_06|MULTIPOLYGON(((0 0,1 1,1 0,0 0)))
 ERROR:  Unable to find 'coordinates' in GeoJSON string
 ERROR:  unexpected character (at offset 0)
 #2130|8
+#2216|30