Clip a Raster with a Polygon in QGIS (Extract by Mask)

preview_player
Показать описание
This tutorial demonstrates how to use QGIS to clip a raster layer to the shape of a polygon. This operation is also referred to as clip by mask, or extract by mask. QGIS makes clipping a layer to polygon very simple. If you're having trouble with no data values being displayed as zero or in black, this tutorial will show you how to fix it.

Рекомендации по теме
Комментарии
Автор

thanks a lot! made a dozen steps in order to achieve the result needed, but then discovered this feature with no data value - exceptionally thanks to your example! all the best

sam_ua
Автор

3 years later and its still helping out people like me! Thank you for taking your time to make this video

Pipi
Автор

Thanks for the tutorial, but my clipped layer appears with a black rectangle around it, how can I get rid of it? I think you have explained it at the last part of your tutorial, but if you can explain it in a bit detail, it will be helpful for me.

krishnendupolley
Автор

Thank you for the nice explanation. I had difficulty with that black area around my clipped raster.

hsahil_
Автор

Thanks, much needed. I tried this in Q 3.10.4 and it showed the exact output as Extract by Mask in ArcMap. Also, when I exported it to ASCII using the Translate tool, there was no need to set the NoData values and kept it as default, and it worked.

pitruchhaya
Автор

Thanks for clearly explanation! it is so helpful to me

jacknguyen
Автор

Thanks very much for showing me how to do this!

locrogin
Автор

Exactly what I was looking for. Thanks!

Pursuit
Автор

Omg thank you. I didnt know that I need to assign a no data value. I've been so frustrated with that black border.

bugsmasherr
Автор

Thank you so much, this thing about "specified nodata" save my life, was kinda frustrating the images with the black parts

geovaniferraz
Автор

Why you did not include how you put the polygon and what is the purpose

sittietidong
Автор

i get "ERROR 1: Cannot compute bounding box of cutline. Cannot find source SRS" and don't knwo what to do, nothing works!

kikilriki
Автор

Nice tutorial! What if I want to reverse the clip, that is, only keep that part of the raster that is outside of the polygon?

benhall
Автор

HELP

The Following Layers Were Not Correctly Generated always pops up!

kerwinkencunanan
Автор

Hello, What is the difference between a "normal" view and a materialized view? Why can a materialized view make more sense with raster data?

mbtnc
Автор

Hello, I am trying to the exact opposite of this. Basically I would want to cut that shape out the raster and keep the rectangular raster and leave the polygone blank. What is the best way to do this?

zqestli
Автор

Indredible ! I'm now find a solution! Thanks ! I have another question. After doing a clip action, I have a very bad resolution for my output. I try everything, but I still have it

godwin.k
Автор

How do I save the masked portion so as to use it as a DEM for other new projects??
PLEASE

priyankapriyadarshinisahoo
Автор

Following this, I get the correct clipped raster, but the resolution has drastically dropped. I tried checking "Keep resolution of input raster", but nothing changed. Resolution still dropped.

joshuah.
Автор

hey, so my main raster has unique value symbology, and a bunch of named classes and colors i chose by hand. Is it possible to clip the main raster and keep the information like symbology and so on? Because i clipped and it changed the colors and the values to default.

Chicojls