检索geodjango多面体对象的边界框

Jac*_* Ha 5 python gis django geodjango

如何在geodjango中获取MultiPolygon对象的边界框?在API http://geodjango.org/docs/geos.html中找不到任何内容......

小智 10

使用该extent属性.

它返回一个包含左下和右上坐标的4元组.

envelope如果需要Polygon边界框的对象表示,也可以使用该属性.