[gdal-dev] Pass clipsrc to VectorTranslateOptions
Even Rouault
even.rouault at spatialys.com
Mon Jun 13 04:20:40 PDT 2016
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 at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
--
Spatialys - Geospatial professional services
http://www.spatialys.com
More information about the gdal-dev
mailing list