not using coords of center of pixel since it is now in origin coordinates

This commit is contained in:
Alberto Valverde 2011-09-13 23:55:04 +00:00
parent 1edc6ceceb
commit 785303f2dc

View file

@ -81,8 +81,8 @@ static inline void resample_raster(raster &target, raster const& source,
// Precalculate reprojected mesh
for(j=0; j<mesh_ny; j++) {
for (i=0; i<mesh_nx; i++) {
xs(i,j) = i*mesh_size+.5;
ys(i,j) = j*mesh_size+.5;
xs(i,j) = i*mesh_size;
ys(i,j) = j*mesh_size;
ts.backward(&xs(i,j), &ys(i,j));
}
}