[GRASSLIST:1595] Re: hdf4 & gdal

Ivan Marchesini marchesini at unipg.it
Wed Oct 29 06:12:59 EST 2003


hi, thank you very much for the answer....
I tried to do the usual procedure:

configure
make
make install

and I obtained this:
___________________
gdalinfo --formats
Supported Formats:
  VRT: Virtual Raster
  GTiff: GeoTIFF
  HFA: Erdas Imagine Images (.img)
  SAR_CEOS: CEOS SAR Image
  CEOS: CEOS Image
  ELAS: ELAS
  AIG: Arc/Info Binary Grid
  AAIGrid: Arc/Info ASCII Grid
  SDTS: SDTS Raster
  DTED: DTED Elevation Raster
  PNG: Portable Network Graphics
  JPEG: JPEG JFIF
  MEM: In Memory Raster
  JDEM: Japanese DEM (.mem)
  GIF: Graphics Interchange Format (.gif)
  ESAT: Envisat Image Format (.N1)
  BSB: Maptech BSB Nautical Charts
  XPM: X11 PixMap Format (.xpm)
  PNM: Portable Pixmap Format (netpbm)
  DOQ1: USGS DOQ (Old Style)
  DOQ2: USGS DOQ (New Style)
  ENVI: ENVI .hdr Labelled
  EHdr: ESRI .hdr Labelled
  PAux: PCI .aux Labelled
  MFF: Atlantis MFF Raster
  MFF2: Atlantis MFF2 (HKV) Raster
  EFF: Eosat Fast Format
  FujiBAS: Fuji BAS Scanner Image
  FIT: FIT image
  USGSDEM: USGS Optional ASCII DEM
  GXF: GeoSoft Grid Exchange Format
_________________________________

It seems to me that there'is not the HDF exstension, what do you think about??
thank you very much

Ivan






Alle 10:54, mercoledì 29 ottobre 2003, Andrey Kiselev ha scritto:
> On Wed, Oct 29, 2003 at 10:21:36AM +0100, Ivan Marchesini wrote:
> > I have installed hdf 4.1r5 by rpm.
> > now I would want to reconfigure gdal to support hdf format, I tried
> > ./configure --with-hdf4=/usr/include , where the rpm package putted
> > tha hdf files, but it doesn't work..., I think, because after the make
> > I obtain:
> >
> > _____________________________________________________________
> > ..............
> > ..............
> > make[2]: Entering directory
> > `/home/ivan/Documents/GRASS/gdal-1.1.9/frmts/hdf4' g++ -c -I../..
> > -I../../port -I../../gcore -I../../ogr  -Wall -fPIC -O2 hdf4dataset.cpp
> > -o hdf4dataset.o
> > In file included from hdf4dataset.cpp:109:
> > /usr/include/mfhdf.h:25:20: netcdf.h: No such file or directory
> > make[2]: *** [hdf4dataset.o] Error 1
> > make[2]: Leaving directory
> > `/home/ivan/Documents/GRASS/gdal-1.1.9/frmts/hdf4' make[1]: ***
> > [sub-libs] Error 1
> > make[1]: Leaving directory `/home/ivan/Documents/GRASS/gdal-1.1.9/frmts'
> > make: *** [frmts-target] Error 2
> > _________________________________________________________________
> >
> >
> > instead, if I use ./configure without option I don't obtain errors...
> > so I think that the problem is in the option.....
>
> It should work automatically without any options. Try 'gdalinfo
> --formats' after building and search for the HDF4 one.
>
> --with-hdf4 should point to the HDF source tree if it is located in
> the unusual place.

-- 
Ivan Marchesini
University of Perugia 
Italy




More information about the grass-user mailing list