Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
conta i punti nel poligono e li categorizza
concat(
'Civilian/Public:',
aggregate(layer:='airports',aggregate:='count',expression:="USE", filter:= ("USE"='Civilian/Public' AND intersects ($geometry,geometry(@parent)))),
',',
'Military:',
aggregate(layer:='airports',aggregate:='count',expression:="USE", filter:= ("USE"='Military' AND intersects ($geometry,geometry(@parent)))),
',',
'Joint Military/Civilitan:',
aggregate(layer:='airports',aggregate:='count',expression:="USE", filter:= ("USE"='Joint Military/Civilitan' AND intersects ($geometry,geometry(@parent)))),
',',
'Other:',
aggregate(layer:='airports',aggregate:='count',expression:="USE", filter:= ("USE"='Other' AND intersects ($geometry,geometry(@parent))))
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment