SRTM.DataCell (SRTM v0.9.0)

Copy Markdown View Source

A parsed HGT file.

SRTM.Cache implementations use new/2 to parse a cached HGT file and to_binary/1 to serialize one.

Summary

Functions

Parses data, the contents of the HGT file name (for example "N36W117").

Returns the contents of the HGT file the data cell was parsed from.

Types

t()

@opaque t()

Functions

new(name, data)

@spec new(String.t(), binary()) :: {:ok, t()} | {:error, SRTM.Error.t()}

Parses data, the contents of the HGT file name (for example "N36W117").

to_binary(data_cell)

@spec to_binary(t()) :: binary()

Returns the contents of the HGT file the data cell was parsed from.