|
◆ tgeompointsegm_distance_turnpt()
Return 1 the timestamp at which two temporal geometry point segments are at the minimum distance.
These are the turning points when computing the temporal distance. - Parameters
-
[in] | start1,end1 | Values defining the first segment |
[in] | start2,end2 | Values defining the second segment |
[in] | param | Additional parameter |
[in] | lower,upper | Timestamps defining the segments |
[out] | t1,t2 | |
- Note
- The PostGIS functions
lw_dist2d_seg_seg and lw_dist3d_seg_seg cannot be used since they do not take time into consideration and would return, e.g., that the minimum distance between the two following segments [Point(2 2)@t1, Point(1 1)@t2] and [Point(3 1)@t1, Point(1 1)@t2] is at Point(2 2)@t2 instead of Point(1.5 1.5)@(t1 + (t2 - t1)/2) .
- Precondition
- The segments are not both constants.
- Postcondition
- As there is a single turning point,
t2 is set to t
|