I am building a model using the Model Designer in QGIS and I have ran into a problem.
The model I have developed creates a grid of points, rotates this grid by a defined degree, clips the points to a defined boundary, then extracts the points based on defined exclusion zones using the difference algorithm. It then samples an input raster (bathymetry) using the points to obtain water depths at each of the points. This all works just as I would like so far, see screenshot of model and output:
The last function I would like this model to perform is to extract the points by their water depth attribute to allow me to extract only the points that fall within an acceptable defined water depth range. See bathymetry raster for context:
I can extract the desired points either by using the "Extract by Attribute" or "Extract by Expression" algorithms. See screenshots with example extracting points >=-30m water depth:
This works perfectly when I do this manually. My problem is that when I try to use the exact same algorithms in the model, the "Water Depth (m)" field can not be found. For both algorithm approaches, the only attribute/field that shows up is NULL.
Can anyone help with why the Water Depth attribute is not showing up in the model, despite the previous algorithm sampling the raster? I hope this is clear enough, but I will reply or edit this post to address any questions.
"Water Depth (m)">=-30
as an expression? Maybe it does not have to be added using Fields and Values