I need to find size of water area from a raster (jpg) using QGIS 1.8.0-Lisboa. The raster is a Landsat image with gaps of data in it. Raster

I used Polygonize, but the output file shows wrong polygon size exactly where the gaps are. Polygons

Is it because of the gaps in the image? Is there any other way to find size of water from the raster?

Also, after installing QGIS 1.8, Grass 6.4.3 doesn't open. Can not find an answer why?

  • I believe there is open-source code written for this in ILWIS. I will have a look through my records and see if I can find it. Aaron - very good advice! :) May 15, 2013 at 15:52

1 Answer 1


In 2003 the Landsat 7 ETM sensor had an error in the scan line corrector. The gaps you are observing are a result of this sensor error. There are many ways to correct this issue. Essentially it requires that you find two similar images and fill in the gaps. In other words, there is another preprocessing step that is required. Some resources that may help you:

  1. Filling Gaps in Landsat ETM Images with ENVI
  2. Using interpolation to fill in gaps QGIS. This may work for you since you are only interested in water bodies.
  3. USGS "Dust & Scratches" filter solution using Adobe Photoshop and RGB 3-band image

I should also mention that you may have better success using different ETM bands for your analysis, such as nIR band 4. Since the nIR spectrum is almost entirely absorbed by water, you will likely be able to differentiate water from land much better.

  • Thank you. That is my problem. I don't have all ETM band files, I don't have ENVI or ERDAS and licenses for it. I have only two jpg files one of which is TIR band 4 (I used this file to create polygon). I took it from USGS website. I am also interested in size of vegetation. Any simplest ways to get this information from the raster files?
    – Sasha
    May 15, 2013 at 15:45
  • @Sasha What region are you working in?
    – Aaron
    May 15, 2013 at 15:48
  • It is Kazakhstan, Korgalzhyn (wetlands) Nature Reserve 50°26′00″N 69°11′20″E
    – Sasha
    May 15, 2013 at 15:50
  • Many thanks for the third advice about Photoshop filters! Will try it.
    – Sasha
    May 15, 2013 at 16:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.