Skip to main content

spatialrust_io/
options.rs

1use spatialrust_core::PointSchema;
2
3/// Options controlling point cloud reads.
4#[derive(Clone, Debug, Default, PartialEq, Eq)]
5pub struct ReadOptions {
6    /// Optional schema subset to load.
7    pub selected_fields: Option<Vec<String>>,
8    /// Maximum number of points to read per chunk.
9    pub chunk_size: Option<usize>,
10}
11
12/// Options controlling point cloud writes.
13#[derive(Clone, Debug, Default, PartialEq, Eq)]
14pub struct WriteOptions {
15    /// Optional schema mapping override.
16    pub schema: Option<PointSchema>,
17    /// Enable compression when supported by the format.
18    pub compress: bool,
19}