[GRASS-SVN] r71326 - grass/trunk/imagery/i.ortho.photo/i.ortho.rectify
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Aug 4 10:30:13 PDT 2017
Author: ychemin
Date: 2017-08-04 10:30:13 -0700 (Fri, 04 Aug 2017)
New Revision: 71326
Modified:
grass/trunk/imagery/i.ortho.photo/i.ortho.rectify/readcell.c
Log:
Fixed readcell to read rows and columns from source or target
Modified: grass/trunk/imagery/i.ortho.photo/i.ortho.rectify/readcell.c
===================================================================
--- grass/trunk/imagery/i.ortho.photo/i.ortho.rectify/readcell.c 2017-08-04 17:20:27 UTC (rev 71325)
+++ grass/trunk/imagery/i.ortho.photo/i.ortho.rectify/readcell.c 2017-08-04 17:30:13 UTC (rev 71326)
@@ -24,15 +24,17 @@
int nblocks;
int i;
- if (target_env)
+ if (target_env){
select_target_env();
- else
+ nrows = Rast_output_window_rows();
+ ncols = Rast_output_window_cols();
+ }else{
select_current_env();
-
+ nrows = Rast_input_window_rows();
+ ncols = Rast_input_window_cols();
+ }
G_srand48(0);
- nrows = Rast_window_rows();
- ncols = Rast_window_cols();
/* Temporary file must be created in the same location/mapset
* where the module was called */
More information about the grass-commit
mailing list