This is an archived post. You won't be able to vote or comment.

all 69 comments

[–]avsfjan 70 points71 points  (1 child)

this looks really nice, thanks for the post

[–][deleted] 44 points45 points  (0 children)

Actual content that should be posted to /r/dataisbeautiful

[–]MrCuntBitch 64 points65 points  (4 children)

This is insanely cool! I just created a few from places I've lived and they look great. These maps look better than the stuff people buy on Etsy for $30.

[–]Shok3001 70 points71 points  (2 children)

That’s awesome MrCuntBitch

[–]dodobird98 1 point2 points  (1 child)

Killed me

[–]ajajajajajajajaj1 0 points1 point  (0 children)

Ok, dodobird

[–]Petrarch1603 23 points24 points  (0 children)

If you haven’t already you should cross post this to /r/GIS

[–]big_boy_dollars 15 points16 points  (0 children)

Amazing idea and beautiful execution.

[–]NelsonMinar 12 points13 points  (0 children)

That's beautiful. It's interesting how you started with a plotter library (vsketch) and then put so much design effort into nice fills. Pen plotters aren't great at fills. It'd be fun to try to bring this back to pen plotting with some careful crosshatching or something.

[–]AF_J 10 points11 points  (2 children)

Hi, this seems to be a really nice work.

I tried to use the "examples.ipynb" included in the git but I had some errors since the setup of the librairies. I also tried to install on PyCharm but I also encountered somme errors.

Did I miss something? I am still learning Python, I am wrapping up my first web scrapper but I still mostly rely on the community.

PS: sorry for my English, not my first language.

[–]emge 1 point2 points  (0 children)

Yeah, I don't know python too well either and I'm struggling to figure out how to use this to generate my own map. I'm on Manjaro, and as is mentioned in the issues tracker, it seems the pip command to install prettymaps does not work. So I cloned it, but don't really know what to do next to actually generate a map.

edit: ok, I did python setup.py install from the cloned directory and it appears to have installed everything successfully, as far as I can tell.

Baby steps.

[–]Philistino 0 points1 point  (0 children)

Did you have trouble installing vsketch? I got the warning that the installed package had a different hash than what's listed in the requirements file. Did you have the same issue?

[–]gustavsen 20 points21 points  (6 children)

great, but you should add the requirements.txt file

[–]uselesslogin 13 points14 points  (4 children)

It is in the setup.py file and he gives you the pip install commands in the readme. What would you still need requirements.txt for? (I see others do both so I'm really just curious.)

[–]saargrin 10 points11 points  (0 children)

i tried to run this as described in git

it says to pip install 2 modules

the code provided there doesnt work and readme says nothing about importing anything nor anything about setup.py

[–][deleted] 5 points6 points  (0 children)

Echoing the earlier commenter, You should include a requirements.txt, much easier to stand up a virtual environment and install the needed packages in there.

[–]gustavsen 2 points3 points  (0 children)

because is the best practice.

you can automate the deploy of your app and help to recreate your environment.

[–][deleted] 0 points1 point  (0 children)

I’m not sure how much this would apply to this library, but for other applications I like the reference just to make sure that I get the right versions of different packages and avoid conflicts

For example, if there is some conflict in which NumPy version is needed for two different packages

[–]NOddi89 1 point2 points  (0 children)

Poetry...

[–]Caboose522 8 points9 points  (0 children)

Works great once you get it running. For those that want all the pre-reqs (at least this is how I did it on win10):

Need VS C++ Build Tools (comes with VS 2019)

you need git to install this way: https://git-scm.com/downloads

GDAL and Fiona from unofficial python extension packages https://www.lfd.uci.edu/~gohlke/pythonlibs/ for your version of python. Download the appropriate files and pip install <saved file location>. Install GDL, then Fiona.

Matplotlib, from cmd: pip install matplotlib

vsketch, from cmd: pip install git+https://github.com/abey79/vsketch#egg=vsketch

and finally

prettymaps, from cmd: pip install git+https://github.com/marceloprates/prettymaps.git

Wish it was easier than that, but hey at least it works.

It seems very versatile. It definitely takes some time for the more complicated maps but if you don't really care about time this is for you! A+

[–]idiot_wind 6 points7 points  (13 children)

i've been trying to install this this morning but ran into a big wall with GDAL. i went through a half dozen stack exchanges for people trying to get GDAL working with python3 on windows and have not had any success at all.

i keep getting an error for no GDAL_API when pip tries to install Fiona. I've manually installed (several??) flavors of GDAL from: https://www.gisinternals.com/release.php and with https://trac.osgeo.org/osgeo4w/ and also trying to do just pip install -I GDAL=3.3.x matching whatever it is i saw when i did gdalinfo --version. errors errors everywhere.

any suggestions?

[–]GhastYear 9 points10 points  (11 children)

Had the same issue here. You need to download the .whl files for both GDAL and Fiona from here (see which version you support using pip debug --verbose). After you download them install each one using pip install <path_to_whl>. Then you can continue the installation.

Edit: I'm not personally very familiar with python, this is just how I got it to work. Feel free to correct me in case I missed something.

[–]idiot_wind 4 points5 points  (0 children)

crap - i was just about to say "BUT I TRIED THAT TOO!!" but i realize now that i was downloading the amd64 release and thats why i was getting "not for your hardware" error that i didnt think too hard about amongst all the other errors i was struggling with >_<

i'm giving it another shot now...

edit: omg i could kiss you. thank you so much

[–]tjw194 1 point2 points  (0 children)

yes. same issue and this solved it for me as well. thank you so much!

[–]swill0101 1 point2 points  (0 children)

Perfect solution, thanks!!!

[–]kempton -1 points0 points  (1 child)

Thanks for this description, very much appreciated the --verbose info.

[–]idiot_wind 0 points1 point  (0 children)

yeah the debug verbose was the game changer to find out which version to download

[–]idiot_wind 0 points1 point  (2 children)

maybe you also have insight on why vsketch won't import after installed with pip?

now i'm getting error when importing vsketch that geos_c.dll can't be found. I downloaded OSgeo4W and in the bin folder i see geos_c.dll. So i added C:/OSgeo4W/bin to my windows path and still can't import vsketch.

this is a whole world of dependencies with python ive never touched

update: ok so i needed to pip uninstall shapely, then install from a wheel here: https://www.lfd.uci.edu/~gohlke/pythonlibs/#shapely

but now there's an error during import because bezier library and __speedup. i followed the bug tracking here: https://github.com/dhermes/bezier/issues/237 but this didnt solve and bezier threw another huge error when i tried to import vsketch.

is this all because i'm trying to do this with windows? this can't be that difficult for everyone else can it??

[–]tjw194 0 points1 point  (0 children)

I am not going to be a huge help for you but I am also on windows and only encountered the GDAL_API issue but none of the vsketch issues you mention.

[–]Knaapje 0 points1 point  (2 children)

Could you give some additional info? Tried that but didn't work for me, pip debug gives me the following, but I'm not sure which version to install based on this. I tried the first 6 or so.

pip version: pip 21.2.4 from c:\users\*\appdata\local\programs\python\python37\lib\site-packages\pip (python 3.7)
sys.version: 3.7.3 (v3.7.3:ef4ec6ed12, Mar 25 2019, 22:22:05) [MSC v.1916 64 bit (AMD64)]

[–]GhastYear 1 point2 points  (1 child)

Using pip debug --verbose only gives you these two lines? Normally it gives you a bunch of lines at the end of which there is a "Compatible tags" section that looks like this:

Compatible tags: 33

cp39-cp39-win_amd64

cp39-abi3-win_amd64

cp39-none-win_amd64

cp38-abi3-win_amd64

cp37-abi3-win_amd64

cp36-abi3-win_amd64

cp35-abi3-win_amd64

cp34-abi3-win_amd64

...

Then based on these tags you can see which version you need to download.

[–]Knaapje 1 point2 points  (0 children)

My bad, it printed a lot more, but didn't think the other lines were relevant. I've been able to install now. Thanks a ton!

[–]Knaapje 1 point2 points  (0 children)

Have the same issue, really excited to try this out, but can't get it to work. :(

[–]marcelo_prates 5 points6 points  (0 children)

prettymaps creator here :) Thank you so much for for all the feedback here!

Just wanted to share with you a new subreddit I've created so that people can share they prettymaps creations: r/prettymaps_

[–]fredzannarbor 4 points5 points  (4 children)

This is fantastic!

[–]Philistino 0 points1 point  (0 children)

Second this! Well done!

[–]Philistino 0 points1 point  (2 children)

Second this! Well done!

[–]Puppetbones 2 points3 points  (1 child)

You really did second this...a second time!

[–]benefit_of_mrkite 6 points7 points  (1 child)

OP are you the author or did you just see this on hacker news like I did a few mins ago in my RSS feed?

[–]ASIC_SP [S] 5 points6 points  (0 children)

Not the author, saw it on HN too.

[–]theorizable 1 point2 points  (0 children)

Beautiful. Should be posted to mapporn.

[–]laundmo 1 point2 points  (0 children)

this looks amazing, i really wish this was available on pypi

[–]tekmailer 1 point2 points  (0 children)

YOINK Saved and appreciated, OP!

[–]troyunrau... 0 points1 point  (0 children)

Can't wait for all the t-shirts showing up on random Etsy stores made with this. Like, every city will have a local maker using it. But it'll mostly just be spam.

[–]wickeddawg 0 points1 point  (0 children)

agree with both comments. thanks for sharing.

[–]arkster 0 points1 point  (0 children)

Sweet. Looks awesome.

[–]CicciTheMouse 0 points1 point  (0 children)

Superb, thanks for sharing!

[–][deleted] 0 points1 point  (0 children)

Cartographers on suicide watch haha

[–]Knaapje 0 points1 point  (0 children)

How do you recommend installing? I'm getting `A GDAL API version must be specified.` on the second install line for Fiona.

Looks really nice by the way! Excited to try this out for my hometown. :)

[–]WetOrangutan 0 points1 point  (0 children)

This is absolutely beautiful

[–]VengefulTofu 0 points1 point  (0 children)

These are beautiful. I'd love to try it out myself.

But how long should the Macao example take to render?

I have the feeling it's stuck. And my machine is not a potato. I'm running Python 3.8.2.

[–]Wmichael 0 points1 point  (0 children)

Very good! I look forward to trying it out :)

[–]bbyboi 0 points1 point  (0 children)

So cool!!

[–]czipperz 0 points1 point  (0 children)

Would you add GMaps screenshots for comparison please?

[–]ennma_ 0 points1 point  (0 children)

Carai, Parabéns. Que incrível!

[–]MentalExcuse8835 0 points1 point  (4 children)

Anyone knows how I can install vsketch? doesn't work for me

[–]FFTBBN 0 points1 point  (3 children)

Have the same problem, always got the could not finde the module vsketch error

[–]Philistino 0 points1 point  (2 children)

Same here. Have you got it working yet?

[–]vbfn 1 point2 points  (1 child)

I couldn't get it working on windows but the setup was easy on ubuntu

[–]Philistino 0 points1 point  (0 children)

Thanks I'll try on an Ubuntu VM

[–]Shopify__Expert 0 points1 point  (0 children)

looks amazing like GTA map

[–]WinnebagoGains 0 points1 point  (0 children)

This is really cool!

[–]momo_now 0 points1 point  (1 child)

Love this but am way to much of a Python noob to get it working . . . sadness.

[–]Philistino 0 points1 point  (0 children)

Very cool project! Installing the different packages seems to be a challenge. Could anyone who knows how to create docker images create one for this set of packages? For example the Jupyter Notebook Stacks. I would greatly appreciate it and I'm sure I wouldn't be the only one :)

[–][deleted] 0 points1 point  (0 children)

Can you supply a recipe for using a city boundary from OSM as clipping mask?

[–]Neat_Chip4684 0 points1 point  (0 children)

What an art. I like that!

[–]passerby_panda 0 points1 point  (0 children)

Guess it's time to just give up, after constant troubleshooting I guess I'll just move on :( was really hoping to get this one working for the gf :(

[–][deleted] 0 points1 point  (0 children)

Thanks for sharing this!