Thomas,<div><br></div><div>Wouldn't that be easier to take over to support libsvg-cairo and implement missing features inside (probably by adding that in mapserver svn, like we have already added the agg sources)?</div>
<div><br></div><div>Best regards,</div><div><br></div><div>Tamas</div><div><br></div><div><br><br><div class="gmail_quote">2013/7/25 thomas bonfort <span dir="ltr"><<a href="mailto:thomas.bonfort@gmail.com" target="_blank">thomas.bonfort@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Tamas,<br>
Unfortunately there are no existing other libraries that I know of<br>
that would fit our needs with reasonable effort.<br>
<br>
- agg has a primitive svg parser that SteveW and I extensively tested<br>
a year ago ( <a href="http://imaptools.com:8080/svg-test/index-agg-svg.html" target="_blank">http://imaptools.com:8080/svg-test/index-agg-svg.html</a> ,<br>
<a href="https://github.com/mapserver/mapserver/issues/4252" target="_blank">https://github.com/mapserver/mapserver/issues/4252</a> ). While the<br>
licence fits much better, it has some shortcomings by which some svg<br>
primitives aren't supported, and it would also imply that we'd need to<br>
rasterize svg symbols for our pdf and svg outputformats instead of<br>
including the native vector primitives.<br>
- we could roll our own SVG renderer based on a more liberal SVG<br>
parser. Aside from the fact that we'd need to find a parser that's as<br>
compliant and maintained as rsvg, this also requires substantial<br>
funding (i.e. if the GPL doesn't fit a distributor he has the option<br>
to fund an alternative, which is playing along the rules of gpl in the<br>
first place).<br>
<br>
regards,<br>
thomas<br>
<div class="HOEnZb"><div class="h5"><br>
On 25 July 2013 09:03, Tamas Szekeres <<a href="mailto:szekerest@gmail.com">szekerest@gmail.com</a>> wrote:<br>
> Thomas,<br>
><br>
> While I'm not sure about all technical details, but having librsvg licensed<br>
> with GPL is a bit discouraging. Not sure if all the distributors of<br>
> MapServer would want to change their licenses to GPL because of this.<br>
> Supporting both librsvg and libsvg-cairo in parallel seems to be a short<br>
> term approach only. If we don't think the libsvg-cairo will be supported,<br>
> that line will die shortly.<br>
><br>
> Don't we have other alternatives?<br>
><br>
> Best regards,<br>
><br>
> Tamas<br>
><br>
><br>
><br>
> 2013/7/24 thomas bonfort <<a href="mailto:thomas.bonfort@gmail.com">thomas.bonfort@gmail.com</a>><br>
>><br>
>> Devs,<br>
>><br>
>> While implementing svg symbology support, we made the choice to go<br>
>> with libsvg+libsvg-cairo for parsing and rendering of svg files, as<br>
>> those were the libraries that had the least dependencies. It turns out<br>
>> both those libraries are more or less abandonware, resulting in their<br>
>> absence from a number of distros, and an incompatibility with newer<br>
>> cairo apis.<br>
>><br>
>> Along with release 6.4, I propose to add an SVG symbol implementation<br>
>> based on librsvg [ <a href="https://wiki.gnome.org/LibRsvg" target="_blank">https://wiki.gnome.org/LibRsvg</a> ], with the<br>
>> following consequences:<br>
>><br>
>> - the user can decide at compile time wether to use libsvgcairo or librsvg<br>
>> - librsvg is maintained and present in distros, being a core component of<br>
>> gnome<br>
>> - librsvg has a number of dependencies, making its compilation/usage<br>
>> on non-standard platforms possibly problematic (c.f. previous point:<br>
>> but it is distributed by distros).<br>
>> - librsvg is GPL, with all that that might imply for people releasing<br>
>> mapserver binaries.<br>
>><br>
>> This seems like the only way out if we want to continue supporting SVG<br>
>> symbols in the longer run. I understand the limitations, however the<br>
>> user still has the option to fall back to the current situation with<br>
>> libsvg-cairo.<br>
>><br>
>> Jeff: concerning windows, all I can say is that librsvg support on<br>
>> windows can't be worse than that of libsvg-cairo.<br>
>><br>
>> I'm not sure this really warrants a vote, but here goes in case anyone<br>
>> wants to veto.<br>
>><br>
>> +1 for adding librsvg as an alternative to libsvg-cairo for rendering<br>
>> svg symbols.<br>
>><br>
>> best regards,<br>
>> thomas<br>
>> _______________________________________________<br>
>> mapserver-dev mailing list<br>
>> <a href="mailto:mapserver-dev@lists.osgeo.org">mapserver-dev@lists.osgeo.org</a><br>
>> <a href="http://lists.osgeo.org/mailman/listinfo/mapserver-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-dev</a><br>
><br>
><br>
</div></div></blockquote></div><br></div>