Integrate the main OCitySMap object to the layout renderers so it can
render maps. Renderers now work in typographic points.
Signed-off-by: Maxime Petazzoni <maxime.petazzoni@bulix.org>
After a compatible paper has been chosen, the geographic bounding box
requested for rendering (or the bounding box of the administrative
boundary requested) doesn't fill the paper entirely. The bounding box is
thus extented by Mapnik into a corrected bounding box, corresponding
exactly to what is rendered on the paper.
The bounding box used by the Grid object is also slightly expanded to
accomodate for the small imprecisions of the various projections, which
made the grid lines not fill the bounding box entirely.
Signed-off-by: Maxime Petazzoni <maxime.petazzoni@bulix.org>
Re-implement configuration file parsing to get access to the database.
The request timeout is now configurable in the 'datasource'
configuration section as 'request_timeout'. It defaults to 15 minutes.
Re-integrate the i18n and languages support.
Re-implement the map grid support. From the corrected geographical
bounding box, the Grid object can generate an ESRI Shapefile with the
grid lines. The grid size automatically adjusts to lower sizes if the
bounding box is smaller.
Stub implementation of the StreetIndex object that will handle data
gathering, outputting as CSV and rendering into a given surface.
Signed-off-by: Maxime Petazzoni <maxime.petazzoni@bulix.org>
This new OCitySMap version aims at providing a more print-oriented
map rendering engine.
Its main features include being aware of paper sizes and constraints,
but also providing different "renderers" implementing rendering layouts
for the maps. For now, only the PlainRenderer which renderers a
full-page map is implemented, but renderers that also generate an index
will be available.
The main idea is that we no longer generate a separate index. The
generated map includes (or not) an index depending on the rendering
layout used to render it.
Finally, each renderer is able to tell which paper sizes are compatible
with the bounding box from a "geographic" resolution.
Signed-off-by: Maxime Petazzoni <maxime.petazzoni@bulix.org>