MySQL Forums
Forum List  »  GIS

Spatial query...
Posted by: geopetrus
Date: November 28, 2006 11:46AM

I have a table called images that has a column called location of type point. Can someone please tell me why the following query returns zero results:

select x(a.location), y(a.location) from images a where MBRContains(GeomFromText('Polygon((1.0 2.0,56.0 2.0, 56.0 66.0,1.0 66.0,1.0 2.0))'),GeomFromText('Point(x(a.location) y(a.location)'))

whereas the following query returns the expected result set?

select x(a.location), y(a.location) from images a where MBRContains(GeomFromText('Polygon((1.0 2.0,56.0 2.0, 56.0 66.0,1.0 66.0,1.0 2.0))'),GeomFromText('Point(44.44 33.33)'))


Thank you.

Petrus

Options: ReplyQuote


Subject
Views
Written By
Posted
Spatial query...
8712
November 28, 2006 11:46AM
3575
April 04, 2007 04:41AM
3689
November 23, 2008 11:23PM


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.