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

SVG Symbols - I hit one svg file that doesn't work #4518

Closed
adube opened this issue Nov 6, 2012 · 7 comments
Closed

SVG Symbols - I hit one svg file that doesn't work #4518

adube opened this issue Nov 6, 2012 · 7 comments

Comments

@adube
Copy link

adube commented Nov 6, 2012

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:

http://127.0.0.1/cgi-bin/mapserv-6.2.0?map=/path/to/map.map

I already run a validator against my original .svg file. It found 1 error so I fixed it, but it still doesn't work.

http://validator.w3.org/dev/tests/

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.

@adube
Copy link
Author

adube commented Nov 6, 2012

Ha, didn't know you couldn't attach files to a github issue.

@tbonfort
Copy link
Member

tbonfort commented Nov 8, 2012

demilestoning, the chosen svg parser has some limitations that are out of mapserver's scope

@adube
Copy link
Author

adube commented Nov 8, 2012

Would it be possible to have any error logged when this occurs ?

@woodbri
Copy link

woodbri commented Nov 12, 2012

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.

http://imaptools.com:8080/svg-test/

@adube
Copy link
Author

adube commented Nov 12, 2012

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.

@woodbri
Copy link

woodbri commented Nov 12, 2012

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.

@tbonfort
Copy link
Member

closing now that we have librsvg as an alternative to libsvgcairo.

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

No branches or pull requests

3 participants