[Community] Create GeometryCollection from list of geometries
Sean Gillies
sean.gillies at gmail.com
Wed Apr 28 18:19:26 EEST 2010
On Wed, Apr 28, 2010 at 4:56 PM, Aron Bierbaum <aronbierbaum at gmail.com> wrote:
> We have recently come across a need to construct a GeometryCollection
> from a list of Shapely geometries. I have attached a patch that we
> have been using and wanted to submit it back to the community for
> review. If people think that it is a good addition to Shapely we can
> commit it back to Shapely 1.2.
>
> Thanks,
> Aron
Hi Aron,
It's been my understanding that there isn't a lot you can do with GEOS
on heterogeneous geometry collections, and that's why I never got
around to fully implementing the class. I'm not opposed to adding the
patch, but I'd rather the constructor raise an exception than pass
over invalid input objects. If you can do that, I've no problem
putting this in 1.2.
Cheers,
--
Sean
More information about the Community
mailing list