Re: [gdal-dev] Shapefile with corrupted index: SHAPE_RESTORE_SHX=YES doesn't correctly repairs it.

2023-05-15 Thread Andrea Giudiceandrea via gdal-dev
Il 15/05/2023 15:52, Rahkonen Jukka ha scritto: Am I right that .idx is an attribute index? By the documentation it feels somehow odd Hi Jukka Rahkonen, I apologise there was a typo in my message... where I wrote ".idx" I should have written ".shx". Il 15/05/2023 17:43, Robert Hewlett

Re: [gdal-dev] Shapefile with corrupted index: SHAPE_RESTORE_SHX=YES doesn't correctly repairs it.

2023-05-15 Thread Robert Hewlett
Hi, Out of curiosity, if you isolate the shp, dbf and shx (make a copy) in a separate folder is the data still corrupt? Rob On Mon, May 15, 2023 at 6:35 AM Andrea Giudiceandrea via gdal-dev < gdal-dev@lists.osgeo.org> wrote: > Hi devs, > in a reent QGIS issue report at > https://github.com/qgi

Re: [gdal-dev] Shapefile with corrupted index: SHAPE_RESTORE_SHX=YES doesn't correctly repairs it.

2023-05-15 Thread Rahkonen Jukka
Hi, Am I right that .idx is an attribute index? By the documentation it feels somehow odd " Currently the OGR Shapefile driver only supports attribute indexes for looking up specific values in a unique key column. To create an attribute index for a column issue an SQL command of the form "CREAT

[gdal-dev] Shapefile with corrupted index: SHAPE_RESTORE_SHX=YES doesn't correctly repairs it.

2023-05-15 Thread Andrea Giudiceandrea via gdal-dev
Hi devs, in a reent QGIS issue report at https://github.com/qgis/QGIS/issues/53058 , an user complains about an ESRI Shapefile layer that was corrupted after an attribute value was changed and the edit was saved. The corrupted layer is opened by QGIS without errors or warning being reported, a