[Qgis-user] Selecting dangle nodes with expression in processing
PIERRE Sylvain
sylvain.pierre at alsace.eu
Mon Jan 20 04:43:28 PST 2025
Hi
I'm using an expression to select dangle lines on a vector layer :
aggregate(
layer:=@layer ,
aggregate:='count',
expression:=id_graphe,
filter:=intersects($geometry, end_point(geometry(@parent)))) - 1 = 0
or
aggregate(
layer:= @layer ,
aggregate:='count',
expression:=id_graphe,
filter:=intersects($geometry, start_point(geometry(@parent)))) - 1 = 0
It works fine in UI
But with same data when I want to use this expression in Processing, selecting dangle lines fails (no errors, but 0 selected lines)
I update expression in order to follow processing syntax an replace layer reference (@layer) by output alg (@Extraire_par_localisation_OUTPUT):
aggregate(
layer:=@Extraire_par_localisation_OUTPUT ,
aggregate:='count',
expression:=id_graphe,
filter:=intersects($geometry, end_point(geometry(@parent)))) - 1 = 0
or
aggregate(
layer:= @Extraire_par_localisation_OUTPUT ,
aggregate:='count',
expression:=id_graphe,
filter:=intersects($geometry, start_point(geometry(@parent)))) - 1 = 0
this without success.
What is the right way to achieve that ?
Thanks
[cid:image009.jpg at 01DB6B41.48EBF0B0]
Sylvain PIERRE
Chef de projet système d'information
Direction des Systèmes d'Information et du Développement Numérique
Service Projets et Ingénierie Numérique
Collectivité européenne d'Alsace
Tél : 03 88 76 68 88
sylvain.pierre at alsace.eu<mailto:sylvain.pierre at alsace.eu>
www.alsace.eu<http://www.alsace.eu>
[facebook]<http://www.facebook.com/toutelalsace> [twitter] <http://www.twitter.com/toutelalsace> [insta] <http://www.instagram.com/toutelalsace>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20250120/3c1a534f/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image009.jpg
Type: image/jpeg
Size: 8094 bytes
Desc: image009.jpg
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20250120/3c1a534f/attachment.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image010.png
Type: image/png
Size: 827 bytes
Desc: image010.png
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20250120/3c1a534f/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image011.png
Type: image/png
Size: 852 bytes
Desc: image011.png
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20250120/3c1a534f/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image012.png
Type: image/png
Size: 1028 bytes
Desc: image012.png
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20250120/3c1a534f/attachment-0002.png>
More information about the QGIS-User
mailing list