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
This commit is contained in:
Nicklas Avén 2015-08-20 20:54:06 +00:00
parent ebb5d79b51
commit 261986ef53
2 changed files with 6 additions and 1 deletions

View file

@ -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

View file

@ -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