I have two feature classes: point and line. The purpose is to make geometrical relations between them. For instance, if points are on line then they automatically take attributes from a specific field from line layer (field-double).
But if i'm not giving any attribute it returns NULL
(but it should aggregate from layer). What is wrong with expression?
if(NULL,
aggregate(
layer:='layer_you_want',
aggregate:='concatenate',
expression:=to_string("field_you_want"),
concatenator:=', ',
filter:=intersects($geometry, buffer(geometry(@parent), 0.0005))
),
"remain_the_same_field"
)
NULL
, but you don't tell what isNULL
. Then again, it's unclear what you want to achieve... can you add a screenshot? If a point is on a line, you want to aggregate... what? Aggregate is to bring together attributes from different features, so each point would get values from several lines. This is unclear to me.