[geos-devel] Modify a linestring or prevent coordinatesequence ownership transfer

Sandro Santilli strk at kbt.io
Thu May 24 05:58:44 PDT 2018


On Thu, May 24, 2018 at 09:36:57AM +0200, Tanguy Fardet wrote:
> Dear GEOS developers,
> 
> I would like to know if there is a way, within the GEOS library, to either
> 1) modify an existing LineString without copying the existing points inside
> or 2) create a LineString from a CoordinateSequence without having to clone
> the latter and without it being destroyed with the LineString (i.e. how to
> not transfer ownership).
> 
> From a quick look at the code, this does not seem possible, but I would like
> to make sure it is indeed the case.

I confirm this is the case, by (JTS-following) design.

--strk;


More information about the geos-devel mailing list