[geos-devel] C API, GEOSGeom_getCoordSeq, quick question...

Charlie Savage cfis at savagexi.com
Mon Jun 26 00:39:24 EDT 2006


GEOSCoordSeq_create returns a pointer you need to clean up using 
GEOSCoordSeq_destroy.

However, if you use the returned coordinate sequence as a parameter to 
createPoint, createLineString, etc then the new geometry takes over 
ownership (so you have to clean up the geometry instead).

Charlie

Stephen Lime wrote:
> Hi all: Is the coord seq returned by that function a pointer to owned 
> coordinates or a new copy that
> needs to be cleaned up?
> 
> Steve
> 
> _______________________________________________
> geos-devel mailing list
> geos-devel at geos.refractions.net
> http://geos.refractions.net/mailman/listinfo/geos-devel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3237 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.osgeo.org/pipermail/geos-devel/attachments/20060625/2ceba7c3/smime.bin


More information about the geos-devel mailing list