diff --git a/GeoLib/Raster.cpp b/GeoLib/Raster.cpp index 73428b7e2eeca40b0d2f5f471ae9c7306b4f407e..3f3d4a3bb648f4c0e84542cb2c05512d9876ddc0 100644 --- a/GeoLib/Raster.cpp +++ b/GeoLib/Raster.cpp @@ -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; diff --git a/GeoLib/Raster.h b/GeoLib/Raster.h index ff8830f3bd5153933dacf7524d0140a4c0af3852..6b3da3409995cbedb6739eb9a73a6c70f56f245f 100644 --- a/GeoLib/Raster.h +++ b/GeoLib/Raster.h @@ -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;