Hi,

I would like to use ogr2ogr for selecting all the features from the source 
layer that intersect with the reference layer but without computing the 
intersections. So fundamentally what the -spat option does but with more 
complicated geometries than BBOX. The -clipsrc option finds the right 
geometries but it also computes the intersections of the geometries and there 
is no way to avoid that.
I guess that something should be changed around 
https://github.com/OSGeo/gdal/blob/master/apps/ogr2ogr_lib.cpp#L4879 where the 
stolen geometry is changed into the clipped geometry.
I know I can use SQLite dialect by utilizing the  ST_Intersects function but 
SQL with JOIN gets a bit complicated.

-Jukka Rahkonen-


_______________________________________________
gdal-dev mailing list
gdal-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to