[gdal-dev] Additional arguments in gdal driver.CreateCopy function
Didier Bernard
deedeebernard at hotmail.com
Fri Apr 22 11:10:48 PDT 2016
Hello,
I would like to create a new .tif file in GDAL C# by using the driver.CreateCopy<http://www.gdal.org/classGDALDriver.html#a2c897da2a6e25169cccc49ef48797ce1> function.
I have been reading gdal tutorial page<http://www.gdal.org/gdal_tutorial.html> and it looks like the python version of driver.CreateCopy function supports the use of additional arguments. For example, it supports using 'TILED=YES' argument:
src_ds = gdal.Open( src_filename )
dst_ds = driver.CreateCopy( dst_filename, src_ds, 0,
[ 'TILED=YES', 'COMPRESS=PACKBITS' ] )
I assume this means it can also support an argument like: "-outsize 50% 50%" ?
If this is so, then how can I use the same argument ("-outsize 50% 50%") in C# version of driver.CreateCopy function? Something like:
driver.CreateCopy(filePath, dataset, False, "-outsize 50% 50%", null, null);
?
Thank you.
Didier
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20160422/e5d59bcd/attachment.html>
More information about the gdal-dev
mailing list