[GRASS-SVN] r43041 - grass/trunk/vector/v.in.ogr

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Aug 11 07:43:33 EDT 2010


Author: mmetz
Date: 2010-08-11 11:43:33 +0000 (Wed, 11 Aug 2010)
New Revision: 43041

Modified:
   grass/trunk/vector/v.in.ogr/main.c
Log:
boundary splitting: activate polygon count

Modified: grass/trunk/vector/v.in.ogr/main.c
===================================================================
--- grass/trunk/vector/v.in.ogr/main.c	2010-08-11 11:40:29 UTC (rev 43040)
+++ grass/trunk/vector/v.in.ogr/main.c	2010-08-11 11:43:33 UTC (rev 43041)
@@ -842,10 +842,10 @@
 	OGR_L_ResetReading(Ogr_layer);
 	feature_count = 0;
 
-	G_debug(0, "n polygon boundaries: %d", n_polygon_boundaries);
+	G_debug(1, "n polygon boundaries: %d", n_polygon_boundaries);
 	if (split_distance > -0.5 && n_polygon_boundaries > 50) {
 	    split_distance =
-		area_size / log(n_features);
+		area_size / log(n_polygon_boundaries);
 	    /* divisor is the handle: increase divisor to decrease split_distance */
 	    split_distance = split_distance / 4.;
 	    G_debug(1, "root of area size: %f", area_size);



More information about the grass-commit mailing list