2

I created my process in QGIS graphic interface with treatments. In my process I need to create a vector grid. This algorithm allows a vector layer to define my extent.

But in the graphical modeler I can't do it, I have to enter an extent like this:

-0.793282323236,-0.792284809119,45.2490964215,45.2499104167

How can I use a vector layer as extent in the graphical modeler?

0

1 Answer 1

3

You can use the Extent parameter and link it to Grid extent option in the Vector grid tool:

Modeler

Now when you run the model, you can select to either take the extent from a layer or from the canvas:

Running model

5
  • @TimothéeColas - Most welcome! Hope it helps :)
    – Joseph
    Aug 24, 2017 at 8:54
  • How can do if my layer who define extent is the result of a previous treatment ? I forgot a part of the problem :D
    – Tim C.
    Aug 24, 2017 at 12:09
  • @TimothéeColas - I think you should ask this as a new question because you may need to create a custom script to retrieve the extent for a layer from a previous algorithm. Perhaps you can also add a screenshot of an example model to illustrate what you need as I'm not completely sure :)
    – Joseph
    Aug 25, 2017 at 9:18
  • 1
    I finally found how to do ! In Specific graphical modeler tools, there is "vector boundary" or something like this (my qgis is in french ;p). So this tool give you : Xmin, Xmax, Ymin, Ymax, Extent. Greta isn't it ?
    – Tim C.
    Aug 25, 2017 at 14:09
  • @TimothéeColas - Don't think I've seen that tool before! Well done :)
    – Joseph
    Aug 25, 2017 at 14:17

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.