As of mapnik commit 14700dba16146902ca98fdcacb72b2fba4fa596a,
using 'import mapnik2' raises a DeprecationWarning.
See https://github.com/mapnik/mapnik/issues/941 for details.
Update imports of the mapnik module to use 'import mapnik' and assert
that the installed version is new enough.
We need mapnik 2.1.0 (or at least a version newer than 2.0.0
that supports placement-type="simple") for the Printable Stylesheet,
as per David's suggestion. Thomas pointed out that having the note
in all files was overkill, this patch takes that into account.
Also update INSTALL with instructions on how to build Mapnik from Git
and which specifically tested commit to use if the latest version
doesn't work.
CC: thomas.petazzoni@enix.org
CC: dmentre@linux-france.org
CC: maxime.petazzoni@bulix.org
Tested-by: Jeroen van Rijn <jvrnix@gmail.com>
Signed-off-by: Jeroen van Rijn <jvrnix@gmail.com>
* get the right bounding box
* create the overview canvas
* draw the map and the appropriate shade
* draw boxes for each pages (OverwiewGrid)
* add the overview to the list of pages to be rendered
Signed-off-by: Étienne Loks <etienne.loks@peacefrogs.net>
So far, it only outputs the map, split on several pages, with no grid,
no index, no page number. Only the raw maps.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@enix.org>
There are 2 kinds of problems with scaling:
- the rendering has some bugs (position of arrows, text halo)
- the rendered sizes (font size, road width) do not match the ones specified
in the stylesheet
Signed-off-by: Gael UTARD <gael.utard@kisis.fr>
Note:
On my setup, Chinese characters are not rendered correctly (boxes).
Tested:
- CLI frontend
- maposmatic Web
Revised-by: David Decotigny <d2@maposmatic.org>
Reviewed-by: Maxime Petazzoni <maxime.petazzoni@bulix.org>
Signed-off-by: David Decotigny <d2@maposmatic.org>
New maplib (map creation routines), indexlib (index creation routines)
and layoutlib (page layout & rendering) structure. Besides moving
files around, a new layoutlib.commons module has been create to host
the mm to/from pt conversion routines.