MySQL Forums
Forum List  »  GIS

Re: Do spatial functions still use MBR?
Posted by: Carlos Quiros
Date: December 06, 2011 02:11PM

Hi,

Non bounding rectangle functions have been integrated in the latest trunk. You can get it with Bazaar:

bzr branch lp:mysql-server

After build and install you will have a version >= 5.6.5-m8

Browsing at the code in sql/item_geofunc.cc, you can access this functions:

st_contains
st_within
st_equals
st_disjoint
st_intersects
st_touches
st_crosses
st_overlaps

Using GIS test data the function st_contains truly get the result because it does not use bounding rectangle.

An example is a query is:

SELECT CNTNAME3 FROM test where st_contains(ogc_geom,GeomFromText('POINT(37.5964 -3.5176)'));

Hope it helps.

Carlos.



Edited 1 time(s). Last edit at 12/06/2011 02:33PM by Carlos Quiros.

Options: ReplyQuote


Subject
Views
Written By
Posted
5159
October 28, 2011 10:53PM
Re: Do spatial functions still use MBR?
4567
December 06, 2011 02:11PM
2759
December 06, 2011 07:51PM


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.