Geospatial data
SHX record offset map
Read shape-index entries and compare their byte ranges with a supplied SHP length.
Your inputs
Start with an exampleYour result
Example resultAa — A small example of your colors.
How it works
Convert SHX offsets and content lengths from 16-bit words to bytes. Add the eight-byte SHP record header; flag gaps, overlaps and ranges beyond the supplied length.
The two index entries start SHP record headers at bytes 100 and 128. Their ends are 128 and 164.
Limits
Complete SHX files up to 1 MB and 20000 entries. Header and index framing only; no companion SHP fetch, geometry decoding, DBF matching, bounding-box verification or complete shapefile validation.