<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
Hello,
<div><br>
</div>
<div>What is a good way to determine the temporal intersection of a tgeompoint and a</div>
<div>geometry with a time period?</div>
<div><br>
</div>
<div>(This is similar to the the issue that I mentioned in the note that</div>
<div>vicky_at_georepublic.de posted on Jun 13, but now using a linestring instead of</div>
<div>a polygon).</div>
<div><br>
</div>
<div>In air traffic control, there is often a need to establish a line-in-space for</div>
<div>a specific time period, and then identify the aircraft that crossed it during</div>
<div>that time period.  (What aircraft crossed the boundary between these two air</div>
<div>traffic control regions between 1300z and 1500z for every day last week?  How</div>
<div>does it compare to the number of aircraft that crossed that same boundary</div>
<div>between 1500z and 1700z?)</div>
<div><br>
</div>
<div>How can the tintersects(tgeompoint, geometry) be combined with the</div>
<div>atPeriod(tgeompoint, period) to find out if the crossing happened</div>
<div>"when the linestring was active"?</div>
<div><br>
</div>
<div>Is there a better way than using:</div>
<div> SELECT</div>
<div>    tintersects(flown_path, boundary) as crossing_point,<br>
</div>
<div>    upper(period(atValue(tintersects(flown_path, boundary), TRUE))) as crossing_time<br>
</div>
<div><br>
</div>
<div>to get all geospatial intersections (with the times), then following that with:</div>
<div><br>
</div>
<div>WHERE crossing_time >= to_timestamp(interval_start, 'YYYY-MM-DD HH24:MI')</div>
<div>  AND crossing_time <= to_timestamp(interval_end,   'YYYY-MM-DD HH24:MI')</div>
<div>  AND tintersects(flown_path, boundary) is not null</div>
<div><br>
</div>
<div>Thank you,</div>
<div><br>
</div>
<div>Wendell</div>
<br>
</div>
</body>
</html>