From: Nicklas Avén Date: Thu, 20 Aug 2015 20:54:06 +0000 (+0000) Subject: Add 2 regression tests for mixed dimmentionalty input to 3d distance calculations... X-Git-Tag: 2.2.0rc1~126 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=261986ef531bb3e02a7b8e9c1962e7b2e8d57891;p=postgis Add 2 regression tests for mixed dimmentionalty input to 3d distance calculations (giving z-value under FLT_MIN which is not used any more) #3244 git-svn-id: http://svn.osgeo.org/postgis/trunk@13965 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/regress/measures.sql b/regress/measures.sql index 4cb9efca2..9dfbbffc7 100644 --- a/regress/measures.sql +++ b/regress/measures.sql @@ -258,7 +258,8 @@ select st_3ddistance('linestring(0 0,1 1,2 0)'::geometry, 'linestring(0 2 3, 3 2 --distance with 3d as first point and 2d as second select st_3ddistance('linestring(0 0 1,1 1 2,2 0 3)'::geometry, 'linestring(0 2, 3 2)'::geometry); - +select ST_AsText(ST_3DClosestPoint('POINT(0 0 0)', 'POINT(0 0)')); +select ST_AsText(ST_3DShortestLine('LINESTRING(2 1, 3 0)', 'LINESTRING(0 0 2, 3 3 -4)')); -- Area of an empty polygon diff --git a/regress/measures_expected b/regress/measures_expected index 671bcb876..65bb8b237 100644 --- a/regress/measures_expected +++ b/regress/measures_expected @@ -47,6 +47,10 @@ NOTICE: One or both of the geometries is missing z-value. The unknown z-value w 1 NOTICE: One or both of the geometries is missing z-value. The unknown z-value will be regarded as "any value" 1 +NOTICE: One or both of the geometries is missing z-value. The unknown z-value will be regarded as "any value" +POINT Z (0 0 0) +NOTICE: One or both of the geometries is missing z-value. The unknown z-value will be regarded as "any value" +LINESTRING Z (2 1 -1,1.5 1.5 -1) emptyPolyArea|0 emptyLineArea|0 emptyPointArea|0