Skip to content
jdaPublic

About

Go library for reading Shuttle Radar Topography Mission (SRTM) HGT files

Resources

Stars

2 stars

Watchers

3 watching

Forks

Latest commit

 

History

15 Commits

Folders and files

Repository files navigation

srtm

Go library for reading Shuttle Radar Topography Mission (SRTM) HGT files

GoDoc Go Report Card Build Status

package main

import (
	"github.com/jda/srtm"
	"log"
)

func main() {
	geo, err := srtm.ReadFile("srtm/testdata/S46W067.hgt")
	if err != nil {
		log.Fatal(err)
	}
	p := geo[30]
	log.Printf("Lat: %.4f, Lng: %.4f, Elevation: %d", p.Latitude, p.Longitude, p.Elevation)
}

Limitations

  1. Until issue #3 is resolved, only 1-arcsecond tiles are supported.

About

Go library for reading Shuttle Radar Topography Mission (SRTM) HGT files

Resources

Stars

2 stars

Watchers

3 watching

Forks

Releases

Packages

Used by

Contributors

Languages