[Gdal-dev] ECW with gdal_translate, temp files
tflynch at gmail.com
Tue Mar 29 19:35:28 EST 2005
On Tue, 29 Mar 2005 13:09:54 -0500, Frank Warmerdam
<fwarmerdam at gmail.com> wrote:
> On Tue, 29 Mar 2005 20:05:51 +0200, Armin Burger <armin.burger at gmx.net> wrote:
> > Hello,
> > I compiled GDAL (daily build 20050329) with ECW support (binaries from gdal.org) under Linux. When I use gdal_translate to create an ECW or JP2 image, the conversion/compression seems to create temporary files: a directory with the name of the image and the extension .tmp under the root (/) partition and some files in it. My problem is that the '/' partition is too small to take all the temporary files, and the conversion crashes.
> > Does anybody know if there's a possibility specifying another temp directory for these files, e.g. by setting an environment variable? Or if not, by specifying the temp directory during compilation?
> You can set the TMP environment variable to the path to a different
> temporary directory.
Frank has it right. The ECW JPEG 2000 SDK uses a call to
getenv("TMP") to determine an appropriate temporary output directory
on most UNIXish operating systems. In the next distribution (which
will eventually be incorporated into GDAL) the temp output dir will
fall through more sensibly to "/tmp" in the event of the "TMP"
environment variable not being set.
Development, ER Mapper
Phone: +61 8 93882900
Fax: +61 8 93882901
Email: tom.lynch at ermapper.com
More information about the Gdal-dev