[GRASS-SVN] r67568 - grass/trunk/vector/v.out.ogr
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Jan 12 08:55:45 PST 2016
Author: martinl
Date: 2016-01-12 08:55:45 -0800 (Tue, 12 Jan 2016)
New Revision: 67568
Modified:
grass/trunk/vector/v.out.ogr/export_areas.c
grass/trunk/vector/v.out.ogr/export_lines.c
Log:
fix indentation issue introduced in r67451
Modified: grass/trunk/vector/v.out.ogr/export_areas.c
===================================================================
--- grass/trunk/vector/v.out.ogr/export_areas.c 2016-01-12 16:35:06 UTC (rev 67567)
+++ grass/trunk/vector/v.out.ogr/export_areas.c 2016-01-12 16:55:45 UTC (rev 67568)
@@ -298,12 +298,11 @@
/* Area */
for (j = 0; j < Points->n_points; j++) {
- if (Vect_is_3d(In))
- OGR_G_AddPoint(ring, Points->x[j], Points->y[j],
- Points->z[j]);
+ if (Vect_is_3d(In))
+ OGR_G_AddPoint(ring, Points->x[j], Points->y[j],
+ Points->z[j]);
else
- OGR_G_AddPoint_2D(ring, Points->x[j], Points->y[j]);
-
+ OGR_G_AddPoint_2D(ring, Points->x[j], Points->y[j]);
}
OGR_G_AddGeometryDirectly(Ogr_geometry, ring);
@@ -316,11 +315,10 @@
ring = OGR_G_CreateGeometry(wkbLinearRing);
for (j = 0; j < Points->n_points; j++) {
if(Vect_is_3d(In))
- OGR_G_AddPoint(ring, Points->x[j], Points->y[j],
- Points->z[j]);
+ OGR_G_AddPoint(ring, Points->x[j], Points->y[j],
+ Points->z[j]);
else
- OGR_G_AddPoint_2D(ring, Points->x[j], Points->y[j]);
-
+ OGR_G_AddPoint_2D(ring, Points->x[j], Points->y[j]);
}
OGR_G_AddGeometryDirectly(Ogr_geometry, ring);
}
Modified: grass/trunk/vector/v.out.ogr/export_lines.c
===================================================================
--- grass/trunk/vector/v.out.ogr/export_lines.c 2016-01-12 16:35:06 UTC (rev 67567)
+++ grass/trunk/vector/v.out.ogr/export_lines.c 2016-01-12 16:55:45 UTC (rev 67568)
@@ -95,16 +95,18 @@
if (OGR_G_GetGeometryType(Ogr_geometry) == wkbPoint) {
/* GV_POINTS -> wkbPoint */
if (Vect_is_3d(In))
- OGR_G_AddPoint(Ogr_geometry, Points->x[0], Points->y[0],
- Points->z[0]);
- else OGR_G_AddPoint_2D(Ogr_geometry, Points->x[0], Points->y[0]);
+ OGR_G_AddPoint(Ogr_geometry, Points->x[0], Points->y[0],
+ Points->z[0]);
+ else
+ OGR_G_AddPoint_2D(Ogr_geometry, Points->x[0], Points->y[0]);
}
else { /* GV_LINES -> wkbLinestring */
for (j = 0; j < Points->n_points; j++) {
- if (Vect_is_3d(In))
- OGR_G_AddPoint(Ogr_geometry, Points->x[j], Points->y[j],
- Points->z[j]);
- else OGR_G_AddPoint_2D(Ogr_geometry, Points->x[j], Points->y[j]);
+ if (Vect_is_3d(In))
+ OGR_G_AddPoint(Ogr_geometry, Points->x[j], Points->y[j],
+ Points->z[j]);
+ else
+ OGR_G_AddPoint_2D(Ogr_geometry, Points->x[j], Points->y[j]);
}
}
}
More information about the grass-commit
mailing list