5

I have raster data with height values (z). When I try to reproject/warp the raster to Gauss Kruger 3, the z-values are changing (several meters). (The data is already GK3, but I have to reproject them, because the clipper function does not work otherwise.)

Why is that?

0

2 Answers 2

5

Because the comments seem to have constituted a satisfactory answer, I am copying them here for the record (and adding a few edits to improve them).


How could the values not change? Consider what happens during the reprojection. Because the raster is truly being warped, each cell in the new version has to reflect some combination of values from the original raster. Except for some special cases there cannot possibly be a perfect match of values between the rasters.

(The "special cases" are where the amount of relative warping is so small that there is a one-to-one match between input and output cells and you specifically request that no interpolation be done--that is, you use "nearest-neighbor" interpolation.)

Perhaps what you should ask instead is "what can I do to control how the z-values are interpolated during the reprojection?"

So it's normal that the highest/lowest value changes about 10 meters? That's odd :/

That's not unusual: The default interpolation by most systems uses some kind of (weighted) average, such as "bilinear interpolation." Averaging, by its very nature, decreases large values and increases small ones. I have seen z-values for mountaintops decrease by over 100 meters upon reprojection. (This happened in a 1Km resolution DEM of Haiti, for instance.)

Understanding this phenomenon will help guide you towards effective strategies for maintaining raster data; in particular, one implication is that to minimize the errors that creep in during data processing, you want to minimize the number of reprojection procedures when going from raw data to the final data that are mapped or analyzed.

0
1

I was having this same problem with a USGS DEM because I failed to set the "Source CRS [optional]" in the QGIS Warp (Reproject) form. I was getting values (elevations) about 7% lower than they should have been.

I needed to set the source CRS to the original DEM projection (EPSG:26912 - NAD83 / UTM zone 12N). I described my problem and this solution in this question: Reprojecting (warp) raster changed the values of the reprojected raster QGIS

This could be your answer.

0

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