Skip to main content

Hi all, I have two geopackage files in QGIS: One of them a multipolygon with coverage tree and the second one a multipolygon with the plots. Im looking to calculate the afforestation rate by plots, that's means the percent of total plot surface that's covered by the tree layer and add this afforestation rate as a attribute in plot layer

 

As you see in the image below, in green I have the coverage tree and the lines show the plots limitsimage.png 

Thanks you all

Pablo

I would approach it in the following way :

  • Ad a counter to the plots
  • ad an areaCalculator to the plots
  • Clipper to cut out the forests to each plot, whilst transferring the count and area (plots) attribute to the forests.
  • Run an areaCalculator on the forests grouped by count (plot)
  • StatisticsCalculator to calculate the percentage, grouped by count (plot)

If you have an initial identifier for the plots you would probably want to transfer that as well to the forest in the clipper.

 


I would approach it in the following way :

  • Ad a counter to the plots
  • ad an areaCalculator to the plots
  • Clipper to cut out the forests to each plot, whilst transferring the count and area (plots) attribute to the forests.
  • Run an areaCalculator on the forests grouped by count (plot)
  • StatisticsCalculator to calculate the percentage, grouped by count (plot)

If you have an initial identifier for the plots you would probably want to transfer that as well to the forest in the clipper.

 

Hi @aron​ thanks for answer. I forgot to say that the plots have already an ObjectID and the surface calculated. When I Made the clip with the forest layer as candidate and plots as clipper, I get actually many different entities (polygones) with the same Identifier as you see in the image below

 

many entities one IDI would have expected that within a parcel there would be only one entity.

And then, I didn't understood how to calculate the percentage. In the StatisticsCalculator i didn't find how to do it.


Hi @aron​ thanks for answer. I forgot to say that the plots have already an ObjectID and the surface calculated. When I Made the clip with the forest layer as candidate and plots as clipper, I get actually many different entities (polygones) with the same Identifier as you see in the image below

 

many entities one IDI would have expected that within a parcel there would be only one entity.

And then, I didn't understood how to calculate the percentage. In the StatisticsCalculator i didn't find how to do it.

Every group of trees within the plot gets the same id. The plot on the far left of your image would have only one "forest", while the one in the middle would have 10+.

At second thought I would use an AreaCalculator on the plot and another one for the forest, it is important that this one is grouped by id. Then use an AtributeCalculator to calculate the coverage. Give the attribute a new name and use the aritmethric calculator to get the percentage. Plotarea/forestarea.


Reply