Open City Street Map (backend)
 
 
 
 
 
 
Go to file
Thomas Petazzoni 1869b9c5fd renderers: add a get_compatible_output_formats() method
The single page renderers can output PNG, SVGZ, PDF and CSV, but by
design, the multi page renderer can only output PDF and CSV. So we
introduce a get_compatible_output_formats() in the renderer class so
that users of OcitySMap2 can find out which formats are possible
depending on the choosen layout.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@enix.org>
2012-03-31 19:22:30 +02:00
images
locale
ocitysmap2 renderers: add a get_compatible_output_formats() method 2012-03-31 19:22:30 +02:00
stylesheet/maposmatic-printable printable stylesheet: remove house numbers 2012-03-31 16:39:32 +02:00
support
.gitignore Fix .gitignore after stylesheet renaming 2012-03-31 18:45:54 +02:00
AUTHORS
COPYING
I18N
INSTALL Rename "black-and-white" stylesheet into "maposmatic-printable" 2012-03-31 15:51:57 +02:00
README
i18n.py
ocitysmap2-render
ocitysmap2.conf-template
setup.py

README

Open City Street Map
--------------------

ocitysmap generates a city street map, using the OpenStreetMap project's data
and the MapNik map renderer. The generated maps are vector graphics images,
including a street index and city grid.

For example, for a simple Chevreuse rendering, run:

 ./ocitysmap2-render -t "Ceci n'est pas Paris" --osmid=-943886

Alternatively you may specify a bounding box rather than an OSM ID:

 ./ocitysmap2-render -t "Ceci n'est pas Paris" -b 48.7268,1.9946 48.6801,2.0742

This is useful when OpenStreetMap does not contain the administrative
boundary of the city you want to render. To determine the OSM ID
and/or the bounding box of cities from their name, please use the
nominatim service: http://nominatim.openstreetmap.org/

By default, the maps are generated in PDF format with the street index
at the bottom, with an additional CSV containing the street index. To
see the available options to change this behavior, please run:

  ./ocitysmap2-render --help

See INSTALL for installation instructions.

This code is under AGPLv3 (GNU Affero General Public License 3.0) except
the included OpenStreetMap logo under CC-BY-SA (Creative Common
Attribution-Share Alike) license.