Skip to main content

Crate spatialrust_io

Crate spatialrust_io 

Source
Expand description

Point cloud and spatial data IO for SpatialRust.

Format support is feature-gated. Core reader/writer traits live here.

Re-exports§

pub use pcd::infer_field_semantic;
pub use pcd::read_pcd;
pub use pcd::read_pcd_file;
pub use pcd::schema_from_pcd_fields;
pub use pcd::write_pcd;
pub use pcd::write_pcd_file;
pub use pcd::PcdDataKind;
pub use pcd::PcdFieldSpec;
pub use pcd::PcdHeader;
pub use pcd::PcdReader;
pub use pcd::PcdType;
pub use pcd::PcdWriteFormat;
pub use pcd::PcdWriter;
pub use ply::infer_property_semantic;
pub use ply::ply_property_from_field;
pub use ply::read_ply;
pub use ply::read_ply_file;
pub use ply::schema_from_ply_properties;
pub use ply::write_ply;
pub use ply::write_ply_file;
pub use ply::PlyFormat;
pub use ply::PlyHeader;
pub use ply::PlyProperty;
pub use ply::PlyPropertyKind;
pub use ply::PlyReader;
pub use ply::PlyWriteFormat;
pub use ply::PlyWriter;
pub use las::infer_las_field_semantic;
pub use las::read_las;
pub use las::read_las_file;
pub use las::schema_for_las_header;
pub use las::schema_from_point_cloud;
pub use las::write_las;
pub use las::write_las_file;
pub use las::LasReader;
pub use las::LasWriteFormat;
pub use las::LasWriter;
pub use e57::e57_prototype_from_schema;
pub use e57::read_e57;
pub use e57::read_e57_file;
pub use e57::schema_for_e57_pointcloud;
pub use e57::schema_from_point_cloud as e57_schema_from_point_cloud;
pub use e57::write_e57;
pub use e57::write_e57_file;
pub use e57::E57Reader;
pub use e57::E57Writer;
pub use copc::copc_level_for_resolution;
pub use copc::read_copc;
pub use copc::read_copc_file;
pub use copc::read_copc_file_in_bounds;
pub use copc::read_copc_file_info;
pub use copc::read_copc_file_with_query;
pub use copc::write_copc;
pub use copc::write_copc_file;
pub use copc::write_copc_file_with_params;
pub use copc::CopcBounds;
pub use copc::CopcFileInfo;
pub use copc::CopcQuery;
pub use copc::CopcReader;
pub use copc::CopcWriter;
pub use copc::read_copc_url;
pub use copc::read_copc_url_info;
pub use copc::read_copc_url_with_query;
pub use copc::HttpByteSource;

Modules§

copc
COPC (Cloud Optimized Point Cloud) readers and writers. COPC (Cloud Optimized Point Cloud) readers and writers.
e57
E57 (ASTM E2807) readers and writers. E57 (ASTM E2807) readers and writers for point clouds.
las
LAS/LAZ (ASPRS LiDAR) readers and writers. LAS/LAZ (ASPRS LiDAR) readers and writers for point clouds.
pcd
PCD (Point Cloud Data) readers and writers. PCD (Point Cloud Data) readers and writers.
ply
PLY (Polygon File Format) readers and writers. PLY (Polygon File Format) readers and writers for point clouds.

Structs§

CopcWriterParams
ReadOptions
Options controlling point cloud reads.
WriteOptions
Options controlling point cloud writes.

Enums§

IoError
IO-specific error type for SpatialRust.
PointCloudFileFormat
Supported point cloud file formats detected from file extensions.

Traits§

PointReader
Reads a point cloud from a file or stream.
PointSink
Accepts point cloud chunks for streaming writes.
PointStream
Reads point clouds in chunks.
PointWriter
Writes a point cloud to a file or stream.

Functions§

detect_point_cloud_format
Detects a point cloud format from a file path extension.
read_point_cloud_file
Reads a point cloud from disk, dispatching on the file extension.
read_point_cloud_file_with_format
Reads a point cloud using an explicit format.
write_point_cloud_file
Writes a point cloud to disk, dispatching on the file extension.
write_point_cloud_file_with_format
Writes a point cloud using an explicit format.