Skip to main content

oxigdal_flatgeobuf/
lib.rs

1//! `FlatGeobuf` driver for `OxiGDAL`
2//!
3//! `FlatGeobuf` is a performant binary encoding format for geographic data.
4
5#![warn(missing_docs)]
6#![warn(clippy::all)]
7// Pedantic disabled to reduce noise - default clippy::all is sufficient
8// #![warn(clippy::pedantic)]
9#![deny(clippy::unwrap_used)]
10#![allow(clippy::module_name_repetitions)]
11#![allow(clippy::missing_errors_doc)]
12#![allow(clippy::missing_panics_doc)]
13
14pub mod error;
15pub mod geometry;
16pub mod header;
17pub mod index;
18pub mod reader;
19pub mod writer;
20
21#[cfg(feature = "http")]
22pub mod http;
23
24// Re-export main types
25pub use error::{FlatGeobufError, Result};
26pub use header::{Column, ColumnType, CrsInfo, GeometryType, Header};
27pub use reader::FlatGeobufReader;
28pub use writer::{FlatGeobufWriter, FlatGeobufWriterBuilder};
29
30#[cfg(feature = "async")]
31pub use reader::AsyncFlatGeobufReader;
32
33#[cfg(feature = "http")]
34pub use http::HttpReader;
35
36/// `FlatGeobuf` magic bytes
37pub const MAGIC_BYTES: &[u8; 8] = b"fgb\x03fgb\x00";
38
39/// `FlatGeobuf` version
40pub const VERSION: u8 = 3;
41
42/// Crate version
43pub const CRATE_VERSION: &str = env!("CARGO_PKG_VERSION");