lidar

package
v0.0.0-...-fc1595d Latest Latest
Warning

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

Go to latest
Published: May 4, 2017 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RGeoKeys    = 34735
	RGeoDoubles = 34736
	RGeoAscii   = 34737

	MathTransformWKT    = 2111
	CoordinateSystemWKT = 2112
)

Variables

This section is empty.

Functions

func MergeValues

func MergeValues(initial *PointReturn, output chan *PointReturn, waiter *sync.WaitGroup)

Types

type CrsRecordGeoTiff

type CrsRecordGeoTiff struct {
	Asciis              []byte
	Doubles             []float64
	Geokeys             map[uint16]*geotiff.GeoKey
	KeyDirectoryVersion uint16
	KeyRevision         uint16
	MinorRevision       uint16
	NumberOfKeys        uint16
}

type CrsRecordWkt

type CrsRecordWkt struct {
	Wkt string
}

type Evlr

type Evlr struct {
	// contains filtered or unexported fields
}

type GpsTimeType

type GpsTimeType int

type HeaderFormat

type HeaderFormat interface {
	GetNumberOfPoints() uint64
	ScalePoints(int32, int32, int32) (float64, float64, float64)
	GetPointFormat() byte
	GetPointsOffset() uint64
	GetPointLength() uint16
	GetNumberOfVLR() uint32
	GetNumberOfEVLR() uint32
	GetOffsetOfEVLR() uint64
	GpsTime() GpsTimeType
	DateTime() (time.Time, error)

	Imageinfo() *ImageInfo
	DumpHeader() []string
	Bounds() *geotiff.Bounds
	Version() (int, int)
	VersionString() string
	// contains filtered or unexported methods
}

type ImageInfo

type ImageInfo struct {
	// contains filtered or unexported fields
}

type Las

type Las interface {
	Build() (*geotiff.Raster, error)
	VariableLengthRecords() []*Vlr
	Summarize(*Vlr) string
	GeotiffCrs() *CrsRecordGeoTiff
	SummarizeGeokey(*geotiff.GeoKey) string
	WktCrs() *CrsRecordWkt
	IsWktCrs() bool
	KeyFor(key int) (*geotiff.GeoKey, error)
	DumpHeader() []string
	Bounds() *geotiff.Bounds
	IsLaszip() bool
	DateTime() (time.Time, error)
	Close() bool
}

func NewFileReader

func NewFileReader(f *os.File, opt *ReadOptions) (Las, error)

type LasHeader14

type LasHeader14 struct {
	LasHeaderLegacy
	// contains filtered or unexported fields
}

func (*LasHeader14) Bounds

func (h *LasHeader14) Bounds() *geotiff.Bounds

func (*LasHeader14) DumpHeader

func (h *LasHeader14) DumpHeader() []string

func (*LasHeader14) GetNumberOfEVLR

func (h *LasHeader14) GetNumberOfEVLR() uint32

func (*LasHeader14) GetNumberOfPoints

func (h *LasHeader14) GetNumberOfPoints() uint64

func (*LasHeader14) GetNumberOfVLR

func (h *LasHeader14) GetNumberOfVLR() uint32

func (*LasHeader14) GetOffsetOfEVLR

func (h *LasHeader14) GetOffsetOfEVLR() uint64

func (*LasHeader14) GetPointFormat

func (h *LasHeader14) GetPointFormat() byte

func (*LasHeader14) GetPointLength

func (h *LasHeader14) GetPointLength() uint16

func (*LasHeader14) GetPointsOffset

func (h *LasHeader14) GetPointsOffset() uint64

func (*LasHeader14) GpsTime

func (h *LasHeader14) GpsTime() GpsTimeType

func (*LasHeader14) Imageinfo

func (h *LasHeader14) Imageinfo() *ImageInfo

func (*LasHeader14) ScalePoints

func (h *LasHeader14) ScalePoints(x int32, y int32, z int32) (float64, float64, float64)

func (*LasHeader14) Version

func (h *LasHeader14) Version() (int, int)

func (*LasHeader14) VersionString

func (h *LasHeader14) VersionString() string

type LasHeaderLegacy

type LasHeaderLegacy struct {
	// contains filtered or unexported fields
}

func (*LasHeaderLegacy) Bounds

func (h *LasHeaderLegacy) Bounds() *geotiff.Bounds

func (*LasHeaderLegacy) DateTime

func (h *LasHeaderLegacy) DateTime() (time.Time, error)

func (*LasHeaderLegacy) DumpHeader

func (h *LasHeaderLegacy) DumpHeader() []string

func (*LasHeaderLegacy) GetNumberOfEVLR

func (h *LasHeaderLegacy) GetNumberOfEVLR() uint32

func (*LasHeaderLegacy) GetNumberOfPoints

func (h *LasHeaderLegacy) GetNumberOfPoints() uint64

func (*LasHeaderLegacy) GetNumberOfVLR

func (h *LasHeaderLegacy) GetNumberOfVLR() uint32

func (*LasHeaderLegacy) GetOffsetOfEVLR

func (h *LasHeaderLegacy) GetOffsetOfEVLR() uint64

func (*LasHeaderLegacy) GetPointFormat

func (h *LasHeaderLegacy) GetPointFormat() byte

func (*LasHeaderLegacy) GetPointLength

func (h *LasHeaderLegacy) GetPointLength() uint16

func (*LasHeaderLegacy) GetPointsOffset

func (h *LasHeaderLegacy) GetPointsOffset() uint64

func (*LasHeaderLegacy) GpsTime

func (h *LasHeaderLegacy) GpsTime() GpsTimeType

func (*LasHeaderLegacy) Imageinfo

func (h *LasHeaderLegacy) Imageinfo() *ImageInfo

func (*LasHeaderLegacy) ScalePoints

func (h *LasHeaderLegacy) ScalePoints(x int32, y int32, z int32) (float64, float64, float64)

func (*LasHeaderLegacy) Version

func (h *LasHeaderLegacy) Version() (int, int)

func (*LasHeaderLegacy) VersionString

func (h *LasHeaderLegacy) VersionString() string

type NotaLasFile

type NotaLasFile []byte

func (NotaLasFile) Error

func (s NotaLasFile) Error() string

type Point0

type Point0 struct {
	// contains filtered or unexported fields
}

func (*Point0) GetClassification

func (p *Point0) GetClassification() int16

func (*Point0) GetIntensity

func (p *Point0) GetIntensity() uint16

func (*Point0) GetReturnNumber

func (p *Point0) GetReturnNumber() uint8

func (*Point0) GetTotalReturns

func (p *Point0) GetTotalReturns() uint8

func (*Point0) GetX

func (p *Point0) GetX() int32

func (*Point0) GetY

func (p *Point0) GetY() int32

func (*Point0) GetZ

func (p *Point0) GetZ() int32

func (*Point0) ReadPoint

func (p *Point0) ReadPoint(rawPoint []byte)

type Point1

type Point1 struct {
	// contains filtered or unexported fields
}

func (*Point1) GetClassification

func (p *Point1) GetClassification() int16

func (*Point1) GetIntensity

func (p *Point1) GetIntensity() uint16

func (*Point1) GetReturnNumber

func (p *Point1) GetReturnNumber() uint8

func (*Point1) GetTotalReturns

func (p *Point1) GetTotalReturns() uint8

func (*Point1) GetX

func (p *Point1) GetX() int32

func (*Point1) GetY

func (p *Point1) GetY() int32

func (*Point1) GetZ

func (p *Point1) GetZ() int32

func (*Point1) ReadPoint

func (p *Point1) ReadPoint(rawPoint []byte)

type Point10

type Point10 struct {
	Point7

	WaveformPacketSizeInBytes uint32
	// contains filtered or unexported fields
}

func (*Point10) GetClassification

func (p *Point10) GetClassification() int16

func (*Point10) GetIntensity

func (p *Point10) GetIntensity() uint16

func (*Point10) GetReturnNumber

func (p *Point10) GetReturnNumber() uint8

func (*Point10) GetTotalReturns

func (p *Point10) GetTotalReturns() uint8

func (*Point10) GetX

func (p *Point10) GetX() int32

func (*Point10) GetY

func (p *Point10) GetY() int32

func (*Point10) GetZ

func (p *Point10) GetZ() int32

func (*Point10) ReadPoint

func (p *Point10) ReadPoint(rawPoint []byte)

type Point2

type Point2 struct {
	// contains filtered or unexported fields
}

func (*Point2) GetClassification

func (p *Point2) GetClassification() int16

func (*Point2) GetIntensity

func (p *Point2) GetIntensity() uint16

func (*Point2) GetReturnNumber

func (p *Point2) GetReturnNumber() uint8

func (*Point2) GetTotalReturns

func (p *Point2) GetTotalReturns() uint8

func (*Point2) GetX

func (p *Point2) GetX() int32

func (*Point2) GetY

func (p *Point2) GetY() int32

func (*Point2) GetZ

func (p *Point2) GetZ() int32

func (*Point2) ReadPoint

func (p *Point2) ReadPoint(rawPoint []byte)

type Point3

type Point3 struct {
	// contains filtered or unexported fields
}

func (*Point3) GetClassification

func (p *Point3) GetClassification() int16

func (*Point3) GetIntensity

func (p *Point3) GetIntensity() uint16

func (*Point3) GetReturnNumber

func (p *Point3) GetReturnNumber() uint8

func (*Point3) GetTotalReturns

func (p *Point3) GetTotalReturns() uint8

func (*Point3) GetX

func (p *Point3) GetX() int32

func (*Point3) GetY

func (p *Point3) GetY() int32

func (*Point3) GetZ

func (p *Point3) GetZ() int32

func (*Point3) ReadPoint

func (p *Point3) ReadPoint(rawPoint []byte)

type Point4

type Point4 struct {
	WaveformPacketSizeInBytes uint32
	// contains filtered or unexported fields
}

func (*Point4) GetClassification

func (p *Point4) GetClassification() int16

func (*Point4) GetIntensity

func (p *Point4) GetIntensity() uint16

func (*Point4) GetReturnNumber

func (p *Point4) GetReturnNumber() uint8

func (*Point4) GetTotalReturns

func (p *Point4) GetTotalReturns() uint8

func (*Point4) GetX

func (p *Point4) GetX() int32

func (*Point4) GetY

func (p *Point4) GetY() int32

func (*Point4) GetZ

func (p *Point4) GetZ() int32

func (*Point4) ReadPoint

func (p *Point4) ReadPoint(rawPoint []byte)

type Point5

type Point5 struct {
	WaveformPacketSizeInBytes uint32
	// contains filtered or unexported fields
}

func (*Point5) GetClassification

func (p *Point5) GetClassification() int16

func (*Point5) GetIntensity

func (p *Point5) GetIntensity() uint16

func (*Point5) GetReturnNumber

func (p *Point5) GetReturnNumber() uint8

func (*Point5) GetTotalReturns

func (p *Point5) GetTotalReturns() uint8

func (*Point5) GetX

func (p *Point5) GetX() int32

func (*Point5) GetY

func (p *Point5) GetY() int32

func (*Point5) GetZ

func (p *Point5) GetZ() int32

func (*Point5) ReadPoint

func (p *Point5) ReadPoint(rawPoint []byte)

type Point6

type Point6 struct {
	// contains filtered or unexported fields
}

func (*Point6) GetClassification

func (p *Point6) GetClassification() int16

func (*Point6) GetIntensity

func (p *Point6) GetIntensity() uint16

func (*Point6) GetReturnNumber

func (p *Point6) GetReturnNumber() uint8

func (*Point6) GetTotalReturns

func (p *Point6) GetTotalReturns() uint8

func (*Point6) GetX

func (p *Point6) GetX() int32

func (*Point6) GetY

func (p *Point6) GetY() int32

func (*Point6) GetZ

func (p *Point6) GetZ() int32

func (*Point6) ReadPoint

func (p *Point6) ReadPoint(rawPoint []byte)

type Point7

type Point7 struct {
	Point6
	// contains filtered or unexported fields
}

func (*Point7) GetClassification

func (p *Point7) GetClassification() int16

func (*Point7) GetIntensity

func (p *Point7) GetIntensity() uint16

func (*Point7) GetReturnNumber

func (p *Point7) GetReturnNumber() uint8

func (*Point7) GetTotalReturns

func (p *Point7) GetTotalReturns() uint8

func (*Point7) GetX

func (p *Point7) GetX() int32

func (*Point7) GetY

func (p *Point7) GetY() int32

func (*Point7) GetZ

func (p *Point7) GetZ() int32

func (*Point7) ReadPoint

func (p *Point7) ReadPoint(rawPoint []byte)

type Point8

type Point8 struct {
	Point7
	// contains filtered or unexported fields
}

func (*Point8) GetClassification

func (p *Point8) GetClassification() int16

func (*Point8) GetIntensity

func (p *Point8) GetIntensity() uint16

func (*Point8) GetReturnNumber

func (p *Point8) GetReturnNumber() uint8

func (*Point8) GetTotalReturns

func (p *Point8) GetTotalReturns() uint8

func (*Point8) GetX

func (p *Point8) GetX() int32

func (*Point8) GetY

func (p *Point8) GetY() int32

func (*Point8) GetZ

func (p *Point8) GetZ() int32

func (*Point8) ReadPoint

func (p *Point8) ReadPoint(rawPoint []byte)

type Point9

type Point9 struct {
	Point6

	WaveformPacketSizeInBytes uint32
	// contains filtered or unexported fields
}

func (*Point9) GetClassification

func (p *Point9) GetClassification() int16

func (*Point9) GetIntensity

func (p *Point9) GetIntensity() uint16

func (*Point9) GetReturnNumber

func (p *Point9) GetReturnNumber() uint8

func (*Point9) GetTotalReturns

func (p *Point9) GetTotalReturns() uint8

func (*Point9) GetX

func (p *Point9) GetX() int32

func (*Point9) GetY

func (p *Point9) GetY() int32

func (*Point9) GetZ

func (p *Point9) GetZ() int32

func (*Point9) ReadPoint

func (p *Point9) ReadPoint(rawPoint []byte)

type PointFormat

type PointFormat interface {
	ReadPoint([]byte)
	GetX() int32
	GetY() int32
	GetZ() int32
	GetClassification() int16
	GetReturnNumber() uint8
	GetTotalReturns() uint8
	GetIntensity() uint16
}

type PointPacket

type PointPacket struct {
	// contains filtered or unexported fields
}

type PointReturn

type PointReturn struct {
	// contains filtered or unexported fields
}

type ReadOptions

type ReadOptions struct {
	Filtering             bool
	FirstReturns          bool
	BareEarthClass        bool
	LastReturns           bool
	GatherClassifications bool
	Intensity             bool
	FilterCrs             bool
	AcceptableGeoKeys     map[int]bool
}

func (*ReadOptions) String

func (opt *ReadOptions) String() string

type Vlr

type Vlr struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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