[GRASS-SVN] r55284 - grass/trunk/vector/v.in.ogr
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Mar 4 12:32:00 PST 2013
Author: mmetz
Date: 2013-03-04 12:32:00 -0800 (Mon, 04 Mar 2013)
New Revision: 55284
Modified:
grass/trunk/vector/v.in.ogr/geom.c
Log:
v.in.ogr: prune input
Modified: grass/trunk/vector/v.in.ogr/geom.c
===================================================================
--- grass/trunk/vector/v.in.ogr/geom.c 2013-03-04 09:00:05 UTC (rev 55283)
+++ grass/trunk/vector/v.in.ogr/geom.c 2013-03-04 20:32:00 UTC (rev 55284)
@@ -276,6 +276,7 @@
Vect_append_point(Points, OGR_G_GetX(hGeom, i),
OGR_G_GetY(hGeom, i), OGR_G_GetZ(hGeom, i));
}
+ Vect_line_prune(Points);
if (type & GV_BOUNDARY)
otype = GV_BOUNDARY;
else
@@ -308,6 +309,7 @@
Vect_append_point(Points, OGR_G_GetX(hRing, j),
OGR_G_GetY(hRing, j), OGR_G_GetZ(hRing, j));
}
+ Vect_line_prune(Points);
/* Degenerate is not ignored because it may be useful to see where it is,
* but may be eliminated by min_area option */
@@ -353,6 +355,7 @@
OGR_G_GetY(hRing, j),
OGR_G_GetZ(hRing, j));
}
+ Vect_line_prune(IPoints[valid_isles]);
if (IPoints[valid_isles]->n_points < 4)
G_warning(_("Degenerate island ([%d] vertices)"),
More information about the grass-commit
mailing list