~phroa/boat-map

c0e55f427bf99235266386c8301c0f87a696832e — Jack Stratton 9 months ago 177d480
Fix a couple things
2 files changed, 3 insertions(+), 3 deletions(-)

M make-map.py
M requirements.txt
M make-map.py => make-map.py +2 -2
@@ 22,7 22,7 @@ MAX_LAT = max(MAP, key=lambda coord: coord[1])[1]
LON_RANGE = MAX_LON - MIN_LON
LAT_RANGE = MAX_LAT - MIN_LAT

WIDTH = 640
WIDTH = 648
HEIGHT = int(1.5 * WIDTH * LAT_RANGE / LON_RANGE)

# L = grayscale 8-bit


@@ 46,7 46,7 @@ out geom qt;
def latlon_to_xy(lat: float, lon: float) -> (float, float):
    x = WIDTH * (lon - MIN_LON) / LON_RANGE
    y = HEIGHT - (HEIGHT * (lat - MIN_LAT) / LAT_RANGE)
    return (x, y)
    return x, y


def draw_coastlines(coastlines):

M requirements.txt => requirements.txt +1 -1
@@ 1,3 1,3 @@
pillow
pysimdjson`
pysimdjson
requests
\ No newline at end of file