[geos-devel] destroying a Polygonizer

Carlos A. Rueda carueda at ucdavis.edu
Wed Oct 27 19:30:28 EDT 2004


Sounds good.  I will try it and let you know how it goes.

Thanks!

carlos

strk at refractions.net wrote:
> Carlos,
> I've found and fixed some bugs in the Polygonizer code.
> 
> I dunno if this is nice to have but I've implemented the polygonizer
> so that the getInvalidRingLines caller gets ownership of them, and
> in case noone asks for them they are destroied at object destruction
> time. This has the side-effect of allowing the call to be performed
> only once (subsequent calls will get NULL).
> 
> Anyway, please try your code now and any suggestion on the 
> reported semantic is *very* welcome.
> 
> --strk;
> 
> On Mon, Oct 18, 2004 at 11:01:34PM -0700, Carlos A. Rueda wrote:
> 
>>Hello,
>>
>>What is the proper way to destroy a geos::Polygonizer object completely?
>>I'm getting the polygons given by polygonizer.getPolygons(), using them  
>>and then destroying them manually. Externally, I could also destroy 
>>getDangles(), getCutEdges(), getInvalidRingLines(), but by looking at 
>>Polygonizer::~Polygonizer(), it seems I would also need to manually 
>>destroy other protected members (holeList, shellList), which can be done 
>>via a subclass.  Am I missing something?
>>
>>thanks
>>
>>-c
>>
>>_______________________________________________
>>geos-devel mailing list
>>geos-devel at geos.refractions.net
>>http://geos.refractions.net/mailman/listinfo/geos-devel
> 
> _______________________________________________
> geos-devel mailing list
> geos-devel at geos.refractions.net
> http://geos.refractions.net/mailman/listinfo/geos-devel
> 




More information about the geos-devel mailing list