1

I would like to solve a problem (Species atlas (how to automate to create on page for each species with QGIS)). To solve it by an other way, I would like to know if it is possible to make a sextante process, and at the end, call, or use the map composer, directly into the Models Builder? If yes, how to do it?

Thanks.

1

As far as i know: No
The Map composer is mainly build to be a user friendly click-and-point tool and it requires some sort of python script to automatically generate a map within the Processing modeller.
So you have 2 ways to proceed:

  • Ether write yourself a custom python script to be used in the modeller. For this you just have to alter the provided python-code from your other question.
  • In my opinion more straight forward is to write a simple R script that generates the maps for you. See an example how to port r-script to QGIS processing on my blog. You could for instance write sth. like this (quick and dirty):

Code:

library(raster)
library(rgdal)
r <- raster("raster path")
pol <- readOgr("polygon dir","polgygon name")


png("where to save.png")
plot(r)
plot(pol,add=T)
dev.off()

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.