logo       

Re: C API, GEOSGeom_getCoordSeq, quick question...: msg#00074

gis.geos.devel

Subject: Re: C API, GEOSGeom_getCoordSeq, quick question...

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@xxxxxxxxxxxxxxxxxxxx
http://geos.refractions.net/mailman/listinfo/geos-devel

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

_______________________________________________
geos-devel mailing list
geos-devel@xxxxxxxxxxxxxxxxxxxx
http://geos.refractions.net/mailman/listinfo/geos-devel
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise