Wykres commitów

10 Commity (53735e28159d095049937ae824cb747da71a42bf)

Autor SHA1 Wiadomość Data
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 c4cf3307b8 Propose a default amongst compatible paper sizes
Signed-off-by: Gael UTARD <gael.utard@kisis.fr>
2012-04-01 01:45:29 +02:00
Thomas Petazzoni ca7e375130 ocitysmap2-render: reject unsupported output formats
Use the new get_compatible_output_formats() method to reject the
unsupported output formats depending on the selected rendering layout.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@enix.org>
2012-03-31 19:30:46 +02:00
Maxime Petazzoni eaff9ebfa4 Misc code style fixes
Signed-off-by: Maxime Petazzoni <maxime.petazzoni@bulix.org>
2012-02-18 17:21:52 -08:00
Maxime Petazzoni 45cfbfbf33 Configurable paper orientation in ocitysmap2-render (task #10749)
Add a --orientation={portrait,landscape} command-line flag to control
the paper orientation of the rendering with ocitysmap2-render.

Signed-off-by: Maxime Petazzoni <maxime.petazzoni@bulix.org>
2012-02-18 17:21:52 -08:00
David Decotigny c026a81ba6 Renamed --polygon-osmid cmdline option as --osmid 2010-10-11 10:13:14 +02:00
David Decotigny 6ecb283a8e Fix trivial error due to previous patch-cleanup 2010-10-10 16:30:00 +02:00
David Decotigny 093b95bcf6 Support for complex city envelopes
Some OSM Ids such as 365634 have several entries in the polygon/line
tables. The original maposmatic code crashed because it assumed only
one entry was in the DB, and the ocitysmap code only considered the
1st entry returned by postgis.

This patch allows to work on the union of all the areas returned by
the polygon and line tables.

It adds another dependency: shapely. This allows to call libgeos
functions from within python. This also calls for some code
refactoring (=> TODO): the coords et al. API should be replaced by the
plain shapelib API
(http://gispython.org/shapely/docs/1.2/manual.html).
2010-10-10 15:54:55 +02:00
David Decotigny d270ac53f7 Reorganized global layout managers
Split the renderers.py file info:
 - renderers.py: the layour registry
 - abstract_renderer: the ABC for a renderer
 - singe_page_renderer: 3 classes to render into a single page
2010-09-11 16:38:16 +02:00
David Decotigny a3286243a2 Command-line frontend.
Implemented ocitysmap2-render command-line frontend. Tested it on
Chevreuse (OSM ID -943886) with many possible cmdline option
combinations. Default layout is now map with index at bottom.
2010-09-11 15:14:03 +02:00