<div dir="auto">Thanks, I'll check it out. </div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Jul 31, 2021, 20:42 Charles Dixon-Paver <<a href="mailto:charles@kartoza.com">charles@kartoza.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>The raster calculator is a tool for raster analysis which doesn't quite suit your needs as I understand them. If you want to learn how to use the raster calculator there is a tutorial available on the QGIS changelog lessons [1].</div><div><br></div><div></div><div>That blog post I linked to before is likely the most effective or performant option for you, and it contains links to scripts that will perform the analysis for you.<br></div><div><br></div><div>As an alternative, I have created a simple model which steps through the vectorization process of reclassifying a raster and calculating the area [2]. The data I used to test the model was the SRTM tile used in the previously mentioned lesson [1], so you can introspect it and copy the logic or tweak it as needed. I did a session on using the modeler for the last Open Day [3] so you can get familiar with them if you aren't already.</div><div><br></div><div>[1] <a href="https://changelog.qgis.org/en/qgis/lesson/raster-16/detail/51/?q=7.2" target="_blank" rel="noreferrer">https://changelog.qgis.org/en/qgis/lesson/raster-16/detail/51/?q=7.2</a>  <br></div><div>[2] <a href="https://github.com/zacharlie/effective-dollop/blob/main/qgis-models/raster_area_calculation_example.model3" target="_blank" rel="noreferrer">https://github.com/zacharlie/effective-dollop/blob/main/qgis-models/raster_area_calculation_example.model3</a><br></div><div>[3] <a href="https://github.com/qgis/QGIS/wiki/QOD-July-2021" target="_blank" rel="noreferrer">https://github.com/qgis/QGIS/wiki/QOD-July-2021</a></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, 31 Jul 2021 at 20:29, Peters <<a href="mailto:petersinmorocco@gmail.com" target="_blank" rel="noreferrer">petersinmorocco@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto"><div>Very helpful. Yes, our data is raster. I saw a calculator tool in the raster toolbar but haven't been able to figure it out or if it's pertinent.<br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Jul 31, 2021, 19:01 Charles Dixon-Paver <<a href="mailto:charles@kartoza.com" target="_blank" rel="noreferrer">charles@kartoza.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>I think you will need to provide more information on describing the input data, as well as how exactly you wish to process it.</div><div><br></div>If your coverage data is vector areas you should be able to simply use the aggregate processing tool using <span style="font-family:monospace">$area</span> as the source expression and stipulate a <span style="font-family:monospace">sum</span> aggregate function. You may also use the grouping function to filter the results as needed using an expression.<div><br></div><div>This would provide the area based on map units, so you would need to reproject your data into a relevant metric projection before performing the aggregation. A single hectare is simply 10000 m² so simple arithmetic will allow you to convert metric areas to hectares.<div><div><div><br></div><div>If your data is another vector data type such as point clouds, you may need to buffer or calculate a minimum bounding geometry or convex hull before processing it as the area calculation will of course only work on area features.</div><div><br></div><div>For raster data, the total area would be a simple calculation of the extents, or the dimensions and cell size. Again, you may need to reproject the data for it to be available in meters.</div><div><br></div><div>If, however, you wish to segregate raster data based on cell value, you may want to recode and vectorize the data, or alternatively perform some form of custom analysis as described in the following article: <a href="https://www.kartoza.com/en/blog/calculating-area-of-rasters-in-qgis/" rel="noreferrer noreferrer" target="_blank">https://www.kartoza.com/en/blog/calculating-area-of-rasters-in-qgis/</a></div></div><div><br></div><div>Regards</div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, 31 Jul 2021 at 19:15, Peters <<a href="mailto:petersinmorocco@gmail.com" rel="noreferrer noreferrer" target="_blank">petersinmorocco@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-family:tahoma,sans-serif">Does anyone know of such a calculator as a plugin or option?  At the moment I am using QGIS app. Our client has asked for area coverage in sq. mtrs or hectares. Appreciate any info you may have.</div><div><br></div>-- <br><div dir="ltr"><i>regards,</i><div><i><b><span class="gmail_default" style="font-family:tahoma,sans-serif">K. </span>Peters</b></i><div><i><br></i><div><div><i>cell: (Morocco) +212.671.218606</i></div></div></div></div></div></div>
_______________________________________________<br>
Qgis-user mailing list<br>
<a href="mailto:Qgis-user@lists.osgeo.org" rel="noreferrer noreferrer" target="_blank">Qgis-user@lists.osgeo.org</a><br>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer noreferrer noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer noreferrer noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a>.<br>
</blockquote></div>
</blockquote></div></div></div>
</blockquote></div>
</blockquote></div>