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 would like to add a custom table to a map layout created in QGIS. I would like a fair bit of control over the look of the table (borders, background colours of the cells, etc.), and it appears that the "Add Attribute Table" tool doesn't let you control those things. I tried created what I wanted in Excel, and saving as an image, but of course it's pixelated. I would like a vector-based solution if at all possible. Any thoughts?

I considered creating an .html table, and inserting that; is this the best method?

share|improve this question
    
Which QGIS version are you using? Adding a HTML table and also basic styling of attribute tables is possible in QGIS dev. –  Curlew Aug 13 '13 at 13:37
    
Sorry, forgot to mention that I am using QGIS 1.9.0-Master. I am aware that I can add .html (that's why I mentioned it) but was curious if there's a better/easier way. –  Darren Cope Aug 13 '13 at 15:41
    
Have you considered exporting the map elements to SVG and doing the customization in something like Inkscape? QGIS has a plugin that will export all your mapping elements, includin the set styles to an SVG file. You can have full control of the look in InkScape –  Ryan Garnett Aug 13 '13 at 18:55
    
@RyanGarnett; Yes, I have tried working in Inkscape, but for some reason it is just painfully slow on every computer I've ever used (including this one, which is quite well-equipped.) It just wasn't worth the frustration. Any good tips for SVG that make it actually usable? –  Darren Cope Aug 14 '13 at 15:03
    
Darren that is really strange. What OS are you using? I have used Inkscape on many Windows machines with great success. Its hard to give specific pointers without knowing all the things you are hoping to do. But the SimpleSVG plugin for QGIS really helps for the export. One thing that is critical is working in layers. That way you can visually turn off large layers, which may help the performance issues you are seeing. –  Ryan Garnett Aug 14 '13 at 15:20

1 Answer 1

If you will no longer touch the map, save for some texts probably, you can export as pdf, then open THAT in Inkscape. PDFs are much more manageable.

Exporting your table from Excel as pdf will also bring it in smoothly in Inkscape.

In a previous project, I had to meticulously layout, through Inkscape, a map with pointer labels in strategic spots of the map. I used SVG since I also needed to twist some text, change some coloration, coordinate opacities, tidily save everything into an exact paper size for integration in the report. For every inkscape project, I would have a layer called "white blocks" to cover-up the extra-renderings from the QGIS SVG output.

In Inkscape, your imagination is the limit!

share|improve this answer

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.