lidar

package
v0.0.0-...-d99e8d0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 24, 2018 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClassificationBitField

type ClassificationBitField uint8

func (*ClassificationBitField) ClassString

func (c *ClassificationBitField) ClassString() string

func (*ClassificationBitField) ClassValue

func (c *ClassificationBitField) ClassValue() byte

func (*ClassificationBitField) IsKeyPoint

func (c *ClassificationBitField) IsKeyPoint() bool

func (*ClassificationBitField) IsSynthetic

func (c *ClassificationBitField) IsSynthetic() bool

func (*ClassificationBitField) IsWithheld

func (c *ClassificationBitField) IsWithheld() bool

func (ClassificationBitField) String

func (c ClassificationBitField) String() string

type ExtendedVlrHeader

type ExtendedVlrHeader struct {
	UserID                  string // 16 characters
	RecordID                uint16
	RecordLengthAfterHeader uint64
	Description             string // 32 characters
}

type GPSTime

type GPSTime float64

type LasFile

type LasFile struct {
	Header LasHeader
	// contains filtered or unexported fields
}

func CreateFromFile

func CreateFromFile(fileName string) (*LasFile, error)

func (*LasFile) Close

func (las *LasFile) Close() error

Close closes a LasFile

func (*LasFile) GetFileName

func (las *LasFile) GetFileName() string

GetFileName Returns the file name

func (*LasFile) GetPointClassName

func (las *LasFile) GetPointClassName(n int64) string

GetPointClassName returns the class name associated with a point

func (*LasFile) GetPointClassValue

func (las *LasFile) GetPointClassValue(n int64) byte

GetPointClassValue returns class value information for a point

func (*LasFile) GetPointIntensity

func (las *LasFile) GetPointIntensity(n int64) uint16

GetPointIntensity returns the intensity associated with a point

func (LasFile) GetPointTypeInfo

func (las LasFile) GetPointTypeInfo() string

func (*LasFile) GetPointXYZ

func (las *LasFile) GetPointXYZ(n int64) (X, Y, Z float64)

GetPointXYZ returns the x,y,z coordinates of a point

func (*LasFile) PrintPointData

func (las *LasFile) PrintPointData(n int64)

PrintPointData prints data for a point

type LasHeader

type LasHeader struct {
	FileSignature        string //[4]byte
	FileSourceID         uint16
	GlobalEncoding       uint16
	ProjectID1           uint32
	ProjectID2           uint16
	ProjectID3           uint16
	ProjectID4           uint64
	VersionMajor         byte
	VersionMinor         byte
	SystemID             string // 32 characters
	GeneratingSoftware   string // 32 characters
	FileCreationDay      uint16
	FileCreationYear     uint16
	HeaderSize           uint16
	OffsetToPoints       uint32
	NumberOfVLRs         uint32
	PointFormatID        byte
	PointRecordLength    uint16
	NumberPoints         uint32
	NumberPointsByReturn [7]uint32
	XScaleFactor         float64
	YScaleFactor         float64
	ZScaleFactor         float64
	XOffset              float64
	YOffset              float64
	ZOffset              float64
	MaxX                 float64
	MinX                 float64
	MaxY                 float64
	MinY                 float64
	MaxZ                 float64
	MinZ                 float64
	WaveformDataStart    uint64
}

func (LasHeader) String

func (h LasHeader) String() string

type PointBitField

type PointBitField uint8

func (*PointBitField) EdgeOfFlightline

func (p *PointBitField) EdgeOfFlightline() bool

func (*PointBitField) NumberOfReturns

func (p *PointBitField) NumberOfReturns() byte

func (*PointBitField) ReturnNumber

func (p *PointBitField) ReturnNumber() byte

func (*PointBitField) ScanDirectionFlag

func (p *PointBitField) ScanDirectionFlag() bool

func (PointBitField) String

func (p PointBitField) String() string

type PointData

type PointData struct {
	X, Y, Z       int32
	Intensity     uint16
	BitField      PointBitField
	ClassField    ClassificationBitField
	ScanAngle     int8
	UserData      byte
	PointSourceID uint16
}

func (PointData) String

func (p PointData) String() string

type PointRecord0

type PointRecord0 struct {
	PointData PointData
}

func (PointRecord0) String

func (p PointRecord0) String() string

type PointRecord1

type PointRecord1 struct {
	PointData PointData
	GPSTime   GPSTime
}

func (PointRecord1) String

func (p PointRecord1) String() string

type PointRecord2

type PointRecord2 struct {
	PointData PointData
	RGBData   RGBData
}

func (PointRecord2) String

func (p PointRecord2) String() string

type PointRecord3

type PointRecord3 struct {
	PointData PointData
	GPSTime   GPSTime
	RGBData   RGBData
}

func (PointRecord3) String

func (p PointRecord3) String() string

type RGBData

type RGBData struct {
	Red, Green, Blue uint16
}

type VlrHeader

type VlrHeader struct {
	UserID                  string // 16 characters
	RecordID                uint16
	RecordLengthAfterHeader uint16
	Description             string // 32 characters
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL