I would like to create a polygon around the raster (.tif) extent so I can calculate for instance the area in m2 within the polygon.

When I try to Polygonize or Clip raster by extend (and delete the 0 value) the vector data comes out with a lot of holes inside, which will make area calculation inaccurate. See figure below for clarification.

Does someone knows a handy way to create a polygon around the data extent?

actual polygon boundary versus intended polygon boundary

  • Hi! Already answered here: gis.stackexchange.com/questions/26893/…
    – pan
    Dec 15, 2022 at 14:52
  • @pan, thank you for the suggestion I will check it out!
    – Aurora
    Dec 15, 2022 at 15:16
  • 1
    Create a black/white raster with raster calculator and an appropriate expression (like raster@1 > 0 or whatever fits your data), then it's much easier to polygonize the resulting raster.
    – Babel
    Dec 15, 2022 at 15:59


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.