postgis/regress/ctors.sql
Sandro Santilli f74cdad7df Add support for linestrings in ST_MakeLine (#1500)
Affects both the aggregate and the 2-parameters function.
Regression testing included.
Documentation was updated, but lacks examples.

git-svn-id: http://svn.osgeo.org/postgis/trunk@8931 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-26 13:00:08 +00:00

28 lines
949 B
SQL

-- Repeat all tests with the new function names.
-- postgis-users/2006-July/012764.html
SELECT ST_SRID(ST_Collect('SRID=32749;POINT(0 0)', 'SRID=32749;POINT(1 1)'));
SELECT ST_Collect('SRID=32749;POINT(0 0)', 'SRID=32740;POINT(1 1)');
select ST_asewkt(ST_makeline('SRID=3;POINT(0 0)', 'SRID=3;POINT(1 1)'));
select ST_makeline('POINT(0 0)', 'SRID=3;POINT(1 1)');
select 'ST_MakeLine1', ST_AsText(ST_MakeLine(
'POINT(0 0)'::geometry,
'LINESTRING(1 1, 10 0)'::geometry
));
select 'ST_MakeLine_agg1', ST_AsText(ST_MakeLine(g)) from (
values ('POINT(0 0)'),
('LINESTRING(1 1, 10 0)'),
('LINESTRING(10 0, 20 20)'),
('POINT(40 4)')
) as foo(g);
-- postgis-users/2006-July/012788.html
select ST_makebox2d('SRID=3;POINT(0 0)', 'SRID=3;POINT(1 1)');
select ST_makebox2d('POINT(0 0)', 'SRID=3;POINT(1 1)');
select ST_3DMakeBox('SRID=3;POINT(0 0)', 'SRID=3;POINT(1 1)');
select ST_3DMakeBox('POINT(0 0)', 'SRID=3;POINT(1 1)');