mirror of
https://github.com/enzet/map-machine.git
synced 2025-08-06 10:09:52 +02:00
Refactor figures; get use of Python 3.9 features.
This commit is contained in:
parent
053324451a
commit
3bcf026862
36 changed files with 698 additions and 750 deletions
|
@ -10,9 +10,7 @@ __email__ = "me@enzet.ru"
|
|||
|
||||
|
||||
def test_pseudo_mercator() -> None:
|
||||
"""
|
||||
Test pseudo-Mercator projection.
|
||||
"""
|
||||
"""Test pseudo-Mercator projection."""
|
||||
assert np.allclose(pseudo_mercator(np.array((0, 0))), np.array((0, 0)))
|
||||
assert np.allclose(pseudo_mercator(np.array((0, 10))), np.array((10, 0)))
|
||||
assert np.allclose(
|
||||
|
@ -21,9 +19,7 @@ def test_pseudo_mercator() -> None:
|
|||
|
||||
|
||||
def test_osm_zoom_level_to_pixels_per_meter() -> None:
|
||||
"""
|
||||
Test scale computation.
|
||||
"""
|
||||
"""Test scale computation."""
|
||||
assert np.allclose(
|
||||
osm_zoom_level_to_pixels_per_meter(18), 1.6759517949045808
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue