Sfoglia il codice sorgente

v.in.ogr: disable default spatial filter based on extents reported by OGR

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@73522 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Metz 6 anni fa
parent
commit
98ae9c16aa
1 ha cambiato i file con 3 aggiunte e 1 eliminazioni
  1. 3 1
      vector/v.in.ogr/main.c

+ 3 - 1
vector/v.in.ogr/main.c

@@ -2257,7 +2257,9 @@ int create_spatial_filter(ds_t Ogr_ds, OGRGeometryH *poSpatialFilter,
 		    ymaxl[layer] = MIN(ymaxl[layer], *ymax);
 		}
 	    }
-	    have_filter = 1;
+	    /* disable spatial filter based on extents as reported by OGR
+	     * because these extents can be wrong */ 
+	    /* have_filter = 1; */
 	}
 	else if (*xmin <= *xmax && *ymin <= *ymax) {
 	    xminl[layer] = *xmin;