简体   繁体   中英

retrieve bounding box of a geodjango multipolygon object

How can I get the bounding box of a MultiPolygon object in geodjango? Can't find anything in the API http://geodjango.org/docs/geos.html ...

Use the extent property.

It returns a 4-tuple comprising the lower left and upper right coordinates, respectively.

You can also use the envelope property if you want a Polygon object representation of the bounding box.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM