[Qgis-user] Rule-based symbol for point within polygon in QGIS

Jeanneret Cédric Cedric.Jeanneret at ville-fr.ch
Mon Aug 30 07:36:47 PDT 2021


I would like to use a set of rules to draw features from a point_layer that are within a polygon_layer.
Points that answer true to
("VAL_PROTECTION_EP3" = '1' AND  "TYPE"  = 1)
and that are within polygons that answer true to
("TYPE" in ('P','E') AND "CAT_CANTON" = 2) OR ("TYPE" in ('P','E') AND "CAT_CANTON" = 3)
should be displayed as red dots
Points that answer true to
("VAL_PROTECTION_EP3" = '2' AND  "TYPE"  = 1)
and that are within polygons that answer true to
("TYPE" in ('P','E') AND "CAT_CANTON" = 2) OR ("TYPE" in ('P','E') AND "CAT_CANTON" = 3)
should be displayed as orange dots
Points that answer true to
("VAL_PROTECTION_EP3" = '3' AND  "TYPE"  = 1)
and that are within polygons that answer true to
("TYPE" in ('P','E') AND "CAT_CANTON" = 1)
should be displayed as yellow dots
I cannot find the right combination of expressions for the rule to work.
Any help would be appreciated: what would a working syntax be for such a rule to work in QGIS Layer Styling panel ?


Cédric Jeanneret

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20210830/3ac8c864/attachment.html>


More information about the Qgis-user mailing list