Skip to main content

Timeline for Grid spacing by attributes, QGIS

Current License: CC BY-SA 4.0

5 events
when toggle format what by license comment
Feb 8, 2019 at 10:37 comment added H. L. Thank you. It takes time to orientate to this, but I will try this as soon as possible :)
Feb 6, 2019 at 21:47 comment added Gabriel My guess is that an expression directly in the tool can't reference the input as it always seems to return NULL. The resulting grid spacing is always 1 meter, regardless of the attributes (I tried 20m, 10m, 5m like in the OP's example).
Feb 6, 2019 at 21:29 comment added csk I tried using that expression with my spacing field, attribute($currentfeature,'Horizontal_spacing'), in the Create Grid algorithm, but it still created a grid with the same spacing for all the features. It seems to be taking the attributes from the first feature in the layer instead of from the current feature.
Feb 6, 2019 at 21:17 comment added Gabriel I had tried to add an expression input as a child to the input layer with attribute($currentfeature,'spacing_field') and feed this in the spacing for the grid tool. When running the model, testing the expressions return the correct field values so if only it was possible to assign an expression input to the relevant parameters, it would work perfectly.
Feb 6, 2019 at 20:40 history answered csk CC BY-SA 4.0