Tuesday 4 June 2019

qgis - How to extract the boundary of a raster image?



I am working in QGIS 2.10.1 and I have the following situation: I have some Landsat8 scenes (different paths and rows) and I want to extract their boundary. My final objective is to superimpose them to the vector of my study area, so that I can show how the scenes cover the study area and in which points they overlap. I have already tried to convert the raster into a vector, but QGIS cannot make it, it crashes or it gives me back only part of the polygon.


Is there anybody who's got an idea to solve this problem?



Answer



You can use Plugin: Image Footprint as commented by @Mapperz. You need to download the plugin from plugin Manager, and this is how it works:


enter image description here



  1. Specify the folder (directory) where the images are located

  2. Use Valid pixels and specify the CRS of the image.

  3. The outpout will create a virtual vector file with a CRS of WGS84 as the default CRS

  4. You need to Save as the virtual vector file into a permanent file with the correct CRS that should be same as the image file.



Here is the input image file stored in the folder:


enter image description here


Here is the output footprint:


enter image description here


You can refer to the presentation: Qgis ibama imagefootprint for more information.


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...