[GRASS-SVN] r56454 - grass/trunk/lib/vector/Vlib
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue May 28 05:55:36 PDT 2013
Author: martinl
Date: 2013-05-28 05:55:35 -0700 (Tue, 28 May 2013)
New Revision: 56454
Modified:
grass/trunk/lib/vector/Vlib/open_pg.c
Log:
vlib(pg): enable attaching centroids for topo-geo-only mode
Modified: grass/trunk/lib/vector/Vlib/open_pg.c
===================================================================
--- grass/trunk/lib/vector/Vlib/open_pg.c 2013-05-28 12:29:26 UTC (rev 56453)
+++ grass/trunk/lib/vector/Vlib/open_pg.c 2013-05-28 12:55:35 UTC (rev 56454)
@@ -1449,9 +1449,10 @@
}
plus->built = GV_BUILD_ATTACH_ISLES;
- /* attach centroids (disabled: centroids are already attached) */
-#if 0
- if (plus->n_areas > 0) {
+ /* attach centroids */
+ if (pg_info->topo_geo_only && plus->n_areas > 0) {
+ int area;
+ struct P_area *Area;
struct P_topo_c *topo;
for (line = 1; line <= plus->n_lines; line++) {
@@ -1467,7 +1468,6 @@
Area->centroid = Line->offset;
}
}
-#endif
plus->built = GV_BUILD_CENTROIDS;
/* done */
More information about the grass-commit
mailing list