﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
10368	Add expand_to_include method to gdal Envelope	psmith	nobody	"Mapnik has an {{{Envelope}}} class like that in {{{django.contrib.gis.gdal.envelope}}} that [http://trac.mapnik.org/browser/trunk/src/envelope.cpp#L152 has an expand_to_include method] we should steal. This is handy for building up an envelope by iterating over a collection of geometries -- at the end you have the extent / envelope of the collection.

{{{
>>> e = Envelope(pt_list[0])
>>> for pt in pt_list[1:]:
...     e.expand_to_include(pt)
}}}

or

{{{
>>> e = Envelope(geom_list[0].extent)
>>> for g in geom_list[1:]:
...     e.expand_to_include(g.extent)
}}}"		closed	GIS	1.0		fixed	envelope extent expand_to_include		Unreviewed	1	0	0	0	0	0
