Opened 11 years ago

Closed 8 years 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


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.


Change History (2)

comment:1 by Jukka Rahkonen, 9 years ago

See also #3050

comment:2 by Even Rouault, 8 years ago

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,"

Note: See TracTickets for help on using tickets.