Skip to content
Snippets Groups Projects
Commit 1ee60983 authored by Karsten Rink's avatar Karsten Rink Committed by Tom Fischer
Browse files

adjusting signature of raster ctor

parent bde534d1
No related branches found
No related tags found
No related merge requests found
......@@ -132,8 +132,7 @@ int main(int argc, char* argv[])
std::string const basename = BaseLib::dropFileExtension(filename);
std::string const ext = BaseLib::getFileExtension(filename);
GeoLib::RasterHeader h (h1);
GeoLib::Raster r(std::move(h), raster[i].begin(), raster[i].end());
GeoLib::Raster r(h1, raster[i].begin(), raster[i].end());
FileIO::AsciiRasterInterface::writeRasterAsASC(r, basename + std::to_string(i) + "." + ext);
INFO("Layer %d written.", i+1);
}
......
......@@ -54,7 +54,7 @@ public:
* @param end input iterator pointing to the last element of the data, end have to be reachable from begin
*/
template <typename InputIterator>
Raster(RasterHeader&& header, InputIterator begin, InputIterator end)
Raster(RasterHeader header, InputIterator begin, InputIterator end)
: _header(std::move(header)),
_raster_data(new double[_header.n_cols * _header.n_rows])
{
......
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