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

fixed a bug in Raster::writeRasterAsASC() and corrected a typo

parent b998c876
No related branches found
No related tags found
No related merge requests found
......@@ -67,8 +67,8 @@ GeoLib::Point const& Raster::getOrigin() const
void Raster::writeRasterAsASC(std::ostream &os) const
{
// write header
os << "ncols " << _n_rows << std::endl;
os << "nrows " << _n_cols << std::endl;
os << "ncols " << _n_cols << std::endl;
os << "nrows " << _n_rows << std::endl;
os << "xllcorner " << _ll_pnt[0] << std::endl;
os << "yllcorner " << _ll_pnt[1] << std::endl;
os << "cellsize " << _cell_size << std::endl;
......
......@@ -106,7 +106,7 @@ public:
~Raster();
/**
* Write meta data and raw raster data as asci file into the ouput stream.
* Write meta data and raw raster data as asci file into the output stream.
* @param os the output stream
*/
void writeRasterAsASC(std::ostream &os) const;
......
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