[gdal-dev] ogr2ogr: -clipsrc but select-only without clipping?
Rahkonen Jukka
jukka.rahkonen at maanmittauslaitos.fi
Wed Sep 28 12:57:35 PDT 2022
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-
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20220928/eaf9327e/attachment.htm>
More information about the gdal-dev
mailing list