我有一个包含一组形状的mysql表。该表的定义如下:
+------------+--------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+------------+--------------+------+-----+---------+-------+
| shapeid | int(11) | NO | PRI | NULL | |
| AREA | double | YES | | NULL | |
| PERIMETER | double | YES | | NULL | |
| KENPROV_ | double | YES | | NULL | |
| KENPROV_ID | double | YES | | NULL | |
| PROV_NAME | varchar(255) | YES | | NULL | |
| ogc_geom | geometry | YES | | NULL | |
+------------+--------------+------+-----+---------+-------+
该表包含24个形状(记录)。每个形状在“ogc_geom”中都有定义形状的多边形。
shapeid = 0的“ogc_geom”示例为:
POLYGON((33.99319839477539 -3.185349941253662,38.084800720214844 -3.185349941253662,38.084800720214844 5.022779941558838,33.99319839477539 5.022779941558838,33.99319839477539 -3.185349941253662))
如何计算包围所有形状的边界框?