not using coords of center of pixel since it is now in origin coordinates
This commit is contained in:
parent
1edc6ceceb
commit
785303f2dc
1 changed files with 2 additions and 2 deletions
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue