anvaka / city-roads

Visualization of all roads within any city
https://anvaka.github.io/city-roads/
MIT License
6k stars 443 forks source link

Provide a way to generate simplified versions #31

Open arthurlutz opened 4 years ago

arthurlutz commented 4 years ago

I'm trying to use the generated svg files of a city for a laser engraver and on some large(ish) cities the level of detail is to great. There are too many paths for the software to generate a path for the CNC or laser engraver. I'm trying to solve this problem in inkscape with the "Simplify path" functionality, but with limited success for now.

It would be awesome to be able to do this in the city-roads application, for example by asking on a selection of highways to take into account, maybe in some order of detail . This is probably similar to what is discussed in https://github.com/anvaka/city-roads/issues/20

Maybe some inspiration can be taken from the cartography css that already exists which a hierarchy of sized roads according to zoom level. Or the order of tags listed in https://wiki.openstreetmap.org/wiki/Key:highway

Anyway, thanks a lot for this awesome project ! I'll be sure to post some pictures of the laser cut work if I end up getting it to work with the help of the svgs generated by the application.

tinyenormous commented 1 year ago

Have you noticed the api option to filter out min line lengths? I'm sure that will help reduce line count, but potentially not to the level you are hoping for.