GDAL---空间数据转换程序库

8 篇文章 0 订阅
2 篇文章 0 订阅

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/

选择红色那个:

[ICO]NameLast modifiedSizeDescription

[DIR]Parent Directory - 
[   ]gdal-1.10.1.tar.gz26-Aug-2013 13:039.8M 
[   ]gdal-1.10.1.tar.gz.md530-Aug-2013 13:4953 
[   ]gdal-1.10.1.tar.xz26-Aug-2013 13:035.9M 
[   ]gdal-1.10.1.tar.xz.md530-Aug-2013 13:5053 
[   ]gdal1101.zip26-Aug-2013 13:0312M 
[   ]gdal1101.zip.md530-Aug-2013 13:5047 
[   ]gdalautotest-1.10.1.tar.gz21-Aug-2013 13:294.3M 
[   ]gdalautotest-1.10.1.zip21-Aug-2013 13:294.9M 
2、解压,并configure,可以指定到安装到某个目录。我安装到:

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


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值