1

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.

1 Answer 1

2

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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