Advertisement
Guest User

Untitled

a guest
Aug 31st, 2014
293
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. The shapefile index contains the same 100-byte header as the .shp file, followed by any number of 8-byte fixed-length records which consist of the following two fields:
  2. Bytes Type Endianness Usage
  3. 0–3 int32 big Record offset (in 16-bit words)
  4. 4–7 int32 big Record length (in 16-bit words)
  5.  
  6. Using this index, it is possible to seek backwards in the shapefile by, first, seeking backwards in the shape index (which is possible because it uses fixed-length records), then reading the record offset, and using that offset to seek to the correct position in the .shp file. It is also possible to seek forwards an arbitrary number of records using the same method.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement