Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?


share|improve this question
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

Your Answer


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.