[Gdal-dev] gdal formats

Frank Warmerdam warmerdam at pobox.com
Wed May 23 19:31:38 EDT 2007


Gong, Shawn (Contractor) wrote:
> The gdal/frmts/ contents include png/gtiff/libtiff
> 1) There is no libz under gdal/frmts/, but zlib instead.  Is zlib=libz?

Shawn,

Yes, zlib == libz.

> 2) Since I have installed zlib/jpeg, I should set them as external,
> right?

You can, and there is likely no harm in doing so.

> 3) The gdal/frmts/ contents also include hdf4/hdf5/jpeg2000
> Doest it mean that I can use these internal libraries? I thought that
> HDF4/5 needs to be downloaded from HDF group.

hdf4, hdf5 and jpeg2000 all require external support libraries.

> 4) Assume that internal hdf4/hdf5 support are ok, the followings lines
> in GDALmake.opt need to be changed to:
> 	# HDF4 Support.
> 	HAVE_HDF5     = yes
> 	HDF4_INCLUDE  =  -I$(frmts/hdf4)
> 
> 	# HDF5 Support.
> 	HAVE_HDF5     = yes
> 	HDF5_INCLUDE  =  -I$(frmts/hdf5)
> Is this right?  Do I need to add -L flags?

No.  I'd suggest you configure to use the external libraries.  If
that doesn't work you can fiddle with the GDALmake.opt manually.

> 5) what about jpeg2000, do I need to download JasPer?  Or 
> 	# JPEG-2000 Support via JasPer library.
> 	HAVE_JASPER     = yes
> 	JASPER_INCLUDE  = -I$(frmts/jpeg2000)

Yes

> Do I need to change proj4 setting?
> 	PROJ_STATIC	=	no

This can normally be left as "no".  GDAL will load libproj.so at
runtime if it finds it.  While arguably this was a bizarre approach,
it was done to reduce the number of GDAL build time dependencies.

Best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | President OSGeo, http://osgeo.org




More information about the Gdal-dev mailing list