ソースを参照

search box T,B must be zero

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@48852 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Metz 13 年 前
コミット
c00eeb66cf
1 ファイル変更2 行追加0 行削除
  1. 2 0
      vector/v.in.ogr/geom.c

+ 2 - 0
vector/v.in.ogr/geom.c

@@ -121,6 +121,8 @@ centroid(OGRGeometryH hGeom, CENTR * Centr, struct spatial_index *Sindex,
 	    double x, y;
 	    double x, y;
 
 
 	    Vect_line_box(Points, &box);
 	    Vect_line_box(Points, &box);
+	    /* centroid's z is set to zero */
+	    box.T = box.B = 0;
 	    Vect_spatial_index_select(Sindex, &box, List);
 	    Vect_spatial_index_select(Sindex, &box, List);
 
 
 	    for (i = 0; i < List->n_values; i++) {
 	    for (i = 0; i < List->n_values; i++) {