<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span style="font-family: monospace; ">Hi everyone,</span><br style="font-family: monospace; "><br style="font-family: monospace; "><span style="font-family: monospace; ">Just wondering how to go about something:</span><br style="font-family: monospace; "><br style="font-family: monospace; "><span style="font-family: monospace; ">Currently, I have a table with thousands of polygons (rectangles). I can query the table to see which of them contains a given point (lat/lng). With the resulting rectangle, I further need to determine *where* in the rectangle the given point (lat/lng) lies.</span><br style="font-family: monospace; "><br style="font-family: monospace; "><span style="font-family: monospace; ">The reason is that each of the rectangles are actually subdivided into 12 smaller, equal rectangles, numbered/lettered A-L. How would you go about doing this? It doesn't seem like something I can compute in the initial query to retrieve the containing rectangle… Any ideas?</span><br style="font-family: monospace; "><br style="font-family: monospace; "><span style="font-family: monospace; ">…Rene</span></body></html>