[postgis-users] PostGIS to calculate time spent within polygon

Masanao Yajima yajiyajijp at yahoo.co.jp
Mon Oct 5 14:02:37 PDT 2009


Dear PostGIS users

I am new to PostGIS and I would like expert opinion on how to deal with my
situation.

I have 2D GPS data and time associated with each points and they represents
line of a trip.
I also have few geographic polygon data representing some area on a map.

what I want to get out is length of time that is spent within polygon area
for a trip.

What is the optimal way to design a database and what kind of query would
you use to get such a number.

One constraint is the time interval for GPS is not accurate so sampling rate
vary alot with in a trip.

I thought of using time as 4th dimension but I believe st_intersection is
not implemented on the 4th dimension..

I could do this by bruit force but I am looking for something fast.

I appreciate your help.

-- 
Masanao Yajima
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20091005/f3b07627/attachment.html>


More information about the postgis-users mailing list