fixes on raster resolution calculation