From: Sandro Santilli Date: Thu, 28 Feb 2013 17:56:27 +0000 (+0000) Subject: Add regression test for #2216 X-Git-Tag: 2.1.0beta2~188 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7efc72e2e9561c9aabaa4cfa00913b92b7ff6a5e;p=postgis Add regression test for #2216 git-svn-id: http://svn.osgeo.org/postgis/trunk@11121 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/regress/in_geojson.sql b/regress/in_geojson.sql index 7310397b3..36135b0d9 100644 --- a/regress/in_geojson.sql +++ b/regress/in_geojson.sql @@ -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]]]]}')); diff --git a/regress/in_geojson_expected b/regress/in_geojson_expected index a3f59d4b7..701bb5f58 100644 --- a/regress/in_geojson_expected +++ b/regress/in_geojson_expected @@ -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