[postgis-tickets] r17690 - Take out ST_GeomFromJSON - json, jsonb versions. These weren't introduced until 2.5

Regina Obe lr at pcorp.us
Sat Aug 10 08:56:02 PDT 2019


Author: robe
Date: 2019-08-10 20:56:02 -0700 (Sat, 10 Aug 2019)
New Revision: 17690

Modified:
   branches/2.4/regress/in_geojson.sql
   branches/2.4/regress/in_geojson_expected
Log:
Take out ST_GeomFromJSON - json, jsonb versions.  These weren't introduced until 2.5
Closes #4476

Modified: branches/2.4/regress/in_geojson.sql
===================================================================
--- branches/2.4/regress/in_geojson.sql	2019-08-11 03:03:19 UTC (rev 17689)
+++ branches/2.4/regress/in_geojson.sql	2019-08-11 03:56:02 UTC (rev 17690)
@@ -5,8 +5,6 @@
 select 'geomfromgeojson_04',st_astext(st_geomfromgeojson(st_asgeojson('LINESTRING(0 0,1 1)')));
 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)))')));
-select 'geomfromgeojson_07',st_astext(st_geomfromgeojson(st_asgeojson('MULTIPOLYGON(((0 0,1 1,1 0,0 0)))')::json));
-select 'geomfromgeojson_08',st_astext(st_geomfromgeojson(st_asgeojson('MULTIPOLYGON(((0 0,1 1,1 0,0 0)))')::jsonb));
 -- #1434
 select '#1434: Next two errors';
 select '#1434.1',ST_GeomFromGeoJSON('{ "type": "Point", "crashme": [100.0, 0.0] }');

Modified: branches/2.4/regress/in_geojson_expected
===================================================================
--- branches/2.4/regress/in_geojson_expected	2019-08-11 03:03:19 UTC (rev 17689)
+++ branches/2.4/regress/in_geojson_expected	2019-08-11 03:56:02 UTC (rev 17690)
@@ -4,8 +4,6 @@
 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)))
-geomfromgeojson_07|MULTIPOLYGON(((0 0,1 1,1 0,0 0)))
-geomfromgeojson_08|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)



More information about the postgis-tickets mailing list