Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
pigreco committed Aug 7, 2023
1 parent 36818cb commit 5eafaeb
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions docs/esempi/spatial_join_condizionato.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,18 @@ map_akeys(
layer:='ne_10m_populated_places_simple',
expression:= map("name","pop_max"))[array_find(@max,array_max(@max))])[0])
```
oppure:

```
with_variable('max',
overlay_contains(
layer:='ne_10m_populated_places_simple',expression:= "pop_max"),
attribute(overlay_contains(
layer:='ne_10m_populated_places_simple',
expression:= @feature)[array_find(@max,array_max(@max))],'name'))
```

in questo caso ho usato la variabile `@faeture` che contiene l'intero rigo (compreso di geometria) dell'elemento valutato; quindi, usando `attribute` posso richiamare qualsiasi attributo delle riga.

video youtube: <https://youtu.be/NOgDku2S9ws>

Expand Down

0 comments on commit 5eafaeb

Please sign in to comment.