From 3a13c63e04a9a6e4a43af3b09a05743a6591056b Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Tue, 9 Jun 2015 18:19:39 +0000 Subject: [PATCH] Be less noisy on meeting trajectories, add temporal test git-svn-id: http://svn.osgeo.org/postgis/trunk@13629 b70326c6-7e19-0410-871a-916f4a2858ee --- liblwgeom/lwlinearreferencing.c | 2 +- regress/temporal.sql | 4 ++++ regress/temporal_expected | 1 + 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/liblwgeom/lwlinearreferencing.c b/liblwgeom/lwlinearreferencing.c index 09a128476..a1a29e508 100644 --- a/liblwgeom/lwlinearreferencing.c +++ b/liblwgeom/lwlinearreferencing.c @@ -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) ) diff --git a/regress/temporal.sql b/regress/temporal.sql index 78562e06c..582ccf53c 100644 --- a/regress/temporal.sql +++ b/regress/temporal.sql @@ -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, diff --git a/regress/temporal_expected b/regress/temporal_expected index 10d786ed1..14f5ca8aa 100644 --- a/regress/temporal_expected +++ b/regress/temporal_expected @@ -14,4 +14,5 @@ validTrajectory3|t cpa1|10 cpa2|5 cpa3|5.5 +cpa4|10 cpa#3136|80000002|80000002 -- 2.50.1