-
-
Notifications
You must be signed in to change notification settings - Fork 364
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
SVG Symbols - I hit one svg file that doesn't work #4518
Comments
|
Ha, didn't know you couldn't attach files to a github issue.
|
|
demilestoning, the chosen svg parser has some limitations that are out of mapserver's scope |
|
Would it be possible to have any error logged when this occurs ? |
|
Alexandre, I worked extensively on this issue with Thomas about 6 months ago. I collected and created a lot of svg symbols and here is my test page. the first column is the raw svg displayed via the browser, the 2nd column is that same svg rendered through mapserver. I have not updated mapserver for this page so it is still work off an old version. I'll try to update the today. BTW, Thomas put in a huge effort to get at the time to work on these issues. The test page initially only worked for about 10% of the images. I also had to edit a lot of the images. One thing I found is that if you something like InkScape editor and flatten the svg files you will have a much better chance of getting them to work. |
|
Thanks Stephen for the reply. This is really a great example page you've got there. Are they available for download by any chance ? I followed your suggestion and saved a copy of the buggy svg file as 'plain svg' (flatten) but in that particular case it didn't work. I understand the limitations and all the efforts required behind to make them work. Just wanted to point the issue and make sure you guys knew about it and you do so it's okay. Thanks again and this is really a nice feature. |
|
I Just updated the mapserver instance for that page to branch-6-2 so you might want to reload it if there are any particular images you want to check. |
|
closing now that we have librsvg as an alternative to libsvgcairo. |
While playing with SVG symbols, I hit one that doesn't work. MapServer doesn't render the symbol, nor throws any error or warning message about it. I used MapServer 6.2.0~rc1
The map.map mapfile reproduces the issue. Visit it at:
I already run a validator against my original .svg file. It found 1 error so I fixed it, but it still doesn't work.
If there could be any way to at least have an error message thrown somewhere from the svg libs that MapServer uses to render the svg symbols, if any, it would be nice.
I'll attach a testcase tarball in a few minutes.
The text was updated successfully, but these errors were encountered: