TransWikia.com

Inverted filling of polygon

Geographic Information Systems Asked by neogeomat on January 27, 2021

Is there way to color on the outside of polygons like this? I have tried to use the inverted polygon style in QGIS but it didn’t work.

enter image description here

3 Answers

I am not sure what was going wrong with inverted polygon style, but here is a simple polygon to show you how to do it:

enter image description here

Go to Layer Properties -> Style -> Change Single Symbol to Inverted polygons

enter image description here

Notice I used the same color in your question because you want to color the outside polygon with this specific color.

Here is the output:

enter image description here

Correct answer by ahmadhanb on January 27, 2021

I'm not aware of another stylistic way to achieve that effect (if inverted pgons is not working), however, you could download the 'mask' plugin (https://plugins.qgis.org/plugins/mask/) which will automatically create an exterior mask around a selected polygon. It creates a new memory polygon layer that you can style however you want.

Answered by Ed Rollason on January 27, 2021

Despite a brilliant answer from @ahmadhanb, I would like to share an idea of how to invert a filling of polygon with Geometry Generator.

Let's assume that there is a polygon, shown on the Picture beyond.

input

Use the following setting for the Geometry generator

input

and get the result, see image below

result

Answered by Taras on January 27, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP