2

I am currently working on a landscape inventory in QGIS. I need to create a report based on the data we collected, as a pdf. The usual way in our group would be doing everything by hand. I figured out that using the atlas feature, I can create maps for each object, which I could use in a Word serial print. I can also export the dbf attribute table as a csv, and use it in the same word document as a data source, including paths to both photos of the objects and said maps. Additional information, like areas and lengths, would be a plus in some cases, but I can live without them. (I would probably populate the attribute table with this information for the reports.)

I wonder, however, how professionals would approach this. Any suggestions,as specific as possible? I alsready pondered R and knitr, but I'm not sure if there is an easier way.

  • Use the html text box in composer to produce the text and save as single pdf from atlas – Ian Turton Jul 6 '17 at 19:29
  • 1
    For automated reports, I always use R with knitr or sweave. Maybe it isn't the easiest way, but I think is the right one. You can loop throw QGIS outputs and csv's. (maybe this question could be helpful) – aldo_tapia Jul 6 '17 at 21:24
  • 1
    I would use the atlas generator to create the entire report. Did you know... 1) Each atlas feature can have multiple pages. 2) You can add attribute tables and images to the print composer. 3) Using data-defined override settings, the attribute table and image filepath can be different for each atlas feature. – csk Jul 10 '17 at 18:20
  • @aldo_tapia, did you only work with textfile and graphics output, or did you use the shapefiles and their dbf as as source? If so, I would be glad if you'd point me to some (pseudo)code. – R'n'E Jul 13 '17 at 13:23
  • 1
    @WilliamBligh I used shapefile as source. E.g. if shp is your shapefile, use shp@data instead of .csv file. You can use any field as iterator. I recommend you to use xtablepackage for table creation – aldo_tapia Jul 13 '17 at 13:39
0

I would use the atlas generator to create the entire report. Did you know...

  1. Each atlas feature can have multiple pages.
  2. You can add attribute tables and images to the print composer.
  3. Using data-defined override settings, the attribute table and image filepath can be different for each atlas feature.

The atlas generator is a phenomenally useful and powerful tool. Check out these tutorials for more ways to use it: https://docs.qgis.org/testing/en/docs/user_manual/print_composer/atlas_generation.html

http://www.qgistutorials.com/en/docs/automating_map_creation.html

https://docs.qgis.org/2.14/en/docs/training_manual/forestry/forest_maps.html

https://docs.qgis.org/testing/en/docs/user_manual/print_composer/atlas_generation.html

http://gisgeography.com/how-to-create-qgis-atlas-mapbooks/

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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