The Geospatial Data Abstraction Library (GDAL) is a translator library for raster geospatial data formats that is released under an X/MIT style Open Source license by the Open Source Geospatial Foundation. As a library, it presents a single abstract data model to the calling application for all supported formats. It also comes with a variety of useful command line utilities for data translation and processing.
At this link a rich GUI-based guide is provided.
Linux OS - Ubuntu
The following passages are sufficient:
cd /tmp mkdir gdal-linux cd gdal-linux sudo apt-get install build-essential python-all-dev wget http://download.osgeo.org/gdal/gdal-1.9.0.tar.gz tar xvfz gdal-1.9.0.tar.gz cd gdal-1.9.0 ./configure --with-python make make install Example of test: /usr/bin/gdal_translate p_edulis_map.img p_edulis_map.tiff
The following formats are supported for transformation:
VRT: Virtual Raster GTiff: GeoTIFF NITF: National Imagery Transmission Format HFA: Erdas Imagine Images (.img) ELAS: ELAS AAIGrid: Arc/Info ASCII Grid DTED: DTED Elevation Raster PNG: Portable Network Graphics JPEG: JPEG JFIF MEM: In Memory Raster GIF: Graphics Interchange Format (.gif) XPM: X11 PixMap Format BMP: MS Windows Device Independent Bitmap PCIDSK: PCIDSK Database File PCRaster: PCRaster Raster File ILWIS: ILWIS Raster Map SRTMHGT: SRTMHGT File Format Leveller: Leveller heightfield Terragen: Terragen heightfield GMT: GMT NetCDF Grid Format netCDF: Network Common Data Format HDF4Image: HDF4 Dataset PNM: Portable Pixmap Format (netpbm) ENVI: ENVI .hdr Labelled EHdr: ESRI .hdr Labelled PAux: PCI .aux Labelled MFF: Vexcel MFF Raster MFF2: Vexcel MFF2 (HKV) Raster BT: VTP .bt (Binary Terrain) 1.3 Format IDA: Image Data and Analysis ERS: ERMapper .ers Labelled JPEG2000: JPEG-2000 part 1 (ISO/IEC 15444-1) FIT: FIT Image RMF: Raster Matrix Format RST: Idrisi Raster A.1 INGR: Intergraph Raster GSAG: Golden Software ASCII Grid (.grd) GSBG: Golden Software Binary Grid (.grd) USGSDEM: USGS Optional ASCII DEM (and CDED) ADRG: ARC Digitized Raster Graphics
Transformation in gCube is adopted to transform from any of the above formats to GeoTiff.
Usage in gCube
Once GDAL has been installed, gCube can invoke the transformation by means of a Java class (GdalConverter). The transformation to the GeoTiff format is obtained by invoking:
The output will be "filename.tiff", a file produced in the same directory of the original one.
The class is OS independent as it relies on the GDAL installation.