Le lundi 13 juin 2016 12:57:31, jramm a écrit : > Im using VectorTranslate and VectorTranslateOptions in python bindings. > > It seems like there is nothing equivalent to the ogr2ogr -clipsrc option in > VectorTranslateOptions. > > Is there another way of passing this in?
Yes, you can use any option available in the command line with the 'options' parameter gdal.VectorTranslate(out_ds, in_ds, options = '-clipsrc ....') or gdal.VectorTranslate(out_ds, in_ds, options = ['-clipsrc', ...] ) > > > > -- > View this message in context: > http://osgeo-org.1560.x6.nabble.com/Pass-clipsrc-to-VectorTranslateOptions > -tp5271367.html Sent from the GDAL - Dev mailing list archive at > Nabble.com. > _______________________________________________ > gdal-dev mailing list > gdal-dev@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/gdal-dev -- Spatialys - Geospatial professional services http://www.spatialys.com _______________________________________________ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev