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

Can't get access to the svg renderer #65

Open
djakk opened this issue Feb 3, 2016 · 1 comment
Open

Can't get access to the svg renderer #65

djakk opened this issue Feb 3, 2016 · 1 comment

Comments

@djakk
Copy link

djakk commented Feb 3, 2016

Despite I've compiled mapnik with SVG_RENDERER = True in the file config.py, I can't get access to the svg renderer : in python, mapnik.has_svg_renderer() returns False, an im.save('bug.svg') throws RuntimeError: unknown file type: svg and a mapnik.render_to_file(m, "image.svg") throws RuntimeError: Cairo backend not available, cannot write to format: svg.
mapnik-config --cflags does return -DSVG_RENDERER.

@djakk
Copy link
Author

djakk commented Feb 4, 2016

I made a mistake, I was building python-mapnik without removing the build/ directory. Now, mapnik.has_svg_renderer() returns True BUT I still get RuntimeError when I try to export a map in svg …

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