Reputation: 21
I'm trying to figure out how to determine in which polygon (each polygon is the boundary of a watershed, in my case) a set of GPS coordinates lies.
I am using PostGIS and am very new to it so any help would be greatly appreciated.
Upvotes: 1
Views: 367
Reputation: 43622
Something like this should get you started:
select gps.*, watershed.*
from gps
left join watershed on ST_Within(gps.geom, watershed.geom)
See more info on ST_Within. Also check out http://gis.stackexchange.com for related questions/answers.
Upvotes: 2