<div dir="ltr">On Thu, Sep 11, 2008 at 1:31 PM, Andreas Kalsch <span dir="ltr"><<a href="mailto:andreaskalsch@gmx.de">andreaskalsch@gmx.de</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
All, thanks for your quick responses!<br>
<br>
Quad tiles look like a smart way to create an index. So to lookup a single point or a quad tile, this is fine. But for my application I need another lookup - by bounding box with any ratio and size. Is there a way to look up a special bounding box with this index?</blockquote>
<div><br>Take a look at the MySQL 5 documentation here:<br><br><a href="http://dev.mysql.com/doc/refman/5.0/en/relations-on-geometry-mbr.html">http://dev.mysql.com/doc/refman/5.0/en/relations-on-geometry-mbr.html</a><br><br>
When I was working on a read-only mirror of the OSM API, I created a LINESTRING with the top left and bottom right as the end points. This created a bounding box in MySQL that I could then use in one of the MBR functions on that page.<br>
<br>Check out <a href="http://svn.yellowbkpk.com/geo/trunk/bbox.php">http://svn.yellowbkpk.com/geo/trunk/bbox.php</a> to see the SQL queries I was using. They aren't very good, but they'll show you how to use the MBR stuff in MySQL.<br>
</div></div></div>