kopia lustrzana https://github.com/hholzgra/maposmatic/
37ab334d9a
This is the first step of the rewrite of the MapOSMatic rendering daemon. The long-term objective is to get a more flexible rendering daemon that would support the rendering of several jobs in parallel, and with an overall more Python-y and maintainable code. This first shot brings a completely new, simpler MapOSMatic daemon with the same level of functionality as the previous daemon in terms of serial rendering of the job queue. Three major changes happen here: 1. the bash-based wrapper script has been removed, in favor of a more clever Python wrapper. Cleaner, and more importantly more portable. The wrapper still needs a bit of configuration, and after the config.py-template has been tweaked into a valid config.py file, the daemon can be started by: .../scripts/wrapper.py scripts/daemon.py 2. the externalization of the rendering routine into a 'render' module. This module does not access the database - only the daemon does. The sole purpose of the render module is to encapsulate the rendering process and its errors+exceptions handling. It can also be used as a standalone, job-ID-based renderer: .../scripts/wrapper.py scripts/render.py <jobid> 3. the cleanup mechanism now runs in a separate thread, in the background. Signed-off-by: Maxime Petazzoni <maxime.petazzoni@bulix.org> |
||
---|---|---|
scripts | ||
support | ||
www | ||
.gitignore | ||
AUTHORS | ||
COPYING | ||
INSTALL | ||
README |
README
MapOSMatic is a web application to generate maps of cities or towns, including index of streets, from OpenStreetMap data. It is made of two components: * maposmatic, the web front-end. An application written using the Django framework allows to submit and visualize map rendering jobs. The rendering is done in the background by a daemon; * ocitysmap, the back-end that generates the map. It is available as a Python module, used both by the maposmatic daemon (above) and by a sample command line application. This source tree contains maposmatic, the web front-end. It is licensed under under GNU AGPLv3 (GNU Affero General Public License 3.0). Translation =========== The .po files are stored in www/locale/<locale>/LC_MESSAGES/. To generate or update a .po file, run: django-admin.py makemessages -l <locale>. Then, edit the .po file manually, or using a graphical tool such as poedit (available in the Debian/Ubuntu package of the same name). Once done, don't forget to compile the .po file into an .mo file using django-admin.py compilemessages.