TransWikia.com

Keep only the selection in QGIS

Geographic Information Systems Asked by Svhooren on June 9, 2021

I have polygon of trees, this polygon variates with the area of the branch of trees.

I would like to select by a classic hand/polygon selection an area on my canvas, but instead of selecting the whole polygon I need it to keep only what’s inside the selection.

As you can see below (on cadastral parcels just to illustrate): I select with a polygon

enter image description here
But my result is out of that polygon.

enter image description here

I would need to only keep the part of the polygon I selected to later calculate the area of my selection.

I would like :

  • different step to do it
  • OR a macro to do it
  • OR python code to add in a qgis Plugin

One Answer

Instead of creating a selection, draw a polygon on a new layer (Menu layer / Create layer). Than you can use Menu Vector / Geoprocessing / Intersection and set both layers as input.

This is the result: Blue: original polygons, orange: selection, red: result after intersection: enter image description here

Correct answer by Babel on June 9, 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