Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Loading mapnik stylesheets #67

Open
roelderickx opened this issue Oct 14, 2019 · 0 comments
Open

Loading mapnik stylesheets #67

roelderickx opened this issue Oct 14, 2019 · 0 comments

Comments

@roelderickx
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant