Commit 9bc9f5a8 authored by Sandro Santilli's avatar Sandro Santilli

Add test for ST_Length2DSpheroid

checks that 2D is really enforced

git-svn-id: http://svn.osgeo.org/postgis/[email protected] b70326c6-7e19-0410-871a-916f4a2858ee
parent e447ee1d
......@@ -262,3 +262,6 @@ select 'emptyCollectionArea', st_area('GEOMETRYCOLLECTION EMPTY');
--
select 'spheroidLength1_deprecated', round(st_length_spheroid('MULTILINESTRING((-118.584 38.374,-118.583 38.5),(-71.05957 42.3589 , -71.061 43))'::geometry,'SPHEROID["GRS_1980",6378137,298.257222101]'::spheroid)::numeric,5);
select 'spheroidLength1', round(ST_LengthSpheroid('MULTILINESTRING((-118.584 38.374,-118.583 38.5),(-71.05957 42.3589 , -71.061 43))'::geometry,'SPHEROID["GRS_1980",6378137,298.257222101]'::spheroid)::numeric,5);
select 'length2d_spheroid', ST_Length2DSpheroid('LINESTRING(0 0 0, 0 0 100)'::geometry, 'SPHEROID["GRS_1980",6378137,298.257222101]');
select 'length_spheroid', ST_LengthSpheroid('LINESTRING(0 0 0, 0 0 100)'::geometry, 'SPHEROID["GRS_1980",6378137,298.257222101]');
......@@ -44,3 +44,5 @@ emptyMultiPointArea|0
emptyCollectionArea|0
spheroidLength1_deprecated|85204.52077
spheroidLength1|85204.52077
length2d_spheroid|0
length_spheroid|100
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