if ( nmvals < 2 )
{
+ /* there's a single time, must be that one... */
+ double t0 = mvals[0];
+ POINT4D p0, p1;
+ LWDEBUGF(1, "Inputs only exist both at a single time (%g)", t0);
+ if ( -1 == ptarray_locate_along_linear(l1->points, t0, &p0, 0) )
{
- /* there's a single time, must be that one... */
- double t0 = mvals[0];
- POINT4D p0, p1;
- LWDEBUGF(1, "Inputs only exist both at a single time (%g)", t0);
- if ( -1 == ptarray_locate_along_linear(l1->points, t0, &p0, 0) )
- {
- lwerror("Could not find point with M=%g on first geom", t0);
- return -1;
- }
- if ( -1 == ptarray_locate_along_linear(l2->points, t0, &p1, 0) )
- {
- lwerror("Could not find point with M=%g on second geom", t0);
- return -1;
- }
- if ( distance3d_pt_pt((POINT3D*)&p0, (POINT3D*)&p1) <= maxdist )
- within = LW_TRUE;
- lwfree(mvals);
- return within;
+ lwnotice("Could not find point with M=%g on first geom", t0);
+ return LW_FALSE;
}
+ if ( -1 == ptarray_locate_along_linear(l2->points, t0, &p1, 0) )
+ {
+ lwnotice("Could not find point with M=%g on second geom", t0);
+ return LW_FALSE;
+ }
+ if ( distance3d_pt_pt((POINT3D*)&p0, (POINT3D*)&p1) <= maxdist )
+ within = LW_TRUE;
+ lwfree(mvals);
+ return within;
}
/*