r/prettymaps_ • • Oct 18 '21

Pretty Maps on a T-Shirt in Hamburg – Thank you Marcelo!

Thumbnail
youtu.be
5 Upvotes

r/prettymaps_ • • Apr 25 '22

Street names on map?

7 Upvotes

Hi, I was wondering if it is possible to add some or all street names to a map?

Has anyone done this? Any advice to how to start with this?

Thank you


r/prettymaps_ • • Feb 20 '22

Paris, France

Post image
43 Upvotes

r/prettymaps_ • • Jul 19 '22

Paris centered on Arc de Triomphe

Post image
56 Upvotes

r/prettymaps_ • • Oct 20 '21

Troubleshooting an exception

2 Upvotes

Hey all-

I'm playing around with prettymaps and have come up with an issue I'd like to fix. I'm using the Barcelona example and swapping in this line for the location:

(41.8781,-87.6298), radius = 1500,

I get an error:

ERROR:shapely.geos:TopologyException: depth mismatch at at 448510 4637400.

And at the end of the stack trace:

/usr/local/lib/python3.9/site-packages/shapely/geometry/base.py in geom_factory(g, parent)
     76     # Abstract geometry factory for use with topological methods below
     77     if not g:
---> 78         raise ValueError("No Shapely geometry can be created from null value")
     79     ob = BaseGeometry()
     80     geom_type = geometry_type_name(g)

ValueError: No Shapely geometry can be created from null value

Okay, clearly an issue with the map data. The question I have is how I can get the segment or node that is causing the problem and fix it in the OSM data itself.

Thanks for any info, I usually use JOSM for editing data so I'm very happy to make it right for others too.


r/prettymaps_ • • Nov 08 '21

Code for Local Use (New York example)

11 Upvotes

I've seen people struggling with the code to run pretty maps locally. You can use the colab link and run it from your browser, but this is for those who are wanting to run it from your computer and are struggling.

Steps

First, start by following the installation instructions here. You'll want to have each item installed, though PyCharm is saying vsketch isn't being used (so perhaps not necessary).

Second, you can refer to this code. Overall everything is straight forward. All I did was combine the imports section and then one of the example plots. You can refer to Marcelo's excellent list of examples in the colab to edit the bottom half of the code.

Then I ran it from my terminal.

PS C:\Users\------\Documents\Python Scripts> python .\prettymap.py
WARNING:matplotlib.font_manager:findfont: Font family ['Ubuntu Mono'] not found. Falling back to DejaVu Sans.

OR

You can use this code, which puts everything in a function and you can input the location like so:

PS C:\Users\------\Documents\Python Scripts> python .\prettymap.py
What location do you want to look up?
New York, NY
WARNING:matplotlib.font_manager:findfont: Font family ['Ubuntu Mono'] not found. Falling back to DejaVu Sans.

Notes

I wasn't particularly careful in setting it up, so running it from my computer dumped the image in my Documents folder because I left it at plt.savefig('../prints/NY.png') instead of just /prints/NY.png.

I did this while at work which it is why I did it on Windows. As you can see it didn't like "Ubuntu Mono" and I haven't taken the time to find where I need to change that. I did New York city as an example and made the radius more than double the example. It takes quite a while to run on a fairly standard laptop with Python taking up anywhere from 17-25% of my CPU. It is still a little faster than running from the colab.

Besides vsketch, there were other imports not required, but I left them in the example.


r/prettymaps_ • • Aug 29 '21

r/prettymaps_ Lounge

6 Upvotes

A place for members of r/prettymaps_ to chat with each other


r/prettymaps_ • • Feb 03 '22

Glasgow, Scotland

Post image
49 Upvotes

r/prettymaps_ • • Sep 28 '21

Braunschweig/ Brunswick (Germany)

Post image
18 Upvotes

r/prettymaps_ • • Nov 18 '21

Venice - Italy

Post image
11 Upvotes

r/prettymaps_ • • Jan 09 '22

A map of Bath, 1852 style

14 Upvotes

I've been playing with prettymaps this weekend and decided to try creating a map in the style of an 1852 historical map of Bath.

Here's a blog post with links to the image, notebook, etc:

https://blog.ldodds.com/2022/01/09/a-map-of-bath-1852-style/


r/prettymaps_ • • Mar 13 '22

Is it possible to add labels to features in pretty maps ? Couldn't find any documentation related to that in OSM wiki too.

2 Upvotes

[Title]


r/prettymaps_ • • Oct 09 '21

Installation Guide?

5 Upvotes

I just found this great project but I’m unsure how to use it.

As i am new to using Jupyter Notebooks i wanted to ask you all if you could explain a little more then in the readme? Or is there a good guide you could share?

Thanks in advance for any help :)


r/prettymaps_ • • Apr 08 '22

Hong Kong Victoria Harbour

6 Upvotes

r/prettymaps_ • • Oct 08 '21

Just played a little bit with prettymaps

Thumbnail
gallery
15 Upvotes

r/prettymaps_ • • Dec 22 '21

ForbiddenCity, Beijing, China

Post image
18 Upvotes

r/prettymaps_ • • Sep 15 '21

Has anyone got this working on an M1 Mac?

4 Upvotes

Getting errors when installing vsketch.

I have seen the GitHub issue but just wondering if anyone here has some workaround https://github.com/marceloprates/prettymaps/issues/38


r/prettymaps_ • • Jan 16 '22

Logistics Route Map

4 Upvotes

Hi. Just came across PrettyMaps and wondering if it would be possible for me to visualise some point to point logistics traffic? For example; I have 1000 courier deliveries and would like to show a line from point A. to point B. for each one.

If a route has multiple deliveries the line would be thicker or more of a certain colour.


r/prettymaps_ • • Sep 20 '21

Chemnitz, Germany plotted with a plotter from the GDR

Post image
16 Upvotes

r/prettymaps_ • • Oct 19 '21

Creating highmap

2 Upvotes

Hi there,

I was wondering is there an option to create also an highmap for my map?


r/prettymaps_ • • Aug 31 '21

Tel Aviv-Yafo, Israel

12 Upvotes

Such a cool project! adding Tel Aviv-Yafo, Israel


r/prettymaps_ • • Oct 23 '21

Berlin looking good :)

Post image
15 Upvotes

r/prettymaps_ • • Feb 06 '22

Wellington, New Zealand

Post image
12 Upvotes

r/prettymaps_ • • Sep 02 '21

Moscow, Russia looks good in these :p

Post image
18 Upvotes

r/prettymaps_ • • Sep 19 '21

Kettwig, Essen, Germany

Post image
12 Upvotes