-
Notifications
You must be signed in to change notification settings - Fork 51
Description
I am using mapnik to render tiles locally, but Landez fails to load the mapnik stylesheet. This is because strict mode is used, in sources.py:
# Load style XML
mapnik.load_map(self._mapnik, self.stylefile, True)
The last boolean parameter should be omitted, or at least configurable.
Background information: I am using openstreetmap-carto and the developers decided to add both Unifont Medium and unifont Medium to cover the capitalization differences on several systems. Also, I am missing some (mainly south-east asian character) fonts which are not really required for the maps I am rendering.
I am fine with a number of warnings related to the fonts but in strict mode I can't load the stylesheet at all. If this was introduced to avoid excessive logging by mapnik it may be better to disable logging with:
mapnik.logger.set_severity(getattr(mapnik.severity_type, 'None'))