Changes between Initial Version and Version 2 of Ticket #2282
- Timestamp:
- Jul 15, 2008, 3:47:16 AM (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #2282
- Property Cc added
- Property Keywords ubuntu hdf added; Ubuntu 7.10 gdal build from source HDF removed
-
Ticket #2282 – Description
initial v2 1 1 OS: Ubuntu 7.10, 64-bit 2 2 3 Already installed: proj, libtiff, libgeotiff, expat, sqlite (from Ubuntu repositories), grass (build from source with 64-bit support), qgis 0.9.1 (build from source with 64-bit support) 3 4 4 * gdalinfo/ gdalwarp fail WORK fine with a MOD09 product acquired on 2006. However they fail with a MOD09 acquired on 20075 * gdalinfo/ gdalwarp fail WORK fine with a MOD09 product acquired on 2006. However they fail with a MOD09 acquired on 2007 5 6 6 7 Question: Is it a bug or is it a mis-configuration of HDF5? 7 8 8 1. svn checkout https://svn.osgeo.org/gdal/branches/1.5/gdal gdal9 1. svn checkout https://svn.osgeo.org/gdal/branches/1.5/gdal gdal 9 10 10 2. CFLAGS="-g -Wall" LDFLAGS="-s" ./configure --with-grass=/usr/local/grass-6.3.svn/ --with-libgrass=/usr/lib/gdalplugins/gdal_GRASS.so --with-png=internal --with-libtiff=/usr/lib --with-geotiff=/usr/lib/libtiff --with-jpeg=internal --with-gif=internal --with-ecw=yes --with-expat=yes --with-expat-inc=/usr/include/ --with-expat-lib=/usr/lib --with-sqlite3=yes --with-geos=yes --with-python 11 2. 12 {{{ 13 CFLAGS="-g -Wall" LDFLAGS="-s" ./configure 14 --with-grass=/usr/local/grass-6.3.svn/ 15 --with-libgrass=/usr/lib/gdalplugins/gdal_GRASS.so 16 --with-png=internal --with-libtiff=/usr/lib 17 --with-geotiff=/usr/lib/libtiff --with-jpeg=internal 18 --with-gif=internal --with-ecw=yes --with-expat=yes 19 --with-expat-inc=/usr/include/ --with-expat-lib=/usr/lib 20 --with-sqlite3=yes --with-geos=yes --with-python 21 }}} 11 22 12 23 Ends up with no errors (various WARNINGS during configuration process) 13 24 14 3. make 15 4. sudo make install 25 3. Build 26 {{{ 27 make 28 }}} 16 29 17 5.1. gdalinfo --version 30 4. Install 31 {{{ 32 sudo make install 33 }}} 34 35 5. gdalinfo --version 36 {{{ 18 37 GDAL 1.5.1, released 2008/03/14 38 }}} 19 39 20 5.2. which gdalinfo 40 5.1. which gdalinfo 41 {{{ 21 42 /usr/local/bin/gdalinfo 43 }}} 22 44 23 5.3. gdalinfo --formats | grep HDF 45 5.2. gdalinfo --formats | grep HDF 46 {{{ 24 47 HDF4 (ro): Hierarchical Data Format Release 4 25 48 HDF4Image (rw+): HDF4 Dataset 26 49 HDF5 (ro): Hierarchical Data Format Release 5 27 50 HDF5Image (ro): HDF5 Dataset 51 }}} 28 52 29 6. gdalinfo MOD09GQK.A2006239.h19v05.004.2006241155630.hdf # This is successful - note: it's a 2006 MOD09 product 53 6. gdalinfo MOD09GQK.A2006239.h19v05.004.2006241155630.hdf 54 This is successful - note: it's a 2006 MOD09 product 30 55 56 {{{ 31 57 Driver: HDF4/Hierarchical Data Format Release 4 32 58 Files: MOD09GQK.A2006239.h19v05.004.2006241155630.hdf … … 50 76 Lower Right ( 512.0, 512.0) 51 77 Center ( 256.0, 256.0) 78 }}} 52 79 53 7. gdalinfo MOD09GQ.A2007242.h19v05.005.2007244231200.hdf # Fails - note: this is a 2007 MOD09 product 80 7. gdalinfo MOD09GQ.A2007242.h19v05.005.2007244231200.hdf 81 Fails - note: this is a 2007 MOD09 product 82 {{{ 54 83 Segmentation fault (core dumped) 84 }}} 55 85 56 8.1 ~/FWTools-2.0.6/bin$ ./gdalinfo --formats | grep HDF 57 HDF4 (ro): Hierarchical Data Format Release 4 86 8. ~/FWTools-2.0.6/bin$ ./gdalinfo --formats | grep HDF 87 {{{ 88 HDF4 (ro): Hierarchical Data Format Release 4 58 89 HDF4Image (rw+): HDF4 Dataset 90 }}} 59 91 60 8.2 ~/FWTools-2.0.6/bin$ ./gdalinfo /home/nik/grassdb/tmp/30.08.2007/250m/MOD09GQ.A2007242.h19v05.005.2007244231200.hdf -nomd 92 8.1. ~/FWTools-2.0.6/bin$ ./gdalinfo /home/nik/grassdb/tmp/30.08.2007/250m/MOD09GQ.A2007242.h19v05.005.2007244231200.hdf -nomd 93 {{{ 61 94 Driver: HDF4/Hierarchical Data Format Release 4 62 95 Files: /home/nik/grassdb/tmp/30.08.2007/250m/MOD09GQ.A2007242.h19v05.005.2007244231200.hdf … … 80 113 Lower Right ( 512.0, 512.0) 81 114 Center ( 256.0, 256.0) 115 }}} 82 116 83 9. # The same with behaviour with: 117 9. The same with behaviour with: 118 {{{ 84 119 gdalinfo --version 85 120 GDAL 1.5.0, released 2007/12/18 121 }}}