MySQL Forums
Forum List  »  GIS

Re: Hot to envelope() n points stored in a table?
Posted by: John Powell
Date: December 16, 2008 03:34AM

The envelope function gives you the minimum bounding rectangle of a geometry, see http://dev.mysql.com/doc/refman/5.0/en/geometry-property-functions.html
So, the envelope of a point would be the point itself, which would seem a bit useless.

You could run a query that would get you the max and min of all the points, ie, select max(X(geom)), max(Y(geom)) from table and create the mbr from that.

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Hot to envelope() n points stored in a table?
3217
December 16, 2008 03:34AM


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.