You are not logged in.

Announcement

*** NOTICE: forum.openstreetmap.org is being retired. Please request a category for your community in the new ones as soon as possible using this process, which will allow you to propose your community moderators.
Please create new topics on the new site at community.openstreetmap.org. We expect the migration of data will take a few weeks, you can follow its progress here.***

#1 2011-06-11 17:32:57

GeoHarry
Member
Registered: 2011-06-11
Posts: 1

osm 2 pdf tool?

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

Offline

#2 2011-06-12 12:14:32

MikeN
Member
Registered: 2009-09-03
Posts: 328

Re: osm 2 pdf tool?

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.

Offline

#3 2011-06-13 19:27:20

stephan75
Member
Registered: 2008-05-28
Posts: 2,918

Re: osm 2 pdf tool?

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?

Offline

#4 2011-06-14 23:10:51

JRA
Member
Registered: 2007-12-17
Posts: 677

Re: osm 2 pdf tool?

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:

http://188.64.1.61/cgi-bin/mapserv?map= … 67&STYLES=

The same request as PDF.  Save it on a disk, zoom in and look at the texts and building outlines.

http://188.64.1.61/cgi-bin/mapserv?map= … 67&STYLES=

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.

http://188.64.1.61/cgi-bin/mapserv?map= … 67&STYLES=

No cached tiles, actually no tiles at all, and OpenLayers nor web Mercator projection.

Offline

Board footer

Powered by FluxBB