[gdal-dev] [gdal 3.12beta1] OGRFeature::GetDefnRef now returns a const pointer

Even Rouault even.rouault at spatialys.com
Tue Oct 28 12:43:31 PDT 2025


Changing my mind again with maintaining the const changes of beta1, and 
instead extending the guidance in MIGRATION_GUIDE.TXT:

==> https://github.com/OSGeo/gdal/pull/13295

Le 23/10/2025 à 16:46, Even Rouault via gdal-dev a écrit :
> ==> https://github.com/OSGeo/gdal/pull/13277 : reintroduce non-const 
> OGRFeature::GetDefnRef() and OGRLayer::GetSpatialRef() methods
>
> Le 21/10/2025 à 18:37, Momtchil Momtchev via gdal-dev a écrit :
>>
>> Hello,
>>
>> In GDAL 3.12, OGRFeature::GetDefnRef now returns a const pointer. 
>> This means that calling Reference() or Dereference() is no longer 
>> possible. Does this mean that this is now automatic?
>>
>>
>> -- 
>> Momtchil Momtchev <momtchil at momtchev.com>
>>
>> _______________________________________________
>> gdal-dev mailing list
>> gdal-dev at lists.osgeo.org
>> https://lists.osgeo.org/mailman/listinfo/gdal-dev
>
-- 
http://www.spatialys.com
My software is free, but my time generally not.



More information about the gdal-dev mailing list