I'm new to GIS concepts and I'm learning about quadkeys and usage.

I am inserting few points with its quadkey into DB, and want to retrieve all points within a given radius using quadkeys.

Assume I have a point (46,46) whose quad key on a zoom level 23 is, 12122022101301320022121 (using this link)

Now I want to search all the points in DB that are at a radius of 100km to a reference point, say (47,47)

My idea is, use the given distance (100km) to find a zoom level, form a quadkey for (47,47) with that level, and query the DB with this key to retrive all keys that has the given prefix.

Is this the right way of doing? Or is there a better way to deal with this using quadkeys.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.