pub struct ShpHeader {
pub file_length_words: i32,
pub shape_type: ShapeType,
pub bbox_xy: [f64; 4],
pub bbox_z: [f64; 2],
pub bbox_m: [f64; 2],
}Expand description
Parsed .shp / .shx file header (the format is byte-identical between
the two files; only the records that follow differ).
Fields§
§file_length_words: i32§shape_type: ShapeType§bbox_xy: [f64; 4][xmin, ymin, xmax, ymax].
bbox_z: [f64; 2][zmin, zmax]. Zero for 2D files.
bbox_m: [f64; 2][mmin, mmax]. Zero / sentinel for non-M files.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ShpHeader
impl RefUnwindSafe for ShpHeader
impl Send for ShpHeader
impl Sync for ShpHeader
impl Unpin for ShpHeader
impl UnsafeUnpin for ShpHeader
impl UnwindSafe for ShpHeader
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more