Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I am wondering what is the simplest way to perform a look up of polygon Id based on the point location.

Input: a point with coordinates, a table of polygons

Output: the polygon Id where a point is located.

I am thinking to preload the polygon table into PostGIS (The size is about 220,000 entries). What is the best way to process all these data?

Thanks.

share|improve this question
add comment

1 Answer

up vote 2 down vote accepted

The ST_Contains operator in PostGIS does Point-in-Polygon analyses just fine. You may also be interested in this question about improving the performance of similar queries: Looking for fastest solution for Point in Polygon analysis of 200 million points

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.