MySQL Forums
Forum List  »  GIS

Envelope (MBR) of geometries
Posted by: Jaroslav Sedmy
Date: January 26, 2009 03:39AM

Hi,

I have a table with GEOMETRY column. I need a query for getting MBR of union of all geometries. How can I do it?

I have the query for PostGis:

SELECT st_xmin(x.ext) AS xmin, st_ymin(x.ext) AS ymin, st_xmax(x.ext) AS xmax, st_ymax(x.ext) AS ymax
FROM (SELECT st_extent("DATA") as ext FROM "tbl_test" WHERE GeometryType("DATA") = "POINT") as x

How can I rewrite it to MySql?

Thanks,

Smoke

Options: ReplyQuote


Subject
Views
Written By
Posted
Envelope (MBR) of geometries
6224
January 26, 2009 03:39AM
3629
February 23, 2009 07:36AM


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.