Skip to main content
added 115 characters in body
Source Link
Taras
  • 34.1k
  • 4
  • 73
  • 148

You can aggregate the geometries of each layer and than combine them using collect_geometries()collect_geometries(). The final expression could look like this - replace 'poly1', 'poly2' etc. with the names of your polygon layers:

collect_geometries( 
    aggregate( 'poly1', 'collect', $geometry),
    aggregate( 'poly2', 'collect', $geometry),
    aggregate( 'poly3', 'collect', $geometry)
)

Screenshot 1: original polygons (3 layers): enter image description here

Screenshot 2: the collected polygons with a common line-pattern: enter image description here

You can aggregate the geometries of each layer and than combine them using collect_geometries(). The final expression could look like this - replace 'poly1', 'poly2' etc. with the names of your polygon layers:

collect_geometries( 
aggregate( 'poly1','collect',$geometry),
aggregate( 'poly2','collect',$geometry),
aggregate( 'poly3','collect',$geometry)
)

Screenshot 1: original polygons (3 layers): enter image description here

Screenshot 2: the collected polygons with a common line-pattern: enter image description here

You can aggregate the geometries of each layer and than combine them using collect_geometries(). The final expression could look like this - replace 'poly1', 'poly2' etc. with the names of your polygon layers:

collect_geometries( 
    aggregate('poly1', 'collect', $geometry),
    aggregate('poly2', 'collect', $geometry),
    aggregate('poly3', 'collect', $geometry)
)

Screenshot 1: original polygons (3 layers): enter image description here

Screenshot 2: the collected polygons with a common line-pattern: enter image description here

Source Link
Babel
  • 75k
  • 15
  • 87
  • 227

You can aggregate the geometries of each layer and than combine them using collect_geometries(). The final expression could look like this - replace 'poly1', 'poly2' etc. with the names of your polygon layers:

collect_geometries( 
aggregate( 'poly1','collect',$geometry),
aggregate( 'poly2','collect',$geometry),
aggregate( 'poly3','collect',$geometry)
)

Screenshot 1: original polygons (3 layers): enter image description here

Screenshot 2: the collected polygons with a common line-pattern: enter image description here