]> granicus.if.org Git - postgis/commitdiff
Move geojson test into geojson.sql file
authorPaul Ramsey <pramsey@cleverelephant.ca>
Sat, 7 Jan 2012 00:47:36 +0000 (00:47 +0000)
committerPaul Ramsey <pramsey@cleverelephant.ca>
Sat, 7 Jan 2012 00:47:36 +0000 (00:47 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@8692 b70326c6-7e19-0410-871a-916f4a2858ee

regress/in_geojson.sql
regress/in_geojson_expected
regress/tickets.sql
regress/tickets_expected

index f38efda7b39fccc03ce7133165f056a563e20665..e77ad32af4b4dd31764703fda7111cfc8d0bb6e4 100644 (file)
@@ -6,3 +6,7 @@ select 'geomfromgeojson_04',st_astext(st_geomfromgeojson(st_asgeojson('LINESTRIN
 select 'geomfromgeojson_05',st_astext(st_geomfromgeojson(st_asgeojson('POLYGON((0 0,1 1,1 0,0 0))')));
 select 'geomfromgeojson_06',st_astext(st_geomfromgeojson(st_asgeojson('MULTIPOLYGON(((0 0,1 1,1 0,0 0)))')));
 
+-- #1434
+select '#1434: Next two errors';
+select '#1434.1',ST_GeomFromGeoJSON('{ "type": "Point", "crashme": [100.0, 0.0] }');
+select '#1434.2',ST_GeomFromGeoJSON('crashme');;
index d310e655d20091b8bf4ac26a2fc89f931d43ae88..8e218c78a009617bd1bd30d1dd35a69b7b6903c0 100644 (file)
@@ -4,3 +4,6 @@ geomfromgeojson_03|POINT(1 1)
 geomfromgeojson_04|LINESTRING(0 0,1 1)
 geomfromgeojson_05|POLYGON((0 0,1 1,1 0,0 0))
 geomfromgeojson_06|MULTIPOLYGON(((0 0,1 1,1 0,0 0)))
+#1434: Next two errors
+ERROR:  Unable to find 'coordinates' in GeoJSON string
+ERROR:  unexpected character (at offset 0)
index 8f5f19fcade0fdbea9fa6153ddfdeac0b7666cd1..69d29b065c60f354734495a933e3490bd5fa256f 100644 (file)
@@ -480,11 +480,6 @@ WITH pts AS ( SELECT 'POINT(0 45)'::geography AS s, 'POINT(45 45)'::geography AS
 SELECT '#1305.2',abs(ST_Distance(e, ST_Project(s, ST_Distance(s, e), ST_Azimuth(s, e)))) < 0.001 FROM pts;
 SELECT '#1305.3',ST_Azimuth('POINT(0 45)'::geography, 'POINT(0 45)'::geography) IS NULL;
 
--- #1434
-select '#1434: Next two errors';
-select '#1434.1',ST_GeomFromGeoJSON('{ "type": "Point", "crashme": [100.0, 0.0] }');
-select '#1434.2',ST_GeomFromGeoJSON('crashme');;
-
 
 -- Clean up
 DELETE FROM spatial_ref_sys;
index 7828c75df9b08155f6fce1706b102f7d48e6e0bf..de8ef7fd06ad755ec1b1fb131e165aaa51ddbfd5 100644 (file)
@@ -149,6 +149,3 @@ ERROR:  Geometry type (Polygon) does not match column type (MultiPolygon)
 #1305.1|POINT(10 10)
 #1305.2|t
 #1305.3|t
-#1434: Next two errors
-ERROR:  Unable to find 'coordinates' in GeoJSON string
-ERROR:  unexpected character (at offset 0)