Commit e58e336b authored by Sandro Santilli's avatar Sandro Santilli

Add postgis_geos_noop function

Includes regress test.
Closes #2902

git-svn-id: http://svn.osgeo.org/postgis/trunk@16791 b70326c6-7e19-0410-871a-916f4a2858ee
parent 720bdb57
Pipeline #30209472 passed with stage
in 23 minutes and 35 seconds
......@@ -3,6 +3,8 @@ PostGIS 3.0.0
* Breaking Changes *
- #3888, Raster support now available as a separate extension
(Sandro Santilli)
* New Features *
- #2902, postgis_geos_noop (Sandro Santilli)
* Enhancements and fixes *
- #4153, ST_Segmentize now splits segments proportionally (Darafei
Praliaskouski).
......
......@@ -1538,6 +1538,13 @@ CREATE OR REPLACE FUNCTION postgis_noop(geometry)
LANGUAGE 'c' IMMUTABLE STRICT _PARALLEL
COST 10;
-- Availability: 3.0.0
CREATE OR REPLACE FUNCTION postgis_geos_noop(geometry)
RETURNS geometry
AS 'MODULE_PATHNAME', 'GEOSnoop'
LANGUAGE 'c' IMMUTABLE STRICT _PARALLEL
COST 10;
-- Availability: 2.3.0
CREATE OR REPLACE FUNCTION ST_Normalize(geom geometry)
RETURNS geometry
......
......@@ -110,6 +110,15 @@ SELECT '#3069', postgis_getbbox('SRID=0;MULTILINESTRING((0 0, 1 1))'::geometry)
SELECT '#3069', postgis_getbbox('SRID=0;MULTIPOINT(1 1)'::geometry);
SELECT '#3069', postgis_getbbox('SRID=0;MULTILINESTRING((0 0,1 1))'::geometry);
SELECT '#2902', replace(ST_Summary(PostGIS_GEOS_Noop(
'SRID=4326;
GEOMETRYCOLLECTION(
POLYGON((0 0 1, 0 1 2, 1 1 3,1 0 2,0 0 1)),
POINT(1 2 3),
MULTILINESTRING((1 1 3,0 0 9))
)'::geometry)),E'\n',' ');
-- ST_BoundingDiagonal
SELECT 'BoundingDiagonal1', ST_AsEwkt(ST_BoundingDiagonal(postgis_addbbox(
......
......@@ -15,6 +15,7 @@ BOX3D(0 0.1 -55,11 12 12)
#3069|BOX(0 0,1 1)
#3069|BOX(1 1,1 1)
#3069|BOX(0 0,1 1)
#2902|GeometryCollection[ZBS] with 3 elements Polygon[ZS] with 1 rings ring 0 has 5 points Point[ZS] MultiLineString[ZS] with 1 elements LineString[ZS] with 2 points
BoundingDiagonal1|SRID=4326;LINESTRING(999999986991104 999999986991104,1e+15 1e+15)
BoundingDiagonal2|SRID=4326;LINESTRING(1e+15 1e+15,1e+15 1e+15)
BoundingDiagonal3|SRID=4326;LINESTRING(999999986991104 999999986991104,1e+15 1e+15)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment