output

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2021 License: LGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DEMToPNG

func DEMToPNG(filename string, ats *rdg.DEM, image_pixel_w, image_pixel_h int, with_shadow bool, shadow Shadow)

func FtoA

func FtoA(v float64) string

func ItoA

func ItoA(v int) string

func WriteDEMtoOBJ

func WriteDEMtoOBJ(filename string, ats *rdg.DEM, image_w float64, image_h float64, z_extend float64, z_is_vertical bool) error

func WriteDEMtoPNG

func WriteDEMtoPNG(file string, ats *rdg.DEM, image_pixel_w, image_pixel_h int)

func WriteDEMtoPNGwithShadow

func WriteDEMtoPNGwithShadow(file string, ats *rdg.DEM, image_pixel_w, image_pixel_h int, shadow Shadow)

func WriteDEMtoTXT

func WriteDEMtoTXT(filename string, ats *rdg.DEM) error

Types

type Color

type Color struct {
	R, G, B float64
}

func GetColorFromElevation

func GetColorFromElevation(elevation float64) Color

func MakeColor

func MakeColor(r, g, b float64) Color

type ColorElevation

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

func MakeColorElevation

func MakeColorElevation(r, g, b, elevation float64) ColorElevation

type Shadow

type Shadow struct {
	DirectionZ      float64
	DirectionXY     float64
	WidthKm         float64
	StrengthLand01  float64
	StrengthOcean01 float64
}

func DefaultShadow

func DefaultShadow(ats *rdg.DEM) Shadow

Jump to

Keyboard shortcuts

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