hi list, I found help clues to build libecwj2 on Windows. The missing winhttp.h can be found in Microsoft Platform SDK for Windows Server 2003 SP1. But on Microsoft site, this has been superceded by the Windows SDK for Windows Server 2008 and .NET Framework 3.5. I found the original file at http://download.cnet.com/Windows-Server-2003-SP1-Platform-SDK-ISO-Instal l/3000-2070_4-10731571.html Installed it and followed the instructions on http://lists.maptools.org/pipermail/fwtools/2008-April/001213.html to set the Include and Library Files. Successfully built libecwj2 and added it to gdal (stable branch 2009-08-03). "gdalinfo --format ecw" also works.
However when I tried to open GeoEye-1 NITF, I got "Warning 1: Image with 11 bits per sample will not be interpreted properly". There are two sub-datasets in NITF (please see the gdalinfo at the end). If I open the 2nd sub-dataset, the data show only 73 pixels and 220 lines; digital numbers are either 0 or 255. If I open the 1st sub-dataset, python.exe crashed at ncsjpcbuffer.cpp's CNCSJPCBuffer::~CNCSJPCBuffer() { Free(); } The OpenEV from FWTools2.3.0 behaves the same. I found this Gdal-dev post: http://lists.osgeo.org/pipermail/gdal-dev/2007-December/015139.html Does that mean the 11-bit NITF data will be corrupted that I cannot read them using Gdal? I can view GeoEye-1 NITF images using PCI Geomatica. BTW, I tried to build the nitfdump utility "nmake /f makefile.vc nitfdump.exe" /out:nitfdump.exe nitfdump.obj nitffile.obj nitfimage.obj mgrs.obj nitfaridpcm.obj nitfbilevel.obj rpftocfile.obj ..\gtiff\tifvsi.obj ..\..\gdal_i.lib Creating library nitfdump.lib and object nitfdump.exp nitfbilevel.obj : error LNK2019: unresolved external symbol _TIFFReadEncodedStrip referenced in function _NITFUncompressBILEVEL nitfbilevel.obj : error LNK2019: unresolved external symbol _TIFFClose referenced in function _NITFUncompressBILEVEL nitfbilevel.obj : error LNK2019: unresolved external symbol _TIFFWriteDirectoryreferenced in function _NITFUncompressBILEVEL nitfbilevel.obj : error LNK2019: unresolved external symbol _TIFFWriteRawStrip referenced in function _NITFUncompressBILEVEL nitfbilevel.obj : error LNK2019: unresolved external symbol _TIFFSetField referenced in function _NITFUncompressBILEVEL tifvsi.obj : error LNK2019: unresolved external symbol _TIFFError referenced in function "struct tiff * __cdecl VSI_TIFFOpen(char const *,char const *)" (?VSI_TIFFOpen@@YAPAUtiff@@p...@z) nitfdump.exe : fatal error LNK1120: 6 unresolved externals NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 8\VC\BIN\c l.EXE"' : return code '0x2' Stop. thanks, Shawn some gdalinfo ============================= Size is 9376, 28778 Image Structure Metadata: COMPRESSION=JPEG2000 Subdatasets: SUBDATASET_1_NAME=NITF_IM:0:21JUN09OV05010005V090621M0002821014A22200010 0292M_001526813.ntf SUBDATASET_1_DESC=Image 1 of 21JUN09OV05010005V090621M0002821014A222000100292M_001526813.ntf SUBDATASET_2_NAME=NITF_IM:1:21JUN09OV05010005V090621M0002821014A22200010 0292M_001526813.ntf SUBDATASET_2_DESC=Image 2 of 21JUN09OV05010005V090621M0002821014A222000100292M_001526813.ntf Band 1 Block=9376x1 Type=UInt16, ColorInterp=Blue Overviews: arbitrary Band 2 Block=9376x1 Type=UInt16, ColorInterp=Green Overviews: arbitrary Band 3 Block=9376x1 Type=UInt16, ColorInterp=Red Overviews: arbitrary Band 4 Block=9376x1 Type=UInt16, ColorInterp=Undefined Overviews: arbitrary
_______________________________________________ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev