[gdal-dev] clipping a vector to extent with gdal.VectorTranslate

Johan Van de Wauw johan.vandewauw at gmail.com
Fri Feb 3 01:45:37 PST 2017


Hi all,

We are using the new python function gdal.VectorTranslate which should
work similar to ogr2ogr.

We were able to use spatFilter to select only elements that intersect
(like the [-spat xmin ymin xmax ymax] operator.

But we failed to clip to the extent, similar to the
[-clipsrc [xmin ymin xmax ymax] option in ogr2ogr. Is this possible
with this function?

Kind Regards,
Johan


More information about the gdal-dev mailing list