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 have db with a very large amount of geometries (circles), most of them overlapping. I'm trying to come up with a way to find the nearest point (from your current location) that is not within any of these circles.

Is this possible with a direct query?

So far I thought of a fishnet approach of 1x1 km cells that check for overlap with any of these circles. This works, but is not very accurate.

Any thoughts would be appreciated!

share|improve this question

1 Answer 1

If you're using a postGIS database, you could use the st_closestpoint function. One argument would be your current location, the other one your inverted circle geometries.

share|improve this answer

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.