Monday, 25 May 2015

qgis - Creating shapefile showing footprints of Rasters?


I have around 1,000 satellite images in tiff format, and I want to create a shapefile which will serve as an index to the rasters. This is something similar to a raster catalog, but I do not want to build a raster catalog.


Some obstacles I can forsee, is that the image are georefrenced, so they are not rectangular in shape (I am talking about the data area).


To clarify, I require the polygon to cover only the non-zero (or non nodata) pixels of the raster, and not the entire rectangular raster. Most of the answers so far, give a rectangular polygon, which covers the data, as well as the non-data pixels.


My Image A sample Satellite Image





Result given by tools I have examined (like raster catlog, various Arcscripts, custom Python script given in one of the answers): Result




Result that I want: enter image description here



Answer



There is a plugin in QGIS called Image Boundary. It is a great tool. Within this tool there is an option for "Valid Pixels" which will omit the black edges of a satellite image, for example.


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