MySQL Forums
Forum List  »  GIS

Re: Searching Point Column
Posted by: Matthew Ashworth
Date: December 15, 2005 12:19PM

Perhaps not the most efficient method is to create a linestring object between your test point and the points in the table (till we get a distance function)

select glength(geomfromtext(concat('linestring(0 0, ', x(node), ' ', y(node), ')')))
from table

Where 0 0 is your test point.

Bit ugly but works ;-)

Options: ReplyQuote


Subject
Views
Written By
Posted
3811
December 09, 2005 09:11AM
Re: Searching Point Column
2604
December 15, 2005 12:19PM
2478
December 16, 2005 07:44AM
2548
December 16, 2005 08:03AM


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.