Skip to main content

Crate oxigdal_copc

Crate oxigdal_copc 

Source
Expand description

Pure Rust COPC (Cloud Optimized Point Cloud) reader.

Implements end-to-end reading of COPC (Cloud Optimized Point Cloud) files built on top of an ASPRS LAS 1.4 public header parser.

§Module layout

  • las_header parses the LAS public header block.
  • copc_vlr defines the VLR / COPC info binary layout.
  • vlr_chain walks the VLR sequence and locates COPC records.
  • point_format deserializes LAS point records (formats 0-3, 6-8).
  • hierarchy parses COPC octree hierarchy pages and traverses them.
  • copc_reader ties everything together behind the CopcReader API.

In-memory point storage and spatial indexing are provided by the point, octree and profile modules.

Re-exports§

pub use copc_reader::CopcReader;
pub use copc_vlr::CopcInfo;
pub use copc_vlr::Vlr;
pub use copc_vlr::VlrKey;
pub use error::CopcError;
pub use hierarchy::HierarchyEntry;
pub use hierarchy::VoxelKey;
pub use las_header::LasHeader;
pub use las_header::LasVersion;
pub use octree::Octree;
pub use octree::OctreeNode;
pub use octree::PointCloudStats;
pub use point::BoundingBox3D;
pub use point::Point3D;
pub use point_format::deserialize_point;
pub use point_format::deserialize_points;
pub use profile::GroundFilter;
pub use profile::HeightProfile;
pub use profile::ProfileSegment;
pub use vlr_chain::find_copc_hierarchy_vlr;
pub use vlr_chain::find_copc_info;
pub use vlr_chain::parse_vlrs;

Modules§

copc_reader
High-level COPC file reader that ties together header parsing, VLR chain walking, hierarchy traversal and point deserialization.
copc_vlr
COPC Variable Length Record (VLR) types.
error
Error types for oxigdal-copc
hierarchy
COPC octree hierarchy page parsing and spatial traversal.
las_header
ASPRS LAS 1.x file header parser.
octree
In-memory octree spatial index for point cloud data.
point
LAS/LAZ point record types and 3D bounding box.
point_format
LAS point record binary deserialization.
profile
Height profile extraction and ground filtering for point clouds.
vlr_chain
VLR chain parsing: iterate through all Variable Length Records in a LAS file.