<div dir="ltr"><div dir="ltr">Azzurra and list;<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jan 28, 2021 at 2:31 PM Azzurra Lentini <<a href="mailto:azzurralentini@gmail.com">azzurralentini@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 style="font-family:tahoma,sans-serif">Hi List,</div><div style="font-family:tahoma,sans-serif">I have a raster file DTM (altitude attribute in the pixels). I reclassified this raster in 4 classes of altitude and I need to calculate for each class  the area (in how many square meters is each different class extended).  </div><div style="font-family:tahoma,sans-serif">I can for example transform the raster file reclassified into a vector file and calculate the area, but is it possible to do without any vectorialization and so directly calculating it from the raster file? <br></div></div></blockquote><div><br></div><div>You might wish to review the following link</div><div><br></div><div><a href="https://gis.stackexchange.com/questions/52353/calculating-area-of-rasters-in-qgis">https://gis.stackexchange.com/questions/52353/calculating-area-of-rasters-in-qgis</a></div><div><br></div><div>It suggests two approaches - using raster statistics to get the count by classes and multiplying by the pixel area, or vectorizing, and points out that in vectorizing you get "cluster areas", not just the total count of pixels of each class.<br> </div></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr">Chris Hermansen · clhermansen "at" gmail "dot" com<br><br>C'est ma façon de parler.</div></div></div>