<div dir="ltr">Hi,<div><br></div><div>Currently, how is a GeometryFactory deleted and under what circumstances is the finishGEOS function called? Given a<font face="arial, sans-serif"><span style="line-height:15px;white-space:pre-wrap"> GeometryFactory needs to stay alive as long as any geometry that has been constructed with that factory. How can we be sure that no geometry is still active which was created using this </span></font>GeometryFactory?</div>

<div><br></div><div class="gmail_extra">Regards,</div><div class="gmail_extra">Varun Saraf<br><br><div class="gmail_quote">On Fri, Mar 7, 2014 at 6:52 PM, Sandro Santilli <span dir="ltr"><<a href="mailto:strk@keybit.net" target="_blank">strk@keybit.net</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div class="">On Fri, Mar 07, 2014 at 06:23:02PM +0530, Varun Saraf wrote:<br>


> Hi,<br>
><br>
</div><div class="">> You had earlier pointed out that initGEOS signature cannot be changed so<br>
> the PrecisionModel parameters cannot be the parameters of a context. So<br>
> according Sean Gillies requirements, a default geometry factory will be<br>
> created first and later the precision model can be changed. Something<br>
> similar to this:<br>
> handle->geomFactory = GeometryFactory ( const PrecisionModel * pm)<br>
><br>
> Now coming to what happens to previously set PrecisionModel. If I am not<br>
> wrong, a copy of the PrecisionModel is made, so deleting the previously set<br>
> PrecisionModel should not make a problem.<br>
<br>
</div>That's correct, GeometryFactory copies the PrecisionModel to owned space.<br>
The problem is more with the GeometryFactory itself, which is a pointer,<br>
so before overriding geomFactory, the previously-set GeometryFactory will<br>
need to be dealth with. How ?<br>
<br>
--strk;<br>
<div class=""><div class="h5">_______________________________________________<br>
geos-devel mailing list<br>
<a href="mailto:geos-devel@lists.osgeo.org">geos-devel@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/geos-devel" target="_blank">http://lists.osgeo.org/mailman/listinfo/geos-devel</a><br>
</div></div></blockquote></div><br></div></div>