4

In the process modeler, I'd like to reference an output of a previous step as one of the parameters of an algorithm. In this case, the previous step was clipping a large raster and I want to use the clipped raster data to shift some vector data, so as the parameter to the vector transform I've got the following:

raster_value(@Clip_raster_by_mask_layer_OUTPUT ,1,$geometry)

This doesn't work. However, if I output everything from the model and then do the same transform operation manually and use 'name_of_clipped_layer' instead of @Clip_raster_by_mask_layer_OUTPUT, then it works as I expect. Is it possible to get this model to do what I want?

  • 1
    There's a similar question here, but it's not clear if the possible solution I posted was helpful. Please let me know if any part of my answer works for you. – csk Mar 25 at 17:52
  • I've tried most of the things you've listed in your posted answer, but I still haven't been able to get it to work. If I try and save to a known layer name, the layer ID is still unknown, so I don't know how to reference it. The problem is the same as the original if I split it into 2 models, I don't know how to do the reference to the input in the second model. – Paul Wicks Mar 27 at 16:54

Your Answer

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

Browse other questions tagged or ask your own question.