Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
pigreco committed Nov 1, 2021
1 parent a88dc39 commit b75a175
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion docs/esempi/geometria_vicina_filtro_condizionato.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Esempio:

Come si evince dallo screenshot, i punti in rosso devono collegarsi con i punti blu che hanno `id` differente. Il punto 6 è rimasto isolato perché non ci sono punti vicini e con id diverso da 6.

Espressione utilizzata:
Espressione utilizzata (**>=QGIS 3.16**):

```
collect_geometries(
Expand All @@ -23,6 +23,18 @@ collect_geometries(
)
```

Altra espressione più performante su grandi dataset (**>=QGIS 3.22.1**)

```
make_line (
eval( 'overlay_nearest(
\'layer2\',
$geometry,
filter:=id2<>'||"id1"||')')[0],
$geometry
)
```

idea presa da qui:

- [stackexchange](https://gis.stackexchange.com/questions/391120/qgis-expression-with-overlay-fuction-filter-condition-based-on-comparison-of-at)
Expand Down

0 comments on commit b75a175

Please sign in to comment.