Hello, Is there a way to combine several shapely geometry objects into a collection without applying some operation like cascaded_union? I'm working on a CAD/CAM program and I'm repeatedly running into the problem of having to handle lists of geometry objects and collections differently. For example, to find the bound I'm doing:
if type(something) == list: b = cascaded_union(something).bounds elif type(something) == GeometryCollection: b = something.bounds etc... And I'm having to do something like this for almost every operation. I this previous post: http://lists.gispython.org/pipermail/community/2012-November/003155.html it's mentioned that a constructor for GeometryCollection was omitted on purpose because there "isn't much point to the class", but it seems to be making application development somewhat complicated (at least for me). What would be the right approach to handling something like this? Thank you, JP
_______________________________________________ Community mailing list Community@lists.gispython.org http://lists.gispython.org/mailman/listinfo/community