Remix.run Logo
Map To Poster – Create Art of your favourite city(github.com)
105 points by originalankur 6 hours ago | 35 comments
Helmut10001 an hour ago | parent | next [-]

San Francisco looks nice, but there seems to be a problem with the projection in some of the sample images. It looks as if it isn't UTM but a global sphere projection, which isn't suitable for local renders. It's suspicious that the word 'projection' isn't mentioned in the Readme.

jasongill an hour ago | parent [-]

This is an artistic project to make a fun and artsy poster, so it's not at all "suspicious" that the map projection is not critical to the artwork.

It also appears to be open source, so perhaps you can open a pull request with your improvements based on your cartographical experience.

Helmut10001 an hour ago | parent [-]

You are absolutely correct. Suspicious was the wrong word and I did not mean to criticize the author or the work.

mft_ 5 hours ago | parent | prev | next [-]

I believe (from a quick code check on my phone) it should be possible to output the images to SVG with a little tweak, thanks to your use of matplotlib?

Is there a reason you’ve defaulted to PNG that I’m missing?

originalankur 5 hours ago | parent [-]

Valid Point @mft_ plt.savefig(output_file, format='svg', facecolor=THEME['bg']) should do it. I will add a --format parameter and make the change.

nycerrrrrrrrrr an hour ago | parent | prev | next [-]

Does anyone have recommendations for how to actually print a poster from images like these?

xnx 23 minutes ago | parent | next [-]

In the US, I've had good results with Staples

hirako2000 an hour ago | parent | prev [-]

A good print on demand that delivers ?

hyperific 4 hours ago | parent | prev | next [-]

Also check out prettymapp

https://prettymapp.streamlit.app/

croisillon an hour ago | parent [-]

and https://anvaka.github.io/city-roads

tomashubelbauer 4 hours ago | parent | prev | next [-]

Three random themes for anyone who's Czech or likes Prague and doesn't want to set up the script locally: https://imgur.com/a/Ovg8mDW

xixixao 3 hours ago | parent | next [-]

What’s up with the Zizkovska tower highlight?

originalankur 4 hours ago | parent | prev [-]

Looks beautiful. The gold+dark color does justice.

tianqi 5 hours ago | parent | prev | next [-]

That's splendid. I've long wanted to make a jigsaw puzzle out of Sydney's road map, so I can familiarise myself with the layout of roads while having fun. That way I can reduce my reliance on nav app and become one of those old-school drivers.

bobnamob 5 hours ago | parent [-]

There's a reason Where 2 -> Google Maps happened in Sydney. The sheer number of one-way roads combined with the imposition of the harbour and the messy tunnel system make internalising Sydney navigation a life-long endeavour

m-hodges 2 hours ago | parent | prev | next [-]

Etsy sellers devastated

Kwpolska 3 hours ago | parent | prev | next [-]

Pretty cool! It would be great if there was a way to set coordinates manually, since Nominatim can sometimes produce mediocre results. Also, would be nice to have a way to render the same map in all themes, not just one.

7777777phil an hour ago | parent | prev | next [-]

Very cool, thanks for sharing!!

simonebrunozzi 5 hours ago | parent | prev | next [-]

The map of Venice seems to be the only one whose image is "squeezed" horizontally. Wondering why.

originalankur 5 hours ago | parent [-]

need to take into consideration the length and width of the city and choose distance appropriately. I haven't followed my own suggestion here - https://github.com/originalankur/maptoposter?tab=readme-ov-f... will fix.

hehe23 4 hours ago | parent [-]

Hi! I generated a map as well, but indeed, the map is squeezed horizontally. I have here a screenshot from a map and the poster: https://photos.diffop.be/apps/photos/public/h6JKMJImLZCXutcT...

I have tried adjusting -d, but it only affects the scale.

Here is the command I used: python create_map_poster.py --city Leuven --country Belgium --distance 4000 --theme sunset

emaro 5 hours ago | parent | prev | next [-]

I tried it in a python3 venv, but the download data step is stuck at 0% unfortunately.

NoboruWataya 43 minutes ago | parent | next [-]

The bar only updates once that entire step is complete (ie, if step 1 of 3 is downloading roads, it won't tell you what % of roads have been downloaded, but rather it will remain at 0% until all roads are downloaded at which point it will jump to 33%).

originalankur 5 hours ago | parent | prev [-]

It will work, give it time. Also default distance is 29000. Give distance of 10000 to see faster results. It certainly is working as many users have generated maps.

originalankur 5 hours ago | parent [-]

Also note that as per their terms and conditions I need to give a user agent, so multiple users will be sharing same user agent right now.

stephenlf 3 hours ago | parent | prev | next [-]

This repo is fantastic. The README should be the gold standard for OSS. Not to mention how stunning the outputs are. Thanks for sharing.

doophus 5 hours ago | parent | prev | next [-]

Why are big chunks of Sam Francisco missing (eg around the bridge) missing from the example?

Sajarin 5 hours ago | parent | next [-]

Those smooth chunks are all (mostly) public park land. Known as Presidio and part of the Golden Gate National Recreation Area.

originalankur 5 hours ago | parent [-]

You know your city.

originalankur 5 hours ago | parent | prev [-]

python create_map_poster.py -c "San Francisco" -C "USA" -t sunset -d 10000

-d should be approx. 10k to 14k given the size of the city. You can give it a shot.

arnavpraneet 2 hours ago | parent | prev | next [-]

what are the blue dots? (not water bodies i think?)

cinntaile 5 hours ago | parent | prev | next [-]

It says there are examples but I can't see them?

originalankur 5 hours ago | parent [-]

Please check on desktop, the table is hiding images in responsive mode - You can see the images on X here https://x.com/getpy/status/2009255303775174684

cinntaile 5 hours ago | parent [-]

Thanks, I didn't notice there was another column that I could sidescroll to!

giuliomagnifico 6 hours ago | parent | prev [-]

Nice! Thanks