Back

安装 LAS 工具 的 过程。

发布时间: 2016-12-13 02:33:00

参考: http://www.liblas.org/tutorial/python.html 和   https://github.com/libLAS/libLAS

需要安装python.

在Debian 和 Ubuntu下,可以直接使用 :

https://wiki.ubuntu.com/UbuntuGIS  (  http://trac.osgeo.org/ubuntugis/wiki/UbuntuGISRepository)

编辑 apt-get 源 的文件:

sudo vim /etc/apt/sources.list
增加下面两行:
deb http://us.archive.ubuntu.com/ubuntu/ xenial main universe multiverse
deb-src http://ppa.launchpad.net/ubuntugis/ppa/ubuntu xenial main

然后做授权:

$ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 314DF160 

可以看到下面的结果。
Executing: /tmp/tmp.acWKy40VU1/gpg.1.sh --keyserver
keyserver.ubuntu.com
--recv-keys
314DF160
gpg: requesting key 314DF160 from hkp server keyserver.ubuntu.com
gpg: key 314DF160: public key "Launchpad ubuntugis-stable" imported
gpg: Total number processed: 1
gpg:               imported: 1  (RSA: 1)

终于,开始 apt-get 安装了

apt-get install cgi-mapserver

apt-get install python-liblas   liblas-bin

(以下的我没有试)下载libLAS源文件 并解压缩:

$ wget http://download.osgeo.org/liblas/libLAS-1.8.1.tar.bz2
$ tar jxvf libLAS-1.8.1.tar.bz2

Back