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

  Рет қаралды 106,935

Geospatial School

Geospatial School

Күн бұрын

Пікірлер: 72
@sam_ua
@sam_ua 11 ай бұрын
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
@geospatialschool
@geospatialschool 11 ай бұрын
Glad it helped!
@krishnendupolley6100
@krishnendupolley6100 3 жыл бұрын
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.
@Pipi108
@Pipi108 6 ай бұрын
3 years later and its still helping out people like me! Thank you for taking your time to make this video
@pitruchhaya
@pitruchhaya 3 жыл бұрын
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.
@geospatialschool
@geospatialschool 3 жыл бұрын
Nice work!
@hsahil_10
@hsahil_10 6 ай бұрын
Thank you for the nice explanation. I had difficulty with that black area around my clipped raster.
@princessskekinahbegafria5615
@princessskekinahbegafria5615 8 күн бұрын
very helpful! thanks so much. I need to create a nice map for my thesis!
@guodingchen3350
@guodingchen3350 3 жыл бұрын
interesting shape!
@CesarGonzalez-pq8gz
@CesarGonzalez-pq8gz 29 күн бұрын
hahahahha
@morimori_i
@morimori_i 2 жыл бұрын
Omg thank you. I didnt know that I need to assign a no data value. I've been so frustrated with that black border.
@geospatialschool
@geospatialschool 2 жыл бұрын
You're welcome!
@sittietidong2094
@sittietidong2094 Жыл бұрын
Why you did not include how you put the polygon and what is the purpose
@blissmelody1873
@blissmelody1873 3 ай бұрын
My qgis is not showing extractions option in raster. What to do for that
@kikilriki
@kikilriki 2 жыл бұрын
i get "ERROR 1: Cannot compute bounding box of cutline. Cannot find source SRS" and don't knwo what to do, nothing works!
@keithbjohnson1
@keithbjohnson1 2 жыл бұрын
I had the same error message. I entered the "Source CRS" value... even though it displays the CRS for the input layer, I copied that into the Source CRS field, and the clipping extraction worked. In my case this meant entering EPSG:4326, becuase that was the CRS of the input raster.
@benhall2680
@benhall2680 2 жыл бұрын
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?
@colbygeary2313
@colbygeary2313 2 жыл бұрын
You ever find a solution?
@kopicaptupai
@kopicaptupai 2 жыл бұрын
me too im looking for this kind solution
@VHenrik007
@VHenrik007 2 жыл бұрын
Same, is there a way to do that?
@RobertThomson
@RobertThomson 2 жыл бұрын
Bump...I'm keen to know if this is possible too.
@VHenrik007
@VHenrik007 2 жыл бұрын
@@RobertThomson So I found a way in the end, however it's not exactly what I hoped it'd be. You have to create another shape layer, which covers the whole original raster. And then you have to subtract the mask from that huge shape layer, making a third one. This was the only option I found.
@locrogin
@locrogin 3 жыл бұрын
Thanks very much for showing me how to do this!
@geospatialschool
@geospatialschool 3 жыл бұрын
No problem!
@jacknguyen5063
@jacknguyen5063 Жыл бұрын
Thanks for clearly explanation! it is so helpful to me
@42Pursuit
@42Pursuit 2 жыл бұрын
Exactly what I was looking for. Thanks!
@geospatialschool
@geospatialschool 2 жыл бұрын
Glad I could help!
@priyankapriyadarshinisahoo7582
@priyankapriyadarshinisahoo7582 9 ай бұрын
How do I save the masked portion so as to use it as a DEM for other new projects?? PLEASE HELP!!!!!!!
@geospatialschool
@geospatialschool 9 ай бұрын
Select the option to save to a file then enter the file name to save it.
@kerwinkencunanan35
@kerwinkencunanan35 9 ай бұрын
HELP The Following Layers Were Not Correctly Generated always pops up!
@JulienSavidge
@JulienSavidge Жыл бұрын
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?
@geospatialschool
@geospatialschool Жыл бұрын
You'll do it the exactly the same. You just need to make a polygon for the area you want to keep. To do that you might need to create a larger polygon, then difference it from the area you want to remove.
@youhasful
@youhasful Жыл бұрын
really great, works nicely. Thanks!
@geospatialschool
@geospatialschool Жыл бұрын
You're welcome!
@godwin.k
@godwin.k Жыл бұрын
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
@geospatialschool
@geospatialschool Жыл бұрын
You should be able to adjust the resolution when running the tool.
@godwin.k
@godwin.k Жыл бұрын
@@geospatialschool Thanks for your response but how to do it ?
@saeidshamsaliei2536
@saeidshamsaliei2536 3 жыл бұрын
Thank you very much. very helpful
@geospatialschool
@geospatialschool 3 жыл бұрын
Glad it was helpful!
@mbtnc
@mbtnc 2 жыл бұрын
Hello, What is the difference between a "normal" view and a materialized view? Why can a materialized view make more sense with raster data?
@joshuah.9687
@joshuah.9687 2 жыл бұрын
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.9687
@joshuah.9687 2 жыл бұрын
Checking the pixel size on both layers, the original states: 9.25,-9.25, but the clipped raster also has the same pixel #, but what is on screen is a lot different...
@rathaiahyv3469
@rathaiahyv3469 2 жыл бұрын
very nice explanation. thanks
@geospatialschool
@geospatialschool 2 жыл бұрын
You are welcome
@alialsakkaf4799
@alialsakkaf4799 Жыл бұрын
that is great ! many thanks
@geospatialschool
@geospatialschool Жыл бұрын
You are welcome!
@bukumun
@bukumun Жыл бұрын
thanks, very helpful
@geospatialschool
@geospatialschool Жыл бұрын
You're welcome!
@Chicojls
@Chicojls 3 жыл бұрын
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
@Chicojls 3 жыл бұрын
Nevermind, figured it out. I notice we can save a color map file and that did the job. Thanks anyway
@karensalisbury2289
@karensalisbury2289 3 жыл бұрын
On some clips, the colouration alters, I have one with thick red lines on the raster. when I do a clip the result is with very thin, dashed lines. Is there a setting I need?
@geospatialschool
@geospatialschool 3 жыл бұрын
It sounds like after the clip your raster may be overlapping a vector layer? Rasters are not going to be displayed as lines.
@karensalisbury2289
@karensalisbury2289 3 жыл бұрын
@@geospatialschool the original image has clear thick red bourndary in the image but the clip is "washed out" I was hoping to paste an image of both, but cant see an option
@NeverTakeNoCut-offs
@NeverTakeNoCut-offs Ай бұрын
On suggestion: start with outlining and showing the end results, then show how to achieve it.
@veeranjaneyulukale2602
@veeranjaneyulukale2602 3 жыл бұрын
Why does the clipped raster doesn't match with the polygon when zoom in to pixel level?
@rashmiyadav987
@rashmiyadav987 3 жыл бұрын
Did u got any solution for this problem sir? I am facing the same issue...
@Inscissorr
@Inscissorr 3 жыл бұрын
@@rashmiyadav987 it might just be a rendering issue, have you tried setting the color gradient values as the original layer?
@25924637
@25924637 2 жыл бұрын
Can I use this method to clip an area from the Google Satelite base map?
@geospatialschool
@geospatialschool 2 жыл бұрын
Nope. You can't clip basemaps
@25924637
@25924637 2 жыл бұрын
@@geospatialschool Thanks.
@seaterrai8735
@seaterrai8735 Жыл бұрын
Cutline polygon is invalid why???
@anuragverma-by8ww
@anuragverma-by8ww 4 ай бұрын
THANK YOU!!!
@alexgabriel5650
@alexgabriel5650 3 жыл бұрын
Thank you very much!
@geospatialschool
@geospatialschool 3 жыл бұрын
You're welcome!
@dreamquarter
@dreamquarter 3 жыл бұрын
Why is it ok to clip using input layers with different CRS?
@geospatialschool
@geospatialschool 3 жыл бұрын
QGIS will reproject layers so they match. Sometimes this can cause problems. If results aren't turning out correctly it is often because of different CRS
@dreamquarter
@dreamquarter 3 жыл бұрын
@@geospatialschool Ok. I'm working on a project where I use rasters with different CRS. Before I clip them with a country-vector, I use the Warp tool to have them all in WGS 84.
@juanjerezdigital
@juanjerezdigital 13 күн бұрын
Gracias
@행복한준희의하루-d8o
@행복한준희의하루-d8o 3 жыл бұрын
Can't you name the file with polygon name?
@breeneco
@breeneco 9 ай бұрын
Thankyou!! This stuff isnt intuitive
@geospatialschool
@geospatialschool 9 ай бұрын
You're welcome!
Clip a Raster Layer in QGIS (three different ways)
6:17
Geospatial School
Рет қаралды 64 М.
Downloading SRTM DEM data using QGIS
11:05
GeoDelta Labs
Рет қаралды 73 М.
BAYGUYSTAN | 1 СЕРИЯ | bayGUYS
37:51
bayGUYS
Рет қаралды 605 М.
[BEFORE vs AFTER] Incredibox Sprunki - Freaky Song
00:15
Horror Skunx 2
Рет қаралды 19 МЛН
Extracting Raster Values using Points, Polygons & Lines | QGIS
17:46
Get OpenStreetMap layers and batch clip to your area in QGIS
14:38
Clipping Raster (DEM) by a Polygon in QGIS
5:13
GIS Training
Рет қаралды 61 М.
Spatial Interpolation Techniques in QGIS
22:12
GeoDelta Labs
Рет қаралды 32 М.
Calculate NDVI from Sentinel 2 and reclassify in QGIS
10:07
Hans van der Kwast
Рет қаралды 39 М.
LAVROV's interview with Tucker CARLSON 😁 [Parody]
8:34
Юрий ВЕЛИКИЙ
Рет қаралды 390 М.
How 5 Polyglots Broke Language Learning
12:39
Jerry Registre
Рет қаралды 27 М.
Clip Raster in ArcMap (Basic processing in GIS)
3:20
E-mi 17 e. stephanenko
Рет қаралды 252 М.
Creating and Styling Contour Lines in QGIS
14:21
GIS Solutions
Рет қаралды 5 М.