gosdata

package module
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

README

gosdata

Elevation Data

TODO flesh this out, add docs for the 2 commands and fix bodges.

Decoding OS Elevation data in Go

Grid data: https://omseprd1stdstordownload.blob.core.windows.net/downloads/Terrain50/2020-07/allGB/ASCII%20Grid%20and%20GML/terr50_gagg_gb.zip Contour data: https://omseprd1stdstordownload.blob.core.windows.net/downloads/Terrain50/2020-07/allGB/ESRI%20Shapes/terr50_cesh_gb.zip

User guide: https://www.ordnancesurvey.co.uk/documents/os-terrain-50-user-guide.pdf

  • Map Header

Post spacing of 50m; vertical interval of 10m. Tile size: 10km x 10km

40000 per file, ~ 3000 files -> 120 million points. Each point could be held in a 16-bit signed.


Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Tile

type Tile [200][200]int16

type TileServer

type TileServer struct {
	DataDirectory string
	// contains filtered or unexported fields
}

func NewTileServer

func NewTileServer(DataDirectory string) *TileServer

func (*TileServer) ClearCache

func (ts *TileServer) ClearCache()

func (*TileServer) Height

func (ts *TileServer) Height(gridref string) (float64, error)

func (*TileServer) LoadTile

func (ts *TileServer) LoadTile(gr osgridref.OsGridRef) (*Tile, error)

func (*TileServer) MustHeight

func (ts *TileServer) MustHeight(gridref string) float64

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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