[Qgis-developer] Raster clipper: shifted results

Agustin Lobo alobolistas at gmail.com
Wed Dec 15 10:32:35 EST 2010


Hi!

I think the way the area to be clipped is set in raster/clipper is wrong.
Currently, for results to be correct, the area to be clipped must be
coincident with pixel boundaries. In other
words, the 4 corners must be pixel corners.
If the corners of the defined area are within the pixel, the result is
shifted, as it is not interpolated.

I think that if no interpolation is the goal, then the coordinates
entered by the user should be moved to the closest
pixel corners, and the user be warned. Then the clipping would be exact.

If floating clipping is the goal, then the user must enter the
resolution of the new raster and interpolation must
be performed.

Obviously having the option would be the best, but as the second
option is more complicated, having the first one
implemented first would make a lot of sense.

I've put a zipped file with a qgis project and layers to illustrate
the problem here:

https://sites.google.com/site/filestemp2/home/clip_problem.zip

Agus


More information about the Qgis-developer mailing list