Jaakko Salli wrote:
>
> Hi all,
>
> It seems that calling Polygon.exterior generates objects that are not
> collectable even by gc.collect(). Attached script reproduces the issue.
>
> Thanks,
> Jaakko
>
Thanks for the report and script, Jaakko. There's a problem with
circular references here. I have a fix involving weak references, and
just need a day or two to test the cases of interior rings and sub-geoms
of the multipart types. Work around in the meantime is to break the
circular references in your code like:
...
poly = Polygon(points)
poly.exterior
...
poly._exterior = None
# end block
Sean
_______________________________________________
Community mailing list
[email protected]
http://lists.gispython.org/mailman/listinfo/community