[GRASS-SVN] r48850 - grass/branches/releasebranch_6_4/vector/v.in.ogr

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Oct 19 02:48:22 EDT 2011


Author: mmetz
Date: 2011-10-18 23:48:21 -0700 (Tue, 18 Oct 2011)
New Revision: 48850

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

Modified: grass/branches/releasebranch_6_4/vector/v.in.ogr/geom.c
===================================================================
--- grass/branches/releasebranch_6_4/vector/v.in.ogr/geom.c	2011-10-18 15:15:21 UTC (rev 48849)
+++ grass/branches/releasebranch_6_4/vector/v.in.ogr/geom.c	2011-10-19 06:48:21 UTC (rev 48850)
@@ -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