/
Software Installation

Software Installation

OpenSource GIS Application installation 

Open Source GIS programs come in multiple flavors of native Operating Systems (OS)(e.g. Debian, Linux, Mac, or Windows), with the most popular programs running multiple versions that have been adapted to run in other OS from which they were designed (with varying levels of success). Depending on your level of comfort you should be able to install an array of open-source tools for your preferred OS that will meet all of your needs. 

We will be working with a variety of raster and point cloud data (LiDAR and Structure from Motion (SfM)) in the class, which require different programs to maximize their utility.

Windows

GIS

The Open Source Geospatial (OSG) foundation supports QGIS, SAGA-GIS (download source #2), GDAL, and GRASS  via a stand alone installation for Windows (called OSGEO4W). 

QGIS - Stand Alone Viewer which acts as a hub for the other GIS programs running under its hood, e.g. GRASS, SAGA, GDAL, LASTools, FUSION, TauDEM, etc. 

GRASS-GIS - One of the original open-source GIS platforms, GRASS (wiki) has a devoted following and has recently been updated to version 7.

LiDAR software

SAGA-GIS - Saga can view and edit LAS files.

LASTools - Martin Isenberg's extensive library and GUI for analyzing LiDAR data

FUSION - Robert McGaughey's United States Forest Service LiDAR analysis software

CloudCompareDaniel Girardeau-Montaut's CloudCompare is a useful viewer and analysis program which is equally at home digesting aerial and terrestrial point clouds (including SfM).

Installing CloudCompare in Ubuntu Xenial

Currently theres a problem with CloudCompare v2.7 in Xenial, there are a couple work arounds given online:

Download the v2.6.3 *.deb directly here https://dl.bintray.com/ornis/CloudCompare/pool/main/c/cloudcompare/

# Install dependencies - warning there may be more missing on your system.
 
sudo apt-get install libavifile-0.7c2 ocl-icd-libopencl1 libshp2 libvxl1.17v5 libdxflib-2.5.0.0v5 libfreenect0.5 liblas3
 
## change directory to Downloads or where you put the 2.6.3 *.deb
 
sudo dpkg -i *.deb

Installing liblas on Ubuntu Xenial

http://www.liblas.org/compilation.html#compilation

lidar2dems

http://applied-geosolutions.github.io/lidar2dems/doc/installation.html

SfM Software

To run VisualSFM you need to first install all of its dependencies (for which there are several). You can follow the instructions on the website 

VisualSFM - Changchang Wu's visual SfM system. 

CMVS - Yasutaka Furukawa's Clustering Views for Multi-view Stereo (CMVS)

CMVS-PMVS - download the binaries for your OS

Installing VisualSfM for Windows 10

1) Download and install Microsoft Visual C++ 2010 SP1 (newer versions of Visual C++ might work too - this is from the developers page)

2) Download the VisualSFM_windows_64bit.zip and extract to root C

3) Download the bundler_sfm-master.zip from Github and extract to root C

4) Download the CMVS-PMVS-master.zip from Github and extract to root C

5) Navigate to the \Win60-VS2010 folder in the \CMVS-PMVS directory and copy contents.

6) Paste contents into the C:\VisualSFM_windows_64bit folder.

7) Open VisualSfM.



SF3M -  Castillo et al.'s Structure from Motion (SfM) software (requires Matlab Runtime Compiler, CloudCompare and VisualSFM also be installed).

Matlab Runtime - necessary for SF3M

Image Editing

 The University of Arizona has a new Adobe license for Creative Cloud - tools like Photoshop and Premiere Pro can be used to edit imagery and video.

Code editing

Sublime Text - nice visual editor for batch scripting and writing shell code. 

OSGEO (QGIS,GDAL,SAGA,GRASS)

Mac

Mac users use the OSGeo Mac Installer (Snow Leopard)

Or download the Mac version of QGIS

Linux

Linux users know that installation are a little different, typically requiring the user to install via the terminal.

QGIS runs native on Linux (Ubuntu) and can be downloaded from source through the QGIS website or from a terminal window. Because Linux requires numerous 'dependencies' to be met it is important to install all of the required code from source - running a QGIS install through terminal will identify these dependencies and ask you to install (Y/N).

## Installation commands for OSGEO/QGIS in Ubuntu Xenial
deb http://qgis.org/ubuntugis-ltr/ xenial main
deb http://ppa.launchpad.net/ubuntugis/ubuntugis-unstable/ubuntu xenial main
deb-src http://qgis.org/ubuntugis-ltr/ xenial main
sudo apt-get update
sudo apt-get install qgis python-qgis qgis-plugin-grass
## Installation commands for OSGEO/QGIS in Ubuntu Trusty
deb http://qgis.org/ubuntugis-ltr/ trusty main
deb http://ppa.launchpad.net/ubuntugis/ubuntugis-unstable/ubuntu trusty main
deb-src http://qgis.org/ubuntugis-ltr/ trusty main
sudo apt-get update
sudo apt-get install qgis python-qgis qgis-plugin-grass

Updating QGIS to latest version:

sudo sh -c 'echo "deb http://qgis.org/debian xenial main" >> /etc/apt/sources.list'  
sudo sh -c 'echo "deb-src http://qgis.org/debian xenial main" >> /etc/apt/sources.list'  
wget -O - http://qgis.org/downloads/qgis-2015.gpg.key | gpg --import
gpg --fingerprint 3FF5FFCAD71472C4
gpg --export --armor 3FF5FFCAD71472C4 | sudo apt-key add -
sudo apt-get update && sudo apt-get install qgis python-qgis  

 

Manual Installation of GIS for Ubuntu dependencies via terminal window

zlib
wget [ftp://ftp.unidata.ucar.edu/pub/netcdf/netcdf-4/zlib-1.2.8.tar.gz]
tar xzf zlib-1.2.8.tar.gz
cd zlib-1.2.8
./configure \--prefix=$HOME
make check install
cd ..
hdf5
wget [ftp://ftp.unidata.ucar.edu/pub/netcdf/netcdf-4/hdf5-1.8.9.tar.gz]
tar xzf hdf5-1.8.9.tar.gz
cd hdf5-1.8.9
./configure \--with-zlib=$HOME \--prefix=$HOME
make check install
cd ..
netcdf
wget [ftp://ftp.unidata.ucar.edu/pub/netcdf/netcdf-4.3.2.tar.gz]
tar xzf netcdf-4.3.2.tar.gz
cd netcdf-4.3.2
CPPFLAGS=-I${HOME}/include LDFLAGS=-L${HOME}/lib ./configure \--prefix=$HOME
make check install
cd ..
PROJ.4
wget [http://download.osgeo.org/proj/proj-4.8.0.tar.gz]
wget [http://download.osgeo.org/proj/proj-datumgrid-1.5.tar.gz]
tar xzf proj-4.8.0.tar.gz
cd proj-4.8.0/nad
tar xzf ../../proj-datumgrid-1.5.tar.gz
cd ..
./configure \--prefix=$HOME
make
make install
cd ..
gdal
wget [http://download.osgeo.org/gdal/1.11.1/gdal-1.11.1.tar.gz]
tar xzf gdal-1.11.1.tar.gz
cd gdal-1.11.1
./configure \--without-grass \--with-netcdf=$HOME \-with-python \--prefix=$HOME
make
make install
cd ..
geos
wget [http://download.osgeo.org/geos/geos-3.4.2.tar.bz2]
tar \-xjf geos-3.4.2.tar.bz2
cd geos-3.4.2
./configure \--prefix=$HOME \--enable-python
make
make install
cd ..
export LD_LIBRARY_PATH=$HOME/lib
GRASS
wget [http://grass.osgeo.org/grass64/source/grass-6.4.4.tar.gz]
tar xzf grass-6.4.4.tar.gz
cd grass-6.4.4
 CPPFLAGS="-I${HOME}/include" LDFLAGS="-L${HOME}/lib" ./configure \--prefix=$HOME \--with-proj-lib=$HOME/lib \--with-proj-share=${HOME}/share/proj/ --with-proj-includes=$HOME/include \--with-gdal=$HOME  -\-with-cxx \--without-fftw \--without-python \--with-geos=${HOME}/bin \--with-libs=$HOME/lib
make
make install
cd ..
GDAL_GRASS
wget [http://download.osgeo.org/gdal/gdal-grass-1.4.3.tar.gz]
tar xzf gdal-grass-1.4.3.tar.gz
./configure \--with-gdal=$HOME/bin/gdal-config \--with-grass=$HOME/grass-6.4.4/ \--prefix=$HOME
make
make install
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$HOME/grass-6.4.4/lib
iCommands
wget [http://www.iplantcollaborative.org/sites/default/files/irods/icommands.x86_64.tar.bz2]
tar \-xjf icommands.x86_64.tar.bz2
export PATH=${PATH}:$HOME/icommands
export PYTHONPATH=${PYTHONPATH}:$HOME/cctools/python2.6/site-packages