Documentation ¶
Index ¶
Constants ¶
View Source
const ( //SRTM_BASE_URL = "http://dds.cr.usgs.gov/srtm" SRTM_BASE_URL = "http://srtm.kurviger.de" SRTM1_URL = "/SRTM1/" SRTM3_URL = "/SRTM3/" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LocalFileSrtmStorage ¶
type LocalFileSrtmStorage struct {
// contains filtered or unexported fields
}
func NewLocalFileSrtmStorage ¶
func NewLocalFileSrtmStorage(cacheDirectory string) (*LocalFileSrtmStorage, error)
func (LocalFileSrtmStorage) IsNotExists ¶
func (ds LocalFileSrtmStorage) IsNotExists(err error) bool
type Srtm ¶
type Srtm struct {
// contains filtered or unexported fields
}
func NewSrtmWithCustomStorage ¶
func NewSrtmWithCustomStorage(client *http.Client, storage SrtmLocalStorage) (*Srtm, error)
type SrtmData ¶
type SrtmData struct { Srtm1BaseUrl string `json:"srtm1_base_url"` Srtm1 []SrtmUrl `json:"srtm1"` Srtm3BaseUrl string `json:"srtm3_base_url"` Srtm3 []SrtmUrl `json:"srtm2"` }
Info (to be (se)serialized) about all the SRTM files and their URLs
func (*SrtmData) GetBestSrtmUrl ¶
func (*SrtmData) GetSrtm1Url ¶
type SrtmFile ¶
type SrtmFile struct {
// contains filtered or unexported fields
}
Struct with contents and some utility methods of a single SRTM file
type SrtmLocalStorage ¶
Click to show internal directories.
Click to hide internal directories.