GDAL - Geospatial Data Abstraction Library
下载地址:http://www.gdal.org/
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 commandline utilities for data translation and processing. The NEWS page describes the August 2013 GDAL/OGR 1.10.1 release.
安装:
平台:opensue 11.4
by:zzh_my@163.com
1、首先下载最新的源程序包:http://download.osgeo.org/gdal/CURRENT/
选择红色那个:
Name | Last modified | Size | Description | |
---|---|---|---|---|
| ||||
Parent Directory | - | |||
gdal-1.10.1.tar.gz | 26-Aug-2013 13:03 | 9.8M | ||
gdal-1.10.1.tar.gz.md5 | 30-Aug-2013 13:49 | 53 | ||
gdal-1.10.1.tar.xz | 26-Aug-2013 13:03 | 5.9M | ||
gdal-1.10.1.tar.xz.md5 | 30-Aug-2013 13:50 | 53 | ||
gdal1101.zip | 26-Aug-2013 13:03 | 12M | ||
gdal1101.zip.md5 | 30-Aug-2013 13:50 | 47 | ||
gdalautotest-1.10.1.tar.gz | 21-Aug-2013 13:29 | 4.3M | ||
gdalautotest-1.10.1.zip | 21-Aug-2013 13:29 | 4.9M |
zhao@bogon:~/programs/gdal-1.10.1> ./configure --prefix=/home/zhao/programs/gdal
3、然后,编译:
zhao@bogon:~/programs/gdal-1.10.1> make
4、然后,安装:
zhao@bogon:~/programs/gdal-1.10.1> make install
5、在.bashrc中环境变量:
#GDAL
export PATH=/home/zhao/programs/gdal/bin:$PATH
6、环境变量应用:
zhao@bogon:~> source .bashrc
7、测试:
zhao@bogon:~> gdal_translate
Usage: gdal_translate [--help-general] [--long-usage]
[-ot {Byte/Int16/UInt16/UInt32/Int32/Float32/Float64/
CInt16/CInt32/CFloat32/CFloat64}] [-strict]
[-of format] [-b band] [-mask band] [-expand {gray|rgb|rgba}]
[-outsize xsize[%] ysize[%]]
[-unscale] [-scale [src_min src_max [dst_min dst_max]]]
[-srcwin xoff yoff xsize ysize] [-projwin ulx uly lrx lry] [-epo] [-eco]
[-a_srs srs_def] [-a_ullr ulx uly lrx lry] [-a_nodata value]
[-gcp pixel line easting northing [elevation]]*
[-mo "META-TAG=VALUE"]* [-q] [-sds]
[-co "NAME=VALUE"]* [-stats]
src_dataset dst_dataset
by:zzh_my@163.com
FAILURE: No source dataset specified.
zhao@bogon:~>
gdal_translate -of GMT srtm_56_05.tif srtm_56_05.grd