[postgis-tickets] r16807 - Move geofromjson test from tickets to in_geojson so JSON-C guard can be applied.
Regina Obe
lr at pcorp.us
Sun Sep 16 12:13:02 PDT 2018
Author: robe
Date: 2018-09-16 00:13:02 -0700 (Sun, 16 Sep 2018)
New Revision: 16807
Modified:
trunk/regress/in_geojson.sql
trunk/regress/in_geojson_expected
trunk/regress/tickets.sql
trunk/regress/tickets_expected
Log:
Move geofromjson test from tickets to in_geojson so JSON-C guard can be applied.
Closes #4178 for PostGIS 3.0.0
Modified: trunk/regress/in_geojson.sql
===================================================================
--- trunk/regress/in_geojson.sql 2018-09-16 05:12:51 UTC (rev 16806)
+++ trunk/regress/in_geojson.sql 2018-09-16 07:13:02 UTC (rev 16807)
@@ -49,3 +49,6 @@
-- #3583
SELECT '#3583', ST_AsText(ST_GeomFromGeoJSON('{"type":"MultiPolygon", "coordinates":[[[139.10030364990232,35.16777444430609],5842.4224490305424]]}'));
+
+-- #4164
+SELECT ST_AsText(ST_GeomFromGeoJSON('{"type": "Polygon", "coordinates": [[0,0],[0,5],[5, 5],[5,0],[0,0]]}'));
Modified: trunk/regress/in_geojson_expected
===================================================================
--- trunk/regress/in_geojson_expected 2018-09-16 05:12:51 UTC (rev 16806)
+++ trunk/regress/in_geojson_expected 2018-09-16 07:13:02 UTC (rev 16807)
@@ -30,3 +30,4 @@
geomfromgeojson_srs_3|GEOMETRYCOLLECTION(POINT(100 0),LINESTRING(101 0,102 1))
geomfromgeojson_srs_4|GEOMETRYCOLLECTION(POINT(100 0),LINESTRING(101 0,102 1))
#3583|MULTIPOLYGON Z (EMPTY)
+ERROR: The 'coordinates' in GeoJSON polygon are not sufficiently nested
Modified: trunk/regress/tickets.sql
===================================================================
--- trunk/regress/tickets.sql 2018-09-16 05:12:51 UTC (rev 16806)
+++ trunk/regress/tickets.sql 2018-09-16 07:13:02 UTC (rev 16807)
@@ -1098,9 +1098,6 @@
select ST_GeogFromText('SRID=4326;POINT(1.0 2.0)') as a, ST_GeogFromText('SRID=4326;POINT(1.0 1.0)') as b
) as points;
--- #4164
-SELECT ST_AsText(ST_GeomFromGeoJSON('{"type": "Polygon", "coordinates": [[0,0],[0,5],[5, 5],[5,0],[0,0]]}'));
-
-- #4144
DROP TABLE IF EXISTS bug_4144_table;
CREATE TABLE bug_4144_table (
@@ -1107,7 +1104,7 @@
geom geometry NOT NULL DEFAULT NULL
);
-INSERT INTO bug_4144_table (geom)
+INSERT INTO bug_4144_table (geom)
VALUES ('GEOMETRYCOLLECTION(POINT(-3.385894e+38 0 0),POINT(0 0 0))');
ANALYZE bug_4144_table;
Modified: trunk/regress/tickets_expected
===================================================================
--- trunk/regress/tickets_expected 2018-09-16 05:12:51 UTC (rev 16806)
+++ trunk/regress/tickets_expected 2018-09-16 07:13:02 UTC (rev 16807)
@@ -335,6 +335,5 @@
#4089|LINESTRING Z (1 1 1,3 3 1)
ERROR: lwgeom_pointonsurface: GEOS Error: TopologyException: Input geom 1 is invalid: Self-intersection
#4081|f|t
-ERROR: The 'coordinates' in GeoJSON polygon are not sufficiently nested
NOTICE: table "bug_4144_table" does not exist, skipping
#4176|t
More information about the postgis-tickets
mailing list