Bjoern, On 12/21/2017 09:40 PM, Bjoern Hassler wrote: > The idea would be to produce a PDF in the same way as manually going to > export, selecting format PDF, scale 1:2500 and dimensions 800x1000?
The current usage policies in https://operations.osmfoundation.org/policies/tiles/ say that "Calls to /cgi-bin/export may only be triggered by direct end-user action. (For example: “click here to export”.) The export call is an expensive (CPU+RAM) function to run and will frequently reject when server is under high load." so using a script to produce these PDFs would violate the policy except in rare circumstances where running the script is triggered by a user request. What you could do instead: * download and stitch tiles, convert to PDF; search for "OSM bigmap" for different implementations. * use the "staticmap" script on openstreetmap.de like this: http://staticmap.openstreetmap.de/staticmap.php?center=40,-50&zoom=2&size=500x350 Both will only give you standard resolution raster images. You could also try * https://maposmatic.osm-baustelle.de/ (a working fork of the discontinued MapOsMatic project, does PDFs) or the somewhat idiosyncratic but powerful * http://printmaps-osm.de:8080/ (Europe only, quarterly data updates, does PDFs in theory but currently only PNG works) or if you're on Windows or willing to use Mono, Maperitive can also generate PDFs for any region using data from Overpass, and it's scriptable (even headless). Of course, the canonical solution is "install your own postgres/mapnik/nik4.py and run it locally" ;) Bye Frederik -- Frederik Ramm ## eMail [email protected] ## N49°00'09" E008°23'33" _______________________________________________ dev mailing list [email protected] https://lists.openstreetmap.org/listinfo/dev

