]> granicus.if.org Git - postgis/commitdiff
Be less noisy on meeting trajectories, add temporal test
authorSandro Santilli <strk@keybit.net>
Tue, 9 Jun 2015 18:19:39 +0000 (18:19 +0000)
committerSandro Santilli <strk@keybit.net>
Tue, 9 Jun 2015 18:19:39 +0000 (18:19 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@13629 b70326c6-7e19-0410-871a-916f4a2858ee

liblwgeom/lwlinearreferencing.c
regress/temporal.sql
regress/temporal_expected

index 09a12847677df20caa1d51e772a15a87009cfb9f..a1a29e508918064bacd5d984db7b534adfb481b2 100644 (file)
@@ -1119,7 +1119,7 @@ lwgeom_tcpa(const LWGEOM *g1, const LWGEOM *g2, double *mindist)
     /* there's a single time, must be that one... */
     double t0 = mvals[0];
     POINT4D p0, p1;
-    lwnotice("Inputs only exist both at a single time (%g)", t0);
+    LWDEBUGF(1, "Inputs only exist both at a single time (%g)", t0);
     if ( mindist )
     {
       if ( -1 == ptarray_locate_along_linear(l1->points, t0, &p0, 0) )
index 78562e06cc72004f55c6288be24738b808c0a312..582ccf53c8d5c8a9a94fb9fa53cdc740142f1803 100644 (file)
@@ -32,6 +32,10 @@ select 'cpa2', ST_ClosestPointOfApproach(
 select 'cpa3', ST_ClosestPointOfApproach(
   'LINESTRINGZM(0 0 0 0, 0 0 0 10)',
   'LINESTRINGZM(-30 0 5 4, 10 0 5 6)');
+-- Meeting
+select 'cpa4', ST_ClosestPointOfApproach(
+  'LINESTRINGZM(0 0 0 0, 0 0 0 10)',
+  'LINESTRINGZM(0 5 0 10, 10 0 5 11)');
 -- Ticket #3136
 WITH inp as ( SELECT
  'LINESTRING M (0 0 80000002,1 0 80000003)'::geometry g1,
index 10d786ed18efffba8a74f543a790fde468739b06..14f5ca8aa44a58fa5e50873707f35b7f9f34bbcf 100644 (file)
@@ -14,4 +14,5 @@ validTrajectory3|t
 cpa1|10
 cpa2|5
 cpa3|5.5
+cpa4|10
 cpa#3136|80000002|80000002