# `SRTM.DataCell`
[🔗](https://github.com/adriankumpf/srtm/blob/v0.9.0/lib/srtm/data_cell.ex#L1)

A parsed HGT file.

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

# `t`

```elixir
@opaque t()
```

# `new`

```elixir
@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`

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

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

---

*Consult [api-reference.md](api-reference.md) for complete listing*
