Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I am having weird problem with adding .svg to qgis print composer. I have done some smaller symbols before in inkscape and they work - however the latest one displayed itself as huge black square.

I -did- find a very round about way of making it work, but I havent slightest idea why it works like this: First I saved the .svg in Inkscape as pdf file, then used http://www.online-convert.com/ to convert the .pdf back to .svg ....and after this QGIS displays it fine in print composer.

Does anyone have any idea why this happens? I have added the working and original not working .svg's as uploads, if someone wants to try it out.

http://speedy.sh/XGMWs/Svg-example.zip

share|improve this question
    
is it a case that you just need to refresh the window for it to display. how does it look when you print of write to pdf? –  Gerald Jan 25 '13 at 16:20
add comment

1 Answer 1

up vote 1 down vote accepted

I got it working. It seems print composer does not like .svg's with text. I used inkscape "object to path" -function on both text's I had on the original .svg and now it displays properly. I also tested this on another .svg with text: It didnt display in print composer, until I used the same "Object to path" to change the texts into paths

Correction - I thought, I got it working, but now its broken again. Been 14h at work, Ill get back to this after weekend..

share|improve this answer
    
I am not sure what was the problem - I did they .svg again from the scratch in inkscape, turned the text into path and everything worked just fine. Suppose I had some bit of text or something in the file and just didnt notice it? Anyway, it seems the .svg's work in qgis as long as you dont have any text fields there. –  iippo Feb 6 '13 at 7:37
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.