Enum las::point::Classification [] [src]

pub enum Classification {
    CreatedNeverClassified,
    Unclassified,
    Ground,
    LowVegetation,
    MediumVegetation,
    HighVegetation,
    Building,
    LowPoint,
    ModelKeyPoint,
    Water,
    Overlap,
    Reserved(u8),
}

An enum to represent classifications.

Variants

CreatedNeverClassified

A point is unclassified, and we haven't even tried.

Unclassified

This point could not be classified.

Ground

Ground point.

LowVegetation

A low vegetation point, such as shrubbery.

MediumVegetation

Medium vegetation, like chaperelle.

HighVegetation

High vegetation, like forest.

Building

A man-made building.

LowPoint

A noise point.

ModelKeyPoint

A mass point, pretty synthetic.

Water

Water.

Overlap

These points were culled when merging overlapping flight lines.

Reserved

Reserved for ASPRS definition.

There are several numerical values associated with Reserved.

Methods

impl Classification

fn from_u8(n: u8) -> Result<Classification>

Creates a classification from a u8.

Examples

use las::point::Classification;
assert_eq!(Classification::Ground, Classification::from_u8(2).unwrap());
assert!(Classification::from_u8(127).is_err());

fn as_u8(&self) -> u8

Returns this classifications u8 value.

Examples

use las::point::Classification;
let classification = Classification::Ground;
assert_eq!(2, classification.as_u8());

Trait Implementations

impl Default for Classification

fn default() -> Classification

Derived Implementations

impl PartialEq for Classification

fn eq(&self, __arg_0: &Classification) -> bool

fn ne(&self, __arg_0: &Classification) -> bool

impl Debug for Classification

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl Copy for Classification

impl Clone for Classification

fn clone(&self) -> Classification

fn clone_from(&mut self, source: &Self)