diff --git a/GeoLib/Raster.cpp b/GeoLib/Raster.cpp
index fa9743f4411a08d7ff8c0b6da5db0a863bb8137f..efea0740bf1000bbaea5638147c3f02f52f1ab89 100644
--- a/GeoLib/Raster.cpp
+++ b/GeoLib/Raster.cpp
@@ -44,6 +44,10 @@ void Raster::refineRaster(std::size_t n_cols, std::size_t n_rows)
 	}
 
 	std::swap(_raster_data, new_raster_data);
+	_cell_size /= row_blk_size;
+	_n_cols = n_cols;
+	_n_rows = n_rows;
+
 	delete [] new_raster_data;
 }
 
diff --git a/GeoLib/Raster.h b/GeoLib/Raster.h
index f4a3d2e55db813774325b293e6913ab89183dc26..8301ab8f3062672fe69087e6699f1a2e3ae4c41f 100644
--- a/GeoLib/Raster.h
+++ b/GeoLib/Raster.h
@@ -25,6 +25,12 @@ public:
 	std::size_t getNCols() const { return _n_cols; }
 	std::size_t getNRows() const { return _n_rows; }
 
+	/**
+	 * get the distance between raster pixels
+	 * @return
+	 */
+	double getRasterPixelDistance() const { return _cell_size; }
+
 	/**
 	 * get the origin of lower left raster cell
 	 * @return the origin of the raster