Used a Python script to generate some Calgary maps
MapToPoster - https://github.com/originalankur/maptoposter
Randomly saw this on Twitter the other day. I'm a Windows 11 user so I needed to install Python for Windows for it to work in PowerShell but it was pretty easy. It hammered my CPU for a few minutes while each map was being created. Windows probably not the best solution haha
They're fairly high res, 3630x4830. Uses OpenStreetMap data. By default it uses roads but you can do it for railroads or any other kind of data OSM has. MapToPoster can't add road labels or other things like that but they can be added through a workaround using OSMnx + Matplotlib (I haven't tried this yet).
The maps showing full city limits are kind of.. messy? Like if you zoom in, some of the lines don't really match up properly. It looks good while zoomed out though. I'm guessing this might be due to the size of Calgary's sprawl and trying to fit it all into a box big and small enough to make it look okay. The maps zoomed closer into the areas are a bit better.
Still playing with and stuff but this seems like it could be something neat to print out or something.
0 Comments