Add libRSVG as an alternative to libsvg-cairo #4715

wants to merge 13 commits into


None yet

1 participant


While implementing svg symbology support, we made the choice to go
with libsvg+libsvg-cairo for parsing and rendering of svg files, as
those were the libraries that had the least dependencies. It turns out
both those libraries are more or less abandonware, resulting in their
absence from a number of distros, and an incompatibility with newer
cairo apis.

Along with release 6.4, I propose to add an SVG symbol implementation
based on librsvg [ ], with the
following consequences:

  • the user can decide at compile time wether to use libsvgcairo or librsvg
  • librsvg is maintained and present in distros, being a core component of gnome
  • librsvg has a number of dependencies, making its compilation/usage
    on non-standard platforms possibly problematic (c.f. previous point:
    but it is distributed by distros).
  • librsvg is GPL, with all that that might imply for people releasing
    mapserver binaries.

This seems like the only way out if we want to continue supporting SVG
symbols in the longer run. I understand the limitations, however the
user still has the option to fall back to the current situation with

@tbonfort tbonfort was assigned Jul 25, 2013

rebased and applied to master in 731178b, closing

@tbonfort tbonfort closed this Jul 27, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment