[gdal-dev] feeding input files into gdal_merge.py
Etienne Tourigny
etourigny.dev at gmail.com
Wed Jul 9 10:17:52 PDT 2014
this is not really related to gdal but to python... you should try using
shell=False and adding the entire command in one argument instead of an
array, but I'm not sure that the file globbing (*.tif) would work.
On Wed, Jul 9, 2014 at 12:31 PM, bas smit <baspysmit at gmail.com> wrote:
> While merging the files using gdal_merge.py the following code works:
>
> subprocess.call([sys.executable,gmerge,'-o','C:\\r.tif','-of','GTiff','D:\\a.tif','D:\\b.tif'],shell=True)
>
> However, when the input files are numerous, each file can not be inserted
> separately. In this case, the following code does not work:
>
> subprocess.call([sys.executable,gmerge,'-o','C:\\r.tif','-of','GTiff','D:\\*.tif'],shell=True)
>
> I did not know how to input the input files. Any idea is welcomed.
>
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20140709/90382f0f/attachment.html>
More information about the gdal-dev
mailing list