[GRASS-SVN] r53116 - grass-addons/grass6/raster/r.connectivity.distance

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Sep 7 01:56:32 PDT 2012


Author: sbl
Date: 2012-09-07 01:56:32 -0700 (Fri, 07 Sep 2012)
New Revision: 53116

Modified:
   grass-addons/grass6/raster/r.connectivity.distance/r.connectivity.distance
Log:
Fix boundary extraction bug

Modified: grass-addons/grass6/raster/r.connectivity.distance/r.connectivity.distance
===================================================================
--- grass-addons/grass6/raster/r.connectivity.distance/r.connectivity.distance	2012-09-07 08:51:36 UTC (rev 53115)
+++ grass-addons/grass6/raster/r.connectivity.distance/r.connectivity.distance	2012-09-07 08:56:32 UTC (rev 53116)
@@ -354,10 +354,10 @@
 #Extract boundaries from patch raster map
 r.mapcalc "${PREFIX}_patches_boundary=if(${PREFIX}_patches_pol,\
 	if((\
-	(${PREFIX}_patches_pol[-1,0]!=${PREFIX}_patches_pol)|||\
-	(${PREFIX}_patches_pol[0,1]!=${PREFIX}_patches_pol)|||\
-	(${PREFIX}_patches_pol[1,0]!=${PREFIX}_patches_pol)|||\
-	(${PREFIX}_patches_pol[0,-1]!=${PREFIX}_patches_pol)),${PREFIX}_patches_pol,null()),\
+	(isnull(${PREFIX}_patches_pol[-1,0])|||${PREFIX}_patches_pol[-1,0]!=${PREFIX}_patches_pol)|||\
+	(isnull(${PREFIX}_patches_pol[0,1])|||${PREFIX}_patches_pol[0,1]!=${PREFIX}_patches_pol)|||\
+	(isnull(${PREFIX}_patches_pol[1,0])|||${PREFIX}_patches_pol[1,0]!=${PREFIX}_patches_pol)|||\
+	(isnull(${PREFIX}_patches_pol[0,-1])|||${PREFIX}_patches_pol[0,-1]!=${PREFIX}_patches_pol)),${PREFIX}_patches_pol,null()),\
 	null())"
 
 #Init output vector maps if they are requested by user



More information about the grass-commit mailing list