Re: [gdal-dev] Clip feature while query from .gdb using OpenFileGDB driver

2020-09-30 Thread jratike80
Hi, You can use gdal.VectorTranslate with the same options that ogr2ogr utility supports https://gdal.org/programs/ogr2ogr.html. That includes -clipsrc [xmin ymin xmax ymax]|WKT|datasource|spat_extent "Clip geometries to the specified bounding box (expressed in source SRS), WKT geometry (POLYGON

[gdal-dev] Clip feature while query from .gdb using OpenFileGDB driver

2020-09-30 Thread Yang
I am using OpenFileGDB driver to read .gdb data through the java binding,core codes:         Layer layer = dataSource.GetLayer("layer_name");         layer.SetSpatialFilterRect(minx,miny,maxx,maxy);         System.out.println(layer.GetFeatureCount());         layer.ResetReading();         Featur