srtm

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SRTM1 = 3601
	SRTM3 = 1201
)

Variables

This section is empty.

Functions

func GetSrtmTileName

func GetSrtmTileName(coordinates Coordinates) string

Types

type Coordinates

type Coordinates struct {
	Lat float64 `json:"lat"`
	Lon float64 `json:"lon"`
}

type Point

type Point struct {
	Coordinates
	Elevation float64 `json:"elevation"`
}

type SrtmTile

type SrtmTile struct {
	Lat        int
	Lon        int
	Resolution int
	// contains filtered or unexported fields
}

func NewTile

func NewTile(tileName string, bytes []byte) (*SrtmTile, error)

func (*SrtmTile) GetElevation

func (tile *SrtmTile) GetElevation(coordinates Coordinates) (int, error)

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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