[geos-devel] Exposing Precision model through C-API
Varun Saraf
varunsaraf14 at gmail.com
Fri Mar 7 06:27:49 PST 2014
Hi,
Currently, how is a GeometryFactory deleted and under what circumstances is
the finishGEOS function called? Given a 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 GeometryFactory?
Regards,
Varun Saraf
On Fri, Mar 7, 2014 at 6:52 PM, Sandro Santilli <strk at keybit.net> wrote:
> On Fri, Mar 07, 2014 at 06:23:02PM +0530, Varun Saraf wrote:
> > Hi,
> >
> > You had earlier pointed out that initGEOS signature cannot be changed so
> > the PrecisionModel parameters cannot be the parameters of a context. So
> > according Sean Gillies requirements, a default geometry factory will be
> > created first and later the precision model can be changed. Something
> > similar to this:
> > handle->geomFactory = GeometryFactory ( const PrecisionModel * pm)
> >
> > Now coming to what happens to previously set PrecisionModel. If I am not
> > wrong, a copy of the PrecisionModel is made, so deleting the previously
> set
> > PrecisionModel should not make a problem.
>
> That's correct, GeometryFactory copies the PrecisionModel to owned space.
> The problem is more with the GeometryFactory itself, which is a pointer,
> so before overriding geomFactory, the previously-set GeometryFactory will
> need to be dealth with. How ?
>
> --strk;
> _______________________________________________
> geos-devel mailing list
> geos-devel at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/geos-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geos-devel/attachments/20140307/931889ce/attachment.html>
More information about the geos-devel
mailing list