[gdal-dev] Destroying OGRGeometry objects
Frank Warmerdam
warmerdam at pobox.com
Wed Jan 14 10:56:22 EST 2009
Kor de Jong wrote:
> Hi all,
>
> In my code I am stealing the OGRFeature's OGRGeometry objects
> (OGRFeature::StealGeometry). Am I correct that there currently is
> not a safe way for me to destroy these geometry objects (within the
> context of the GDAL/OGR heap)? I am looking for an equivalent of
> OGRDataSource::DestroyDataSource and OGRFeature::DestroyFeature.
> Or maybe I just missed it?
Kor,
This can be done with OGRGeometryFactor::destroyGeometry().
> BTW, although OGRDataSource::DestroyDataSource is mentioned in the
> "OGR API Tutorial", it is not doc-ed on the "OGRDataSource Class
> Reference" page.
I have added it.
Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush | Geospatial Programmer for Rent
More information about the gdal-dev
mailing list