]> granicus.if.org Git - postgis/commitdiff
Add 2 regression tests for mixed dimmentionalty input to 3d distance calculations...
authorNicklas Avén <nicklas.aven@jordogskog.no>
Thu, 20 Aug 2015 20:54:06 +0000 (20:54 +0000)
committerNicklas Avén <nicklas.aven@jordogskog.no>
Thu, 20 Aug 2015 20:54:06 +0000 (20:54 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@13965 b70326c6-7e19-0410-871a-916f4a2858ee

regress/measures.sql
regress/measures_expected

index 4cb9efca2fd6629a8685670d183aeb735d125558..9dfbbffc7d31af988246f2fe2846d40f6c299bf6 100644 (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
index 671bcb8762d2c4fa3acbba7f5ce792f348ba136b..65bb8b23702f7e629a3aace1fab1dff49fabc643 100644 (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