[gdal-dev] Working with NTF files

Nikos Alexandris nik at nikosalexandris.net
Wed Jul 31 05:24:51 PDT 2013


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20130731/00f669dd/attachment-0001.html>


More information about the gdal-dev mailing list