go-elevations

command module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

README

SRTM parser for golang

go-elevations is a parser for "The Shuttle Radar Topography Mission" data.

It is based on the existing library for python srtm.py

Usage

package main

import (
	"fmt"
	"net/http"

	"github.com/tkrajina/go-elevations/geoelevations"
)

func main() {
	srtm, err := geoelevations.NewSrtm(http.DefaultClient)
	if err != nil {
		panic(err.Error())
	}
	elevation, err := srtm.GetElevation(http.DefaultClient, 45.2775, 13.726111)
	if err != nil {
		panic(err.Error())
	}
	fmt.Println("Višnjan elevation is", elevation)
}

go-elevations is a parser for "The Shuttle Radar Topography Mission" data.

It is based on the existing library for python srtm.py

License

This library is licensed under the Apache License, Version 2.0

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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