From 5768581c10ad240c0811a271459583998a8722be Mon Sep 17 00:00:00 2001 From: Geoff McLane Date: Mon, 13 Apr 2009 17:04:07 +0200 Subject: [PATCH] Allow non-integer steps\n\nFor ASCII DEM with say 0.75 step --- src/Lib/DEM/dem.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Lib/DEM/dem.cxx b/src/Lib/DEM/dem.cxx index 2835d2ba..e98e9e15 100644 --- a/src/Lib/DEM/dem.cxx +++ b/src/Lib/DEM/dem.cxx @@ -470,8 +470,8 @@ TGDem::write_area( const string& root, SGBucket& b, bool compress ) { } fprintf( fp, "%d %d\n", (int)min_x, (int)min_y ); - fprintf( fp, "%d %d %d %d\n", span_x + 1, (int)col_step, - span_y + 1, (int)row_step ); + fprintf( fp, "%d %f %d %f\n", span_x + 1, col_step, + span_y + 1, row_step ); for ( int i = start_x; i <= start_x + span_x; ++i ) { for ( int j = start_y; j <= start_y + span_y; ++j ) { fprintf( fp, "%d ", (int)dem_data[i][j] );