[GRASS-SVN] r55748 - grass/trunk/vector/v.to.db

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Apr 13 06:52:58 PDT 2013


Author: mmetz
Date: 2013-04-13 06:52:57 -0700 (Sat, 13 Apr 2013)
New Revision: 55748

Modified:
   grass/trunk/vector/v.to.db/lines.c
Log:
v.to.db: fix indent

Modified: grass/trunk/vector/v.to.db/lines.c
===================================================================
--- grass/trunk/vector/v.to.db/lines.c	2013-04-13 13:50:47 UTC (rev 55747)
+++ grass/trunk/vector/v.to.db/lines.c	2013-04-13 13:52:57 UTC (rev 55748)
@@ -175,17 +175,17 @@
 		    Values[idx].d1 = len / dist;
 		}
 		else if (options.option == O_AZIMUTH && (type & GV_LINES)) {
-			/* Calculate azimuth between line start and end points in degrees */
-			dx = (Points->x[Points->n_points - 1] - Points->x[0]);
-			dy = (Points->y[Points->n_points - 1] - Points->y[0]);
-			/* If line is closed... */
-			if (dx == 0.0 && dy == 0.0)
-			    azimuth = -1;
-			else {
-			    azimuth = atan2(dx,dy);
-			    if (azimuth < 0) azimuth = azimuth + 2 * M_PI;
-			}
-			Values[idx].d1 = azimuth;
+		    /* Calculate azimuth between line start and end points in degrees */
+		    dx = (Points->x[Points->n_points - 1] - Points->x[0]);
+		    dy = (Points->y[Points->n_points - 1] - Points->y[0]);
+		    /* If line is closed... */
+		    if (dx == 0.0 && dy == 0.0)
+			azimuth = -1;
+		    else {
+			azimuth = atan2(dx,dy);
+			if (azimuth < 0) azimuth = azimuth + 2 * M_PI;
+		    }
+		    Values[idx].d1 = azimuth;
 		}
 
 		found = 1;
@@ -245,17 +245,17 @@
 		Values[idx].d1 = len / dist;
 	    }
 	    else if (options.option == O_AZIMUTH && (type & GV_LINES)) {
-		    /* Calculate azimuth between line start and end points in degrees */
-		    dx = (Points->x[Points->n_points - 1] - Points->x[0]);
-		    dy = (Points->y[Points->n_points - 1] - Points->y[0]);
-		    /* If line is closed... */
-		    if (dx == 0.0 && dy == 0.0)
-			azimuth = -1;
-		    else {
-			azimuth = atan2(dx,dy);
-			if (azimuth < 0) azimuth = azimuth + 2 * M_PI;
-		    }
-		    Values[idx].d1 = azimuth;
+		/* Calculate azimuth between line start and end points in degrees */
+		dx = (Points->x[Points->n_points - 1] - Points->x[0]);
+		dy = (Points->y[Points->n_points - 1] - Points->y[0]);
+		/* If line is closed... */
+		if (dx == 0.0 && dy == 0.0)
+		    azimuth = -1;
+		else {
+		    azimuth = atan2(dx,dy);
+		    if (azimuth < 0) azimuth = azimuth + 2 * M_PI;
+		}
+		Values[idx].d1 = azimuth;
 	    }
 	}
 	G_percent(line_num, nlines, 2);



More information about the grass-commit mailing list