MySQL Forums
Forum List  »  GIS

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.

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Geospatial search in MySql – different options
4724
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.