Skip to content
Snippets Groups Projects
Commit 521ae81d authored by Tom Fischer's avatar Tom Fischer
Browse files

added public method Raster::getRasterPixelDistance(), bugfix for...

added public method Raster::getRasterPixelDistance(), bugfix for Raster::refineRaster() - update now internal attributes
parent dffaa076
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment