Hi
Is there any function/class/tool that can help me to export a map from my webpage to pdf (or svg/jpg)?
thx
GeoHarry
Hi
Is there any function/class/tool that can help me to export a map from my webpage to pdf (or svg/jpg)?
thx
GeoHarry
For a general PDF map, there’s http://www.maposmatic.org/ . It works best for a small area.
To create an image file for other uses, see http://wiki.openstreetmap.org/wiki/Static_map_images . Keep in mind that if you need to download many tiles to create the larger image, that you may be blocked - see the tile usage policy.
also have a look at Merkaartor and maybe Maperitive … how do they produce PDF?
And what do you mean with “a map from my webpage”? are there mapnik tiles, or where does the map come from?
Hi,
Some WMS servers can output quite a good quality pdf files. Here are some examples. The Server is Mapserver 6.0 and data are OSM data, imported into PostGIS with osm2pgsql. These requests show only building and road layers and the map looks a bit odd but you should get an idea.
PNG output which shows the image on a browser:
The same request as PDF. Save it on a disk, zoom in and look at the texts and building outlines.
This one makes a geotiff file which includes an internal georeferencing info and therefore it opens automatically in a right place in GIS programs like QGis. OpenJUMP, MapInfo, ArcMap etc.
No cached tiles, actually no tiles at all, and OpenLayers nor web Mercator projection.