Skip to content

Instantly share code, notes, and snippets.

@pigreco
Created October 14, 2018 13:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pigreco/dec0850566e70ede5b64d14c914802bc to your computer and use it in GitHub Desktop.
Save pigreco/dec0850566e70ede5b64d14c914802bc to your computer and use it in GitHub Desktop.
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