[gdal-dev] Layers and features

Even Rouault even.rouault at mines-paris.org
Wed Feb 26 14:25:34 PST 2014


> I assume this is not true of the return from OGR_F_GetGeometryRef, which
> needs to be cloned or it can become invalid.

Yes, the geometry of a feature belongs to the feature. If you destroy the 
feature, the geometry becomes invalid. So you need to clone it to get a 
standalone version.

-- 
Geospatial professional services
http://even.rouault.free.fr/services.html


More information about the gdal-dev mailing list