Re: Geospatial search in MySql – different options
Posted by:
Ulf Küßner
Date: January 04, 2007 04:34PM
Well the most obvious way of avoiding the complete table scan would be to limit the distance calculations to coordinates near the one you are looking at.
alas -
where latitude > $latitude-10miles and latitude < $latitude+10miles
and so on...
Using Geometries, you can do something with a Polygon, and contains(), but that would require a good spatial index. Besides You'll have to construct a WKT polygon for your query of course.
Cheers.
Subject
Views
Written By
Posted
10841
December 22, 2006 02:25AM
4677
January 01, 2007 05:35PM
Re: Geospatial search in MySql – different options
4788
January 04, 2007 04:34PM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.