Skip to content

Loading mapnik stylesheets #67

@roelderickx

Description

@roelderickx

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'))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions