1

So I have this slope tiff image that I created using a DEM reprojected in meters. When I view it in QGIS, it shows fine. If I try to edit the picture in paint or Gimp afterwards, I dont see the same as in QGIS. What the cause of this? I have also produced a Hillshade tiff image and it works fine both in QGIS and in paint or Gimp as a grayscale image. Pictures below explain it better. One thing that I am considering is the fact that the pixel values in the Slope image are float numbers whereas in the Hillshade image, they are integers. This might cause the issue but I would like to hear any solutions.

Slope in QGIS

Slope in paint

1 Answer 1

3

You're exactly right that it's because the image is in floating points. Paint will look for images to have ranges between 0 and 255 integers (8 bit) as unsigned integers. Each corresponds to a gray shade. Images work in integers, so when you put it is as floating points I honestly don't know what happens, but it doesn't read it correctly. It's also likely that the histogram in QGIS is being scaled to fit the range and frequency of data.

Your best bet would be to play around with reclassifying the floating points into unsigned integers ranging between 0 and 255. How you scale that data is up to you and how you want to represent it cartographically.

1
  • The thing is that the values of the slope image are percent slope. I guess I could somehow round them up so that they become integers. Thanks for verifying my speculation
    – Stelios M
    Commented May 7, 2015 at 18:12

Your Answer

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

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