Sunday 3 June 2018

Remove unwanted black area around clipped raster in QGIS 2.18


Following on from Remove white background in Raster in QGIS


When I choose the unwanted value - in my case I want to remove black area around the clipped raster - I write 0 as the unwanted value, but I also lose a lot of important detail in the clipped raster. So there is a lot of differences between the original raster to the clipped raster


enter image description here


How can I choose to remove only the black area around the clipped raster?




Answer



finally, I found this solution: I put on top the layer with the desirable area i want to crop. then in the clipper function, i mark those two options:


enter image description here


The result will be the exact area without black areas


enter image description here


No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...