tools

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: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Pi        = math.Pi
	RadToDeg  = 180 / Pi
	DegToRad  = Pi / 180
	RadToGrad = 200 / Pi
	GradToDeg = Pi / 200
)

Variables

This section is empty.

Functions

func GetHeaderText

func GetHeaderText(str string) string

func NewQueueGroup

func NewQueueGroup(numQueues int) *queueGroup

Types

type Aspect

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

func (*Aspect) CollectArguments

func (this *Aspect) CollectArguments()

func (*Aspect) GetArgDescriptions

func (this *Aspect) GetArgDescriptions() [][]string

func (*Aspect) GetDescription

func (this *Aspect) GetDescription() string

Returns a short description of the tool.

func (*Aspect) GetHelpDocumentation

func (this *Aspect) GetHelpDocumentation() string

func (*Aspect) GetName

func (this *Aspect) GetName() string

func (*Aspect) ParseArguments

func (this *Aspect) ParseArguments(args []string)

func (*Aspect) Run

func (this *Aspect) Run()

func (*Aspect) SetToolManager

func (this *Aspect) SetToolManager(tm *PluginToolManager)

type BreachDepressions

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

func (*BreachDepressions) CollectArguments

func (this *BreachDepressions) CollectArguments()

func (*BreachDepressions) GetArgDescriptions

func (this *BreachDepressions) GetArgDescriptions() [][]string

Can be called to gather a listing of the arguments required to run this tool.

func (*BreachDepressions) GetDescription

func (this *BreachDepressions) GetDescription() string

func (*BreachDepressions) GetHelpDocumentation

func (this *BreachDepressions) GetHelpDocumentation() string

func (*BreachDepressions) GetName

func (this *BreachDepressions) GetName() string

func (*BreachDepressions) ParseArguments

func (this *BreachDepressions) ParseArguments(args []string)

ParseArguments is used when the tool is run using command-line args rather than in interactive input/output mode.

func (*BreachDepressions) Run

func (this *BreachDepressions) Run()

func (*BreachDepressions) SetToolManager

func (this *BreachDepressions) SetToolManager(tm *PluginToolManager)

type BreachStreams

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

func (*BreachStreams) CollectArguments

func (this *BreachStreams) CollectArguments()

func (*BreachStreams) GetArgDescriptions

func (this *BreachStreams) GetArgDescriptions() [][]string

Can be called to gather a listing of the arguments required to run this tool.

func (*BreachStreams) GetDescription

func (this *BreachStreams) GetDescription() string

func (*BreachStreams) GetHelpDocumentation

func (this *BreachStreams) GetHelpDocumentation() string

func (*BreachStreams) GetName

func (this *BreachStreams) GetName() string

func (*BreachStreams) ParseArguments

func (this *BreachStreams) ParseArguments(args []string)

ParseArguments is used when the tool is run using command-line args rather than in interactive input/output mode.

func (*BreachStreams) Run

func (this *BreachStreams) Run()

func (*BreachStreams) SetToolManager

func (this *BreachStreams) SetToolManager(tm *PluginToolManager)

type D8FlowAccumulation

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

func (*D8FlowAccumulation) CollectArguments

func (this *D8FlowAccumulation) CollectArguments()

func (*D8FlowAccumulation) GetArgDescriptions

func (this *D8FlowAccumulation) GetArgDescriptions() [][]string

func (*D8FlowAccumulation) GetDescription

func (this *D8FlowAccumulation) GetDescription() string

func (*D8FlowAccumulation) GetHelpDocumentation

func (this *D8FlowAccumulation) GetHelpDocumentation() string

func (*D8FlowAccumulation) GetName

func (this *D8FlowAccumulation) GetName() string

func (*D8FlowAccumulation) ParseArguments

func (this *D8FlowAccumulation) ParseArguments(args []string)

func (*D8FlowAccumulation) Run

func (this *D8FlowAccumulation) Run()

func (*D8FlowAccumulation) SetToolManager

func (this *D8FlowAccumulation) SetToolManager(tm *PluginToolManager)

type DeviationFromMean

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

func (*DeviationFromMean) CollectArguments

func (this *DeviationFromMean) CollectArguments()

func (*DeviationFromMean) GetArgDescriptions

func (this *DeviationFromMean) GetArgDescriptions() [][]string

func (*DeviationFromMean) GetDescription

func (this *DeviationFromMean) GetDescription() string

func (*DeviationFromMean) GetHelpDocumentation

func (this *DeviationFromMean) GetHelpDocumentation() string

func (*DeviationFromMean) GetName

func (this *DeviationFromMean) GetName() string

func (*DeviationFromMean) ParseArguments

func (this *DeviationFromMean) ParseArguments(args []string)

func (*DeviationFromMean) Run

func (this *DeviationFromMean) Run()

func (*DeviationFromMean) SetToolManager

func (this *DeviationFromMean) SetToolManager(tm *PluginToolManager)

type DeviationFromMeanTraditional

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

func (*DeviationFromMeanTraditional) CollectArguments

func (this *DeviationFromMeanTraditional) CollectArguments()

func (*DeviationFromMeanTraditional) GetArgDescriptions

func (this *DeviationFromMeanTraditional) GetArgDescriptions() [][]string

func (*DeviationFromMeanTraditional) GetDescription

func (this *DeviationFromMeanTraditional) GetDescription() string

func (*DeviationFromMeanTraditional) GetHelpDocumentation

func (this *DeviationFromMeanTraditional) GetHelpDocumentation() string

func (*DeviationFromMeanTraditional) GetName

func (this *DeviationFromMeanTraditional) GetName() string

func (*DeviationFromMeanTraditional) ParseArguments

func (this *DeviationFromMeanTraditional) ParseArguments(args []string)

func (*DeviationFromMeanTraditional) Run

func (this *DeviationFromMeanTraditional) Run()

func (*DeviationFromMeanTraditional) SetToolManager

func (this *DeviationFromMeanTraditional) SetToolManager(tm *PluginToolManager)

type DifferenceFromMean

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

func (*DifferenceFromMean) CollectArguments

func (this *DifferenceFromMean) CollectArguments()

func (*DifferenceFromMean) GetArgDescriptions

func (this *DifferenceFromMean) GetArgDescriptions() [][]string

func (*DifferenceFromMean) GetDescription

func (this *DifferenceFromMean) GetDescription() string

func (*DifferenceFromMean) GetHelpDocumentation

func (this *DifferenceFromMean) GetHelpDocumentation() string

func (*DifferenceFromMean) GetName

func (this *DifferenceFromMean) GetName() string

func (*DifferenceFromMean) ParseArguments

func (this *DifferenceFromMean) ParseArguments(args []string)

func (*DifferenceFromMean) Run

func (this *DifferenceFromMean) Run()

func (*DifferenceFromMean) SetToolManager

func (this *DifferenceFromMean) SetToolManager(tm *PluginToolManager)

type ElevationPercentile

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

func (*ElevationPercentile) CollectArguments

func (this *ElevationPercentile) CollectArguments()

func (*ElevationPercentile) GetArgDescriptions

func (this *ElevationPercentile) GetArgDescriptions() [][]string

func (*ElevationPercentile) GetDescription

func (this *ElevationPercentile) GetDescription() string

func (*ElevationPercentile) GetHelpDocumentation

func (this *ElevationPercentile) GetHelpDocumentation() string

func (*ElevationPercentile) GetName

func (this *ElevationPercentile) GetName() string

func (*ElevationPercentile) ParseArguments

func (this *ElevationPercentile) ParseArguments(args []string)

func (*ElevationPercentile) Run

func (this *ElevationPercentile) Run()

func (*ElevationPercentile) SetToolManager

func (this *ElevationPercentile) SetToolManager(tm *PluginToolManager)

type FD8FlowAccum

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

func (*FD8FlowAccum) CollectArguments

func (this *FD8FlowAccum) CollectArguments()

func (*FD8FlowAccum) GetArgDescriptions

func (this *FD8FlowAccum) GetArgDescriptions() [][]string

func (*FD8FlowAccum) GetDescription

func (this *FD8FlowAccum) GetDescription() string

func (*FD8FlowAccum) GetHelpDocumentation

func (this *FD8FlowAccum) GetHelpDocumentation() string

func (*FD8FlowAccum) GetName

func (this *FD8FlowAccum) GetName() string

func (*FD8FlowAccum) ParseArguments

func (this *FD8FlowAccum) ParseArguments(args []string)

func (*FD8FlowAccum) Run

func (this *FD8FlowAccum) Run()

func (*FD8FlowAccum) SetToolManager

func (this *FD8FlowAccum) SetToolManager(tm *PluginToolManager)

type FillDepressions

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

func (*FillDepressions) CollectArguments

func (this *FillDepressions) CollectArguments()

func (*FillDepressions) GetArgDescriptions

func (this *FillDepressions) GetArgDescriptions() [][]string

func (*FillDepressions) GetDescription

func (this *FillDepressions) GetDescription() string

func (*FillDepressions) GetHelpDocumentation

func (this *FillDepressions) GetHelpDocumentation() string

func (*FillDepressions) GetName

func (this *FillDepressions) GetName() string

func (*FillDepressions) ParseArguments

func (this *FillDepressions) ParseArguments(args []string)

func (*FillDepressions) Run

func (this *FillDepressions) Run()

func (*FillDepressions) SetToolManager

func (this *FillDepressions) SetToolManager(tm *PluginToolManager)

type FillSmallNodataHoles

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

func (*FillSmallNodataHoles) CollectArguments

func (this *FillSmallNodataHoles) CollectArguments()

func (*FillSmallNodataHoles) GetArgDescriptions

func (this *FillSmallNodataHoles) GetArgDescriptions() [][]string

func (*FillSmallNodataHoles) GetDescription

func (this *FillSmallNodataHoles) GetDescription() string

func (*FillSmallNodataHoles) GetHelpDocumentation

func (this *FillSmallNodataHoles) GetHelpDocumentation() string

func (*FillSmallNodataHoles) GetName

func (this *FillSmallNodataHoles) GetName() string

func (*FillSmallNodataHoles) ParseArguments

func (this *FillSmallNodataHoles) ParseArguments(args []string)

func (*FillSmallNodataHoles) Run

func (this *FillSmallNodataHoles) Run()

func (*FillSmallNodataHoles) SetToolManager

func (this *FillSmallNodataHoles) SetToolManager(tm *PluginToolManager)

type Hillshade

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

func (*Hillshade) CollectArguments

func (this *Hillshade) CollectArguments()

func (*Hillshade) GetArgDescriptions

func (this *Hillshade) GetArgDescriptions() [][]string

func (*Hillshade) GetDescription

func (this *Hillshade) GetDescription() string

Returns a short description of the tool.

func (*Hillshade) GetHelpDocumentation

func (this *Hillshade) GetHelpDocumentation() string

func (*Hillshade) GetName

func (this *Hillshade) GetName() string

func (*Hillshade) ParseArguments

func (this *Hillshade) ParseArguments(args []string)

func (*Hillshade) Run

func (this *Hillshade) Run()

func (*Hillshade) SetToolManager

func (this *Hillshade) SetToolManager(tm *PluginToolManager)

type MaximumElevationDeviation

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

func (*MaximumElevationDeviation) CollectArguments

func (this *MaximumElevationDeviation) CollectArguments()

func (*MaximumElevationDeviation) GetArgDescriptions

func (this *MaximumElevationDeviation) GetArgDescriptions() [][]string

func (*MaximumElevationDeviation) GetDescription

func (this *MaximumElevationDeviation) GetDescription() string

func (*MaximumElevationDeviation) GetHelpDocumentation

func (this *MaximumElevationDeviation) GetHelpDocumentation() string

func (*MaximumElevationDeviation) GetName

func (this *MaximumElevationDeviation) GetName() string

func (*MaximumElevationDeviation) ParseArguments

func (this *MaximumElevationDeviation) ParseArguments(args []string)

func (*MaximumElevationDeviation) Run

func (this *MaximumElevationDeviation) Run()

func (*MaximumElevationDeviation) SetToolManager

func (this *MaximumElevationDeviation) SetToolManager(tm *PluginToolManager)

type MeanFilter

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

func (*MeanFilter) CollectArguments

func (this *MeanFilter) CollectArguments()

func (*MeanFilter) GetArgDescriptions

func (this *MeanFilter) GetArgDescriptions() [][]string

func (*MeanFilter) GetDescription

func (this *MeanFilter) GetDescription() string

Returns a short description of the tool.

func (*MeanFilter) GetHelpDocumentation

func (this *MeanFilter) GetHelpDocumentation() string

func (*MeanFilter) GetName

func (this *MeanFilter) GetName() string

func (*MeanFilter) ParseArguments

func (this *MeanFilter) ParseArguments(args []string)

func (*MeanFilter) Run

func (this *MeanFilter) Run()

func (*MeanFilter) SetToolManager

func (this *MeanFilter) SetToolManager(tm *PluginToolManager)

type PQueue

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

PQueue is a heap priority queue data structure implementation.

func NewPQueue

func NewPQueue() *PQueue

NewPQueue creates a new priority queue

func (*PQueue) Len

func (pq *PQueue) Len() int

func (*PQueue) Pop

func (pq *PQueue) Pop() gridCell

Pop and returns the highest priority item

func (*PQueue) Push

func (pq *PQueue) Push(value gridCell, priority int64)

Push the value item into the priority queue with provided priority.

type PluginTool

type PluginTool interface {
	GetName() string
	GetDescription() string
	GetHelpDocumentation() string
	CollectArguments()
	ParseArguments([]string)
	GetArgDescriptions() [][]string
	SetToolManager(*PluginToolManager)
}

type PluginToolList

type PluginToolList []PluginTool

func (PluginToolList) Len

func (ptl PluginToolList) Len() int

func (PluginToolList) Less

func (ptl PluginToolList) Less(i, j int) bool

func (PluginToolList) Swap

func (ptl PluginToolList) Swap(i, j int)

type PluginToolManager

type PluginToolManager struct {
	BenchMode bool
	// contains filtered or unexported fields
}

PluginToolManager is an object for managing plugin tools.

func (*PluginToolManager) GetListOfTools

func (ptm *PluginToolManager) GetListOfTools() []PluginTool

func (*PluginToolManager) GetToolArgDescriptions

func (ptm *PluginToolManager) GetToolArgDescriptions(toolName string) ([]string, error)

func (*PluginToolManager) GetToolHelp

func (ptm *PluginToolManager) GetToolHelp(toolName string) (string, error)

func (*PluginToolManager) InitializeTools

func (ptm *PluginToolManager) InitializeTools()

InitializeTools is a method for initializing a new plugin tool manager.

func (*PluginToolManager) Run

func (ptm *PluginToolManager) Run(toolName string) error

func (*PluginToolManager) RunWithArguments

func (ptm *PluginToolManager) RunWithArguments(toolName string, args []string) error

func (*PluginToolManager) SetWorkingDirectory

func (ptm *PluginToolManager) SetWorkingDirectory(wd string)

type PrintGeoTiffTags

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

func (*PrintGeoTiffTags) CollectArguments

func (this *PrintGeoTiffTags) CollectArguments()

func (*PrintGeoTiffTags) GetArgDescriptions

func (this *PrintGeoTiffTags) GetArgDescriptions() [][]string

func (*PrintGeoTiffTags) GetDescription

func (this *PrintGeoTiffTags) GetDescription() string

func (*PrintGeoTiffTags) GetHelpDocumentation

func (this *PrintGeoTiffTags) GetHelpDocumentation() string

func (*PrintGeoTiffTags) GetName

func (this *PrintGeoTiffTags) GetName() string

func (*PrintGeoTiffTags) ParseArguments

func (this *PrintGeoTiffTags) ParseArguments(args []string)

func (*PrintGeoTiffTags) Run

func (this *PrintGeoTiffTags) Run()

func (*PrintGeoTiffTags) SetToolManager

func (this *PrintGeoTiffTags) SetToolManager(tm *PluginToolManager)

type PrintLASInfo

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

func (*PrintLASInfo) CollectArguments

func (this *PrintLASInfo) CollectArguments()

func (*PrintLASInfo) GetArgDescriptions

func (this *PrintLASInfo) GetArgDescriptions() [][]string

func (*PrintLASInfo) GetDescription

func (this *PrintLASInfo) GetDescription() string

func (*PrintLASInfo) GetHelpDocumentation

func (this *PrintLASInfo) GetHelpDocumentation() string

func (*PrintLASInfo) GetName

func (this *PrintLASInfo) GetName() string

func (*PrintLASInfo) ParseArguments

func (this *PrintLASInfo) ParseArguments(args []string)

func (*PrintLASInfo) Run

func (this *PrintLASInfo) Run()

func (*PrintLASInfo) SetToolManager

func (this *PrintLASInfo) SetToolManager(tm *PluginToolManager)

type Quantiles

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

func (*Quantiles) CollectArguments

func (this *Quantiles) CollectArguments()

func (*Quantiles) GetArgDescriptions

func (this *Quantiles) GetArgDescriptions() [][]string

func (*Quantiles) GetDescription

func (this *Quantiles) GetDescription() string

Returns a short description of the tool.

func (*Quantiles) GetHelpDocumentation

func (this *Quantiles) GetHelpDocumentation() string

func (*Quantiles) GetName

func (this *Quantiles) GetName() string

func (*Quantiles) ParseArguments

func (this *Quantiles) ParseArguments(args []string)

func (*Quantiles) Run

func (this *Quantiles) Run()

func (*Quantiles) SetToolManager

func (this *Quantiles) SetToolManager(tm *PluginToolManager)

type Slope

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

func (*Slope) CollectArguments

func (this *Slope) CollectArguments()

func (*Slope) GetArgDescriptions

func (this *Slope) GetArgDescriptions() [][]string

func (*Slope) GetDescription

func (this *Slope) GetDescription() string

Returns a short description of the tool.

func (*Slope) GetHelpDocumentation

func (this *Slope) GetHelpDocumentation() string

func (*Slope) GetName

func (this *Slope) GetName() string

func (*Slope) ParseArguments

func (this *Slope) ParseArguments(args []string)

func (*Slope) Run

func (this *Slope) Run()

func (*Slope) SetToolManager

func (this *Slope) SetToolManager(tm *PluginToolManager)

type Whitebox2GeoTiff

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

func (*Whitebox2GeoTiff) CollectArguments

func (this *Whitebox2GeoTiff) CollectArguments()

func (*Whitebox2GeoTiff) GetArgDescriptions

func (this *Whitebox2GeoTiff) GetArgDescriptions() [][]string

func (*Whitebox2GeoTiff) GetDescription

func (this *Whitebox2GeoTiff) GetDescription() string

func (*Whitebox2GeoTiff) GetHelpDocumentation

func (this *Whitebox2GeoTiff) GetHelpDocumentation() string

func (*Whitebox2GeoTiff) GetName

func (this *Whitebox2GeoTiff) GetName() string

func (*Whitebox2GeoTiff) ParseArguments

func (this *Whitebox2GeoTiff) ParseArguments(args []string)

func (*Whitebox2GeoTiff) Run

func (this *Whitebox2GeoTiff) Run()

func (*Whitebox2GeoTiff) SetToolManager

func (this *Whitebox2GeoTiff) SetToolManager(tm *PluginToolManager)

Jump to

Keyboard shortcuts

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