[Qgis-developer] shx missing

Barry Rowlingson b.rowlingson at lancaster.ac.uk
Fri Oct 7 13:57:16 EDT 2011


On Fri, Oct 7, 2011 at 4:52 PM, Martin Dobias <wonder.sk at gmail.com> wrote:

> Not really. shx file is there just for faster indexing. However I do
> not see a reason why shx file couldn't be recovered from a shp file -
> it consists of sequentially written records with variable size, each
> record has a header stating its length.

 Wow, I sit corrected! I could have sworn they were fairly
unstructured. Time to read the spec...

"The main file (.shp) contains a fixed-length file header followed by
variable-length
records. Each variable-length record is made up of a fixed-length
record header followed
by variable-length record contents"

 Apologies!

Barry


More information about the Qgis-developer mailing list