Documentation ¶
Overview ¶
Copyright © 2022 Val Gridnev
Copyright © 2022 Val Gridnev
Index ¶
- Constants
- Variables
- func ColorReliefImage(img image.Image, gm *gradientMap) (image.Image, error)
- func Execute()
- func HillshadeImage(img image.Image, pixel_res float64, h_factor float64, altitude float64, ...) (image.Image, error)
- func MustParseHex(s string) colorful.Color
- func NewGradientMap(colorCard []colorCard, heighPrecision float64) (*gradientMap, error)
- func NewTerra(cfg aws.Config, s3Config s3Config) (*terra, error)
- func TransparentGrayscale(img image.Image) image.Image
- type CacheTileStore
- type ElevationTileStore
- type FeatureOutFormat
- type GradientTable
- type HeightColor
- type S3TileStore
- type TileStore
Constants ¶
View Source
const ( CacheSize = 4 * 512 TileSize = 256 MaxConcurrency = 8 )
Variables ¶
View Source
var (
ErrTileNotFound = fmt.Errorf("not found")
)
Functions ¶
func ColorReliefImage ¶
func Execute ¶
func Execute()
Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.
func HillshadeImage ¶
func MustParseHex ¶
func MustParseHex(s string) colorful.Color
func NewGradientMap ¶
Types ¶
type CacheTileStore ¶
type CacheTileStore struct {
// contains filtered or unexported fields
}
func NewCacheTileStore ¶
func NewCacheTileStore(tileNameTempl string, cacheSize int) (*CacheTileStore, error)
func (*CacheTileStore) Add ¶
func (ts *CacheTileStore) Add(z uint32, x uint32, y uint32, data []byte)
type ElevationTileStore ¶
type ElevationTileStore struct {
// contains filtered or unexported fields
}
func NewElevationTileStore ¶
func NewElevationTileStore(tileNameTempl string, cacheSize int) (*ElevationTileStore, error)
type FeatureOutFormat ¶
type FeatureOutFormat string
const ( FeatureOutGeoJSON FeatureOutFormat = "geojson" FeatureOutMVT FeatureOutFormat = "mvt" )
type GradientTable ¶
type GradientTable []HeightColor
type HeightColor ¶
type HeightColor struct { Col colorful.Color Height float64 }
type S3TileStore ¶
type S3TileStore struct {
// contains filtered or unexported fields
}
func NewS3TileStore ¶
Click to show internal directories.
Click to hide internal directories.