MCPcopy Create free account
hub / github.com/comaps/comaps / read_coord

Function read_coord

tools/python/mwm/mwm_python.py:329–334  ·  view source on GitHub ↗

Reads a pair of coords in degrees mercator, returns (lon, lat).

(
    f, base_point: mi.Point, coord_size: int, packed: bool = True
)

Source from the content-addressed store, hash-verified

327
328
329def read_coord(
330 f, base_point: mi.Point, coord_size: int, packed: bool = True
331) -> mi.Point:
332 """Reads a pair of coords in degrees mercator, returns (lon, lat)."""
333 point = read_point(f, base_point, packed)
334 return to_4326(coord_size, point)
335
336
337def read_bounds(f, coord_size) -> mi.Rect:

Callers 1

__init__Method · 0.85

Calls 2

read_pointFunction · 0.85
to_4326Function · 0.85

Tested by

no test coverage detected