Nik4
Nik4 copied to clipboard
Mapnik to image export
Executing `nik4.py --fit route --padding 30 --add-layers route,stops --vars route=/path/to/route.json --ppi 100 -a +4 /path/to/osm.xml -` outputs the following traceback: ``` Traceback (most recent call last): File "/path/to/nik4.py", line 677,...
When inputing both ppi and scale_factor, scale_factor is overwritten. The "zoom-level" used (which is passed to mapnik through the scale_factor) seems to not be changeable at a given dpi and...
This pull request add some basic unit test for the calculation of the map size, bounding box, scale etc. based on the command line arguments. The unit tests are not...
Hi, I don't get how zoom level is computed. I would have expected ``` python ./nik4.py --dpi 600 -a 4 --fit route --add-layers route ../cyclosm-cartocss-style/mapnik.xml a4.png --vars gpxroute=/tmp/route.gpx ``` and...
Hi, When fitting a route, a typical use case I have for padding is to include "as much X kilometers along the route". What about providing an alternative padding option...
Hi, First of all, thanks a lot for this wonderful tool which is, so far, the best tool I know to export maps for print! In particular, I'm a huge...
The usage of the tiles option (e.g. --tiles 2) leads to rendering artefacts. If the aim is to create one large image (e.g. 25000x25000 pixels) the tiles option isn't necessary...
The code which calculates the bounding box, scale, scale factor etc. has become quite long and it is likely to break something if you fix/add something different. @Zverik moved it...
Hi and thanks very much for taking the time to create this useful script. In Great Britain, Ordnance Survey maps (used by many hikers etc.) use the British National Grid...
Can someone please explain why some chars in the vars-parameters are replaced by nik4 (line 157)? This way Postgresql throws an error, because the single quotes in the given sql-fragment...