Wykres commitów

13 Commity (13615f7eaa0c7b830e4c82534ec472721ec49158)

Autor SHA1 Wiadomość Data
Jeroen van Rijn 61dca51842 Mapnik 2.1: update INSTALL and get rid of DeprecationWarning
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>
2012-04-10 20:31:09 +02:00
Gael UTARD e34791cd55 Remove dead code about zoom_level
Signed-off-by: Gael UTARD <gael.utard@kisis.fr>
2012-04-01 01:46:31 +02:00
Gael UTARD f5f6cd58ce Set grid size to 40 mm +/- 33%
Signed-off-by: Gael UTARD <gael.utard@kisis.fr>
2012-03-31 18:45:52 +02:00
Étienne Loks b4a619df3c fix comments, add copyright notice, multipage: fix page numbers 2012-03-31 15:47:05 +02:00
Étienne Loks 757ee41530 multi-page: add page number on overview page 2012-03-30 23:55:37 +02:00
Étienne Loks 181dc48d38 multi-page: some clean-up 2012-03-30 23:53:39 +02:00
Étienne Loks f2c1ed9bdc multi-page: fix pages box in the overview page 2012-03-30 23:53:38 +02:00
Étienne Loks 17298cd3fe Add an overview page in the multi-page renderer.
* 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>
2012-03-30 23:53:36 +02:00
Thomas Petazzoni 5dc89bfd58 Initial version of a multi-page renderer
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>
2012-03-30 13:04:20 +02:00
Gael UTARD bec711df89 Remove the scaling step from the rendering process
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>
2012-03-30 10:21:23 +02:00
David Decotigny c0a1a3889d support for next mapnik releases
with mapnik 2.0.0, import mapnik2 is required. But future versions
will only require "import mapnik". This patch anticipates this.
2012-02-18 11:56:29 -08:00
David MENTRE 79f9b5dd04 Add support for Mapnik2
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>
2012-02-18 10:20:37 -08:00
David Decotigny 04377283a9 Major reorganization, new maplib/indexlib/layoutlib hierarchy
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.
2010-09-11 12:31:08 +02:00