[gdal-dev] GDAL python tools and batch files
Jonathan Moules
jonathanmoules at warwickshire.gov.uk
Mon Dec 2 03:12:13 PST 2013
Hi List,
I'm trying to batch (Windows) a fairly simple task - mosaic and then
pyramid some rasters.
While testing, I've simplified my batch file down to two lines:
gdal_merge -o %THIS_DIR%.tif -of GTiff -co TILED=YES -co BIGTIFF=YES -co
> COMPRESS=JPEG -co JPEG_QUALITY=80 -co BLOCKXSIZE=512 -co BLOCKYSIZE=512
> --optfile tiff_list.txt -co
> PHOTOMETRIC=YCBCR
>
> pause
The problem is that once gdal_merge has finished processing, rather than
continue onward the batch file ends, so in this case the "pause" is never
triggered. Doesn't matter what comes next, the batch ends as soon as the
merge is complete.
However the same simple batch file but with a gdaladdo command instead
works fine. Is this a python thing?
Anyone know why that is? Should it be doing this? Using the OSGeo GDAL
1.10.1 build, but it happened with FWTools too (thought it was a FWTools
bug at the time).
Tested on Windows 7 and Server 2008.
Cheers,
Jonathan
--
This transmission is intended for the named addressee(s) only and may
contain sensitive or protectively marked material up to RESTRICTED and
should be handled accordingly. Unless you are the named addressee (or
authorised to receive it for the addressee) you may not copy or use it, or
disclose it to anyone else. If you have received this transmission in error
please notify the sender immediately. All email traffic sent to or from us,
including without limitation all GCSX traffic, may be subject to recording
and/or monitoring in accordance with relevant legislation.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20131202/b219a28a/attachment.html>
More information about the gdal-dev
mailing list