Opened 4 years ago

Closed 13 months ago

#5035 closed enhancement (fixed)

Shapelib: Handle missing .shx index file

Reported by: dallured Owned by: warmerdam
Priority: low Milestone: 2.1.0
Component: OGR_SF Version: unspecified
Severity: minor Keywords: shapefile shp shx shapelib
Cc:

Description

This is a new feature request. Please add support in GDAL/OGR/Shapelib to open a shapefile (.shp) when the corresponding index file (.shx) is missing. This will benefit use cases where the index file is lost, damaged, or never generated.

From my limited reading of the ESRI spec, it seems that the index file contains only redundant information for optimizing read access to the primary shape file. It looks like the internal structure of the primary shape file is fairly easy to traverse.

To whom it may concern, thanks for your consideration.

Reference: http://www.esri.com/library/whitepapers/pdfs/shapefile.pdf

Change History (2)

comment:1 Changed 2 years ago by Jukka Rahkonen

See also #3050

comment:2 Changed 13 months ago by Even Rouault

Milestone: 2.1.0
Resolution: fixed
Status: newclosed

trunk r33889 "Shape: add capability to restore/build a missing .shx file when defining SHAPE_RESTORE_SHX to TRUE (patch by Alexander Borzykh, #5035, https://github.com/OSGeo/gdal/pull/104)"

Note: See TracTickets for help on using tickets.