<meta http-equiv="Content-Type" content="text/html; charset=GB18030"><div>I am using OpenFileGDB driver to read .gdb data through the java binding,core codes:</div><div><br></div><div><div>        Layer layer = dataSource.GetLayer("layer_name");</div><div>        layer.SetSpatialFilterRect(minx,miny,maxx,maxy);</div><div>        System.out.println(layer.GetFeatureCount());</div><div>        layer.ResetReading();</div><div>        Feature feature = layer.GetNextFeature();</div><div>        while (feature != null) {</div><div>            feature = layer.GetNextFeature();</div><div>            //</div><div>        }</div></div><div><br></div><div>Now for a given feature I want to get the intersection geometry from the bounding box (the same as that used in the spatial filter), when using PostGIS, I can do that by</div><div><br></div><div>select ST_Intersect(geom,bbox) as clipped_geom from xx where geom && bbox.</div><div><br></div><div>So when using OpenFileGDB:</div><div><br></div><div>1 Can it do the intersection during the querying?</div><div><br></div><div>2 If not, does it mean I have to do the clip in java by myself? Does gdal provide some api?</div>