views:

295

answers:

1

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 ...

+2  A: 

Use the extent property: http://geodjango.org/docs/geos.html#extent. 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.

thanks! it worked... and i was looking with my nose :)
Jack Ha