Re: [gdal-dev] GetFID incorrect after sorting layer

2022-06-22 Thread Jon Morris
Done: https://github.com/OSGeo/gdal/issues/5967 Many thanks, Jon [https://opengraph.githubassets.com/594c877faa442856292a9b4df982ba26051c434a7b1e2c82ab21fe444a6f95dc/OSGeo/gdal/issues/5967] GetFID incorrect after sorting layer · Issue #5967 · OSGeo/gdal

Re: [gdal-dev] GetFID incorrect after sorting layer

2022-06-22 Thread Even Rouault
Jon, this is a bug on the result SQL layer implementation of GetFeature(). Can you file a ticket in https://github.com/OSGeo/gdal/issues/new with the below elements? Thanks Even Le 22/06/2022 à 15:37, Jon Morris a écrit : Hello all, I’m having trouble getting features in a layer after sor

[gdal-dev] GetFID incorrect after sorting layer

2022-06-22 Thread Jon Morris
Hello all, I’m having trouble getting features in a layer after sorting with SQL query. It seems that the FIDs change when the layer is sorted. I’m ok with that, but if you take the id returned by GetFID and call GetFeature on the layer, you get a different feature. I would have thought GetFID/