Hi, I want to get the mapnik image or osmarender image given the bounding box, just like the export feature of openstreetmaps. I have an application that should automatically fetch that image given the box coordinates. Is that possible? How? If not, any suggestions? Thank you for reading, and of course answering my question. :D asked 30 Jul '11, 08:26 jplaras |
Getting a Mapnik image from the export tab means that the image has to be prepared from raw data especially for you; this is relatively expensive in terms of computing time and it is therefore not allowed to use that in any automated fashion. Check out the Wiki page Static map images for possible solutions to your problem. Many of the services listed there use pre-rendered tiles to create the map image and thus cause less load on the servers. answered 30 Jul '11, 10:11 Frederik Ramm ♦ |
For example the bigmap script allows you to get images of any size which are assembled from the standard tiles thereby not requiring extra rendering. Otherwise you would have to install your own rendering chain to render these maps on demand (with the advantage that you can apply any changes to the style hence controlling what and how is displayed). There are tools which create maps of custom size like nik2img.py for mapnik. Alternatives could be osmarender, maperitive or the recently released mapweaver. answered 30 Jul '11, 12:11 dieterdreist |