Expand description
The 100-byte file header shared by .shp and .shx.
Layout per Esri J-7855 (July 1998):
| Bytes | Field | Endian |
|---|---|---|
| 0..4 | File code 9994 | Big |
| 24..28 | File length in 16-bit words | Big |
| 28..32 | Version 1000 | Little |
| 32..36 | Shape type | Little |
| 36..68 | XY bbox (xmin,ymin,xmax,ymax) | Little |
| 68..100 | Z + M bbox | Little |
Structs§
- ShpHeader
- Parsed
.shp/.shxfile header (the format is byte-identical between the two files; only the records that follow differ).
Enums§
- Shape
Type - Esri Shapefile shape type codes (2D + Z/M variants). v0.1 of this crate
only decodes the four 2D variants (
Point,Polyline,Polygon,Multipoint); Z/M / MultiPatch returnShpError::Unsupportedat the decoder.