[gdal-dev] Call for discussion for "RFC 43 GDALMajorObject::GetMetadataDomainList()"

Even Rouault even.rouault at mines-paris.org
Wed Oct 23 05:23:56 PDT 2013


Le dimanche 20 octobre 2013 18:21:23, Frank Warmerdam a écrit :
> Even,
> 
> I'm happy with this RFC.  It's a bit sad that the list of domains is
> duplicated and has to be freed again by the caller, but it certainly
> avoids any doubts about the lifetime of the returned list.

Hi Frank,

Indeed, for the default implementation it would have been doable to return 
oMDMD.GetDomainList() directly, but for specialized implementations this 
wasn't possible and would oblige them to have a member variable to hold the 
return value. So returning a list to free with CSLDestroy() seemed to be a 
simpler approach.

Even

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


More information about the gdal-dev mailing list