Dear PostGIS users<br><br>I am new to PostGIS and I would like expert opinion on how to deal with my situation.<br><br>I have 2D GPS data and time associated with each points and they represents line of a trip.<br>I also have few geographic polygon data representing some area on a map.<br>
<br>what I want to get out is length of time that is spent within polygon area for a trip.<br><br>What is the optimal way to design a database and what kind of query would you use to get such a number.<br><br>One constraint is the time interval for GPS is not accurate so sampling rate vary alot with in a trip.<br>
<br>I thought of using time as 4th dimension but I believe st_intersection is not implemented on the 4th dimension..<br><br>I could do this by bruit force but I am looking for something fast.<br><br>I appreciate your help.<br clear="all">
<br>-- <br>Masanao Yajima<br>