PDF atlas

From OpenStreetMap Wiki
Jump to: navigation, search
Available languages — PDF atlas
Afrikaans Alemannisch aragonés asturianu azərbaycanca Bahasa Indonesia Bahasa Melayu Bân-lâm-gú Basa Jawa Baso Minangkabau bosanski brezhoneg català čeština dansk Deutsch eesti English español Esperanto estremeñu euskara français Frysk Gaeilge Gàidhlig galego Hausa hrvatski Igbo interlingua Interlingue isiXhosa isiZulu íslenska italiano Kiswahili Kreyòl ayisyen kréyòl gwadloupéyen kurdî latviešu Lëtzebuergesch lietuvių magyar Malagasy Malti Nederlands Nedersaksies norsk norsk nynorsk occitan Oromoo oʻzbekcha/ўзбекча Plattdüütsch polski português română shqip slovenčina slovenščina Soomaaliga suomi svenska Tiếng Việt Türkçe Vahcuengh vèneto Wolof Yorùbá Zazaki српски / srpski беларуская български қазақша македонски монгол русский тоҷикӣ українська Ελληνικά Հայերեն ქართული नेपाली मराठी हिन्दी অসমীয়া বাংলা ਪੰਜਾਬੀ ગુજરાતી ଓଡ଼ିଆ தமிழ் తెలుగు ಕನ್ನಡ മലയാളം සිංහල ไทย မြန်မာဘာသာ ລາວ ភាសាខ្មែរ ⵜⴰⵎⴰⵣⵉⵖⵜ አማርኛ 한국어 日本語 中文(简体)‎ 吴语 粵語 中文(繁體)‎ ייִדיש עברית اردو العربية پښتو سنڌي فارسی ދިވެހިބަސް
Print your own Free roadmaps

Introduction

A printable UK road atlas, created from OpenStreetMap data.

Download

At http://svn.openstreetmap.org/applications/rendering/pdf-atlas/

Running the program

Prerequisites: Requires the Perl programming language, and its PDF-API2 module (package libpdf-api2-perl in Debian/Ubuntu) to generate atlases. Requires Perl's XML::Parser module to use planet.osm files.

A shell script create.sh is included, which will download the data files and start an example rendering with the config file Config/config.txt.

If you really want you currently can also download the sources and config files like follows:

You will need certain configuration and data files in place:


All files are available as a ZIP [1] to give you the directory structure, although the latest copies of each file are on the wiki.

Run the program with

perl pdf-atlas.pl Config/config.txt

or simply

create.sh

TODO

High priority

  • Better filtering (motorways and primary roads only on the area maps)
  • Coastline filtering (remove from detail maps where it's so obviously in accurate)
  • City names
  • Those machine-readable bookmarks in PDF

Medium priority

  • Calculate the border for all maps to retrieve from all single maps.

With this the line in Config/config.txt: "Area: 52.0, 5.0, 20" would no longer be needed.

  • Index
  • Fix localisation (using Norwegian names as test data)
  • Ability to set paper size in configuration (e.g. to create A2 PDFs, or landscape orientation)

Low priority

  • Line widths and bordered lines
  • Text, points, and symbols (pub icons)
  • Distributable processing (e.g. creating each page individually and combining them later)
  • Truncate lines that are off the map, rather than relying on white borders to hide the overflow
  • Precalculate page numbers
  • Draw the grid letter/numbers over the streets, in a darker shade of blue

Bugs

  • Gamma setting is still optimised for Apple Mac
  • Planet.osm to text needs to recognise railways, waterways, etc.
  • draw the light blue grid under the streets, it should be nicer

Feature requests

  • Add your feature requests here

Prerequisites in Linux Distributions

Debian/Ubuntu

  • apt-get install libpdf-api2-perl libxml-parser-perl libfile-slurp-perl (these exist in Ubuntu Gutsy at least)

Gentoo Linux

  • emerge dev-perl/PDF-API2 dev-perl/File-Slurp dev-perl/libxml-perl