[GRASS-SVN] r48851 - grass/branches/develbranch_6/vector/v.in.ogr

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Oct 19 02:49:11 EDT 2011


Author: mmetz
Date: 2011-10-18 23:49:11 -0700 (Tue, 18 Oct 2011)
New Revision: 48851

Modified:
   grass/branches/develbranch_6/vector/v.in.ogr/geom.c
Log:
search box T,B must be zero

Modified: grass/branches/develbranch_6/vector/v.in.ogr/geom.c
===================================================================
--- grass/branches/develbranch_6/vector/v.in.ogr/geom.c	2011-10-19 06:48:21 UTC (rev 48850)
+++ grass/branches/develbranch_6/vector/v.in.ogr/geom.c	2011-10-19 06:49:11 UTC (rev 48851)
@@ -121,6 +121,8 @@
 	    double x, y;
 
 	    Vect_line_box(Points, &box);
+	    /* centroid's z is set to zero */
+	    box.T = box.B = 0;
 	    Vect_spatial_index_select(Sindex, &box, List);
 
 	    for (i = 0; i < List->n_values; i++) {



More information about the grass-commit mailing list