Documentation ¶
Index ¶
- func Aspect(i, o string, options *json.RawMessage) ([]byte, error)
- func HillshadeFunction(i, o string, options *json.RawMessage) ([]byte, error)
- func Roughness(i, o string, options *json.RawMessage) ([]byte, error)
- func Slope(i, o string, options *json.RawMessage) ([]byte, error)
- func TPI(i, o string, options *json.RawMessage) ([]byte, error)
- func TRI(i, o string, options *json.RawMessage) ([]byte, error)
- type AlgorithmOptions
- type AspectOptions
- type GeneralOptions
- type HillshadeOptions
- type RoughnessOptions
- type SlopeOptions
- type TPIOptions
- type TRIOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Aspect ¶
func Aspect(i, o string, options *json.RawMessage) ([]byte, error)
Aspect implements gdaldem aspect.
func HillshadeFunction ¶
func HillshadeFunction(i, o string, options *json.RawMessage) ([]byte, error)
HillshadeFunction implements gdaldem hillshade.
func Roughness ¶
func Roughness(i, o string, options *json.RawMessage) ([]byte, error)
Roughness implements gdaldem roughness.
func Slope ¶
func Slope(i, o string, options *json.RawMessage) ([]byte, error)
Slope implements gdaldem slope.
Types ¶
type AlgorithmOptions ¶
type AlgorithmOptions struct {
Alg string `json:"alg"`
}
AlgorithmOptions defines options for algorithms.
func NewAlgorithmOptions ¶
func NewAlgorithmOptions() *AlgorithmOptions
NewAlgorithmOptions construct AlgorithmOptions with default values.
type AspectOptions ¶
type AspectOptions struct { Trigonometric bool `json:"trigonometric"` ZeroForFlat bool `json:"zero_for_flat"` GeneralOptions AlgorithmOptions }
AspectOptions defines options for gdaldem aspect.
func NewAspectOptions ¶
func NewAspectOptions() *AspectOptions
NewAspectOptions constructs AspectOptions with default values.
type GeneralOptions ¶
type GeneralOptions struct { Format string `json:"format"` ComputeEdges bool `json:"compute_edges"` Band int `json:"band"` Quiet bool `json:"quiet"` }
GeneralOptions defines options for multiple gdaldem functions.
func NewGeneralOptions ¶
func NewGeneralOptions() *GeneralOptions
NewGeneralOptions constructs GeneralOptions with default values.
type HillshadeOptions ¶
type HillshadeOptions struct { ZFactor float64 `json:"zFactor"` Scale float64 `json:"scale"` Azimuth float64 `json:"azimuth"` Altitude float64 `json:"altitude"` Combined bool `json:"combined"` GeneralOptions AlgorithmOptions }
HillshadeOptions defines options for gdaldem hillshade.
func NewHillshadeOptions ¶
func NewHillshadeOptions() *HillshadeOptions
NewHillshadeOptions constructs HillshadeOptions with default values.
type RoughnessOptions ¶
type RoughnessOptions struct {
GeneralOptions
}
RoughnessOptions defines options for gdaldem roughness.
func NewRoughnessOptions ¶
func NewRoughnessOptions() *RoughnessOptions
NewRoughnessOptions constructs RoughnessOptions with default values.
type SlopeOptions ¶
type SlopeOptions struct { Percent bool `json:"percent"` Scale float64 `json:"scale"` GeneralOptions AlgorithmOptions }
SlopeOptions defines options for gdaldem slope.
func NewSlopeOptions ¶
func NewSlopeOptions() *SlopeOptions
NewSlopeOptions constructs SlopeOptions with default values.
type TPIOptions ¶
type TPIOptions struct {
GeneralOptions
}
TPIOptions defines options for gdaldem TPI.
func NewTPIOptions ¶
func NewTPIOptions() *TPIOptions
NewTPIOptions constructs TPIOptions with default values.
type TRIOptions ¶
type TRIOptions struct {
GeneralOptions
}
TRIOptions defines options for gdaldem TRI.
func NewTRIOptions ¶
func NewTRIOptions() *TRIOptions
NewTRIOptions constructs TRIOptions with default values.