[gdal-dev] Working with NTF files [SEC=UNCLASSIFIED]

Pinner, Luke Luke.Pinner at environment.gov.au
Wed Jul 31 16:29:26 PDT 2013


%TEMP% is the Windows environment variable pointing to the temp directory.  For Unix/linux:


,--%<---

# set variable

export GDAL_PAM_PROXY_DIR=/tmp



# confirm

echo $GDAL_PAM_PROXY_DIR



/tmp

`--->%--

Luke

From: Nikos Alexandris [mailto:nik at nikosalexandris.net]
Sent: Wednesday, 31 July 2013 10:25 PM
To: gdal-dev at lists.osgeo.org
Cc: Pinner, Luke
Subject: Re: [gdal-dev] Working with NTF files


lpinner wrote:

> A workaround to your 2nd question is to set the GDAL_PAM_PROXY_DIR

> environment variable, either permanently or on the commandline before you

> call gdalinfo.

>

> set GDAL_PAM_PROXY_DIR=%TEMP%

> gdalinfo -stats some.ntf



Thank you Luke.





1st, that would be



,--%<---

# set variable

export GDAL_PAM_PROXY_DIR=%TEMP%



# confirm

echo $GDAL_PAM_PROXY_DIR



%TEMP%

`--->%--



in the bash-ystems I've used (now working in Funtoo).





2nd, it does not work as expected, see:



,--%<---

gdalinfo -nogcp -nomd M1BS.ntf



Driver: NITF/National Imagery Transmission Format

Files: M1BS.ntf

Size is 6876, 6897

Coordinate System is `'

Corner Coordinates:

Upper Left ( 0.0, 0.0)

Lower Left ( 0.0, 6897.0)

Upper Right ( 6876.0, 0.0)

Lower Right ( 6876.0, 6897.0)

Center ( 3438.0, 3448.5)

Band 1 Block=1024x1024 Type=UInt16, ColorInterp=Blue

Overviews: 3438x3448, 1719x1724, 859x862, 429x431, 214x215

Overviews: arbitrary

Band 2 Block=1024x1024 Type=UInt16, ColorInterp=Green

Overviews: 3438x3448, 1719x1724, 859x862, 429x431, 214x215

Overviews: arbitrary

Band 3 Block=1024x1024 Type=UInt16, ColorInterp=Red

Overviews: 3438x3448, 1719x1724, 859x862, 429x431, 214x215

Overviews: arbitrary

Band 4 Block=1024x1024 Type=UInt16, ColorInterp=Alpha

Overviews: 3438x3448, 1719x1724, 859x862, 429x431, 214x215

Overviews: arbitrary

Warning 1: GDALPamProxyDB::SaveDB() - Failed to lock %TEMP%/gdal_pam_proxy.dat file, proceeding anyways.

ERROR 1: Failed to save %TEMP%/gdal_pam_proxy.dat Pam Proxy DB.

No such file or directory

Warning 1: Unable to save auxilary information in %TEMP%/000000__vsisubfile_3469_M1BS.ntf.aux.xml.

Warning 1: Unable to save auxilary information in %TEMP%/000000__vsisubfile_3469_M1BS.ntf.aux.xml.

Warning 1: Unable to save auxilary information in %TEMP%/000000__vsisubfile_3469_M1BS.ntf.aux.xml.

Warning 1: Unable to save auxilary information in %TEMP%/000000__vsisubfile_3469_M1BS.ntf.aux.xml.

Warning 1: Unable to save auxilary information in %TEMP%/000000__vsisubfile_3469_M1BS.ntf.aux.xml.

`--->%--



Best, Nikos

If you have received this transmission in error please notify us immediately by return e-mail and delete all copies. If this e-mail or any attachments have been sent to you in error, that error does not constitute waiver of any confidentiality, privilege or copyright in respect of information in the e-mail or attachments.

Please consider the environment before printing this email.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20130731/bc0f4f70/attachment-0001.html>


More information about the gdal-dev mailing list