...
Code Block |
---|
cd /usr/local/bin/ ln -s /usr/local/bin/python2.5 python |
proj.4
Code Block |
---|
sudo chown dev /usr/local/src mkdir /usr/local/src/TARFILES cd /usr/local/src/TARFILES wget ftp://ftp.remotesensing.org/proj/proj-4.8.0.tar.gz wget ftp://ftp.remotesensing.org/proj/proj-datumgrid-1.5.tar.gz cd ../ tar xvfz TARFILES/proj-4.8.0.tar.gz cd proj-4.8.0/nad tar xvfz ../../TARFILES/proj-datumgrid-1.5.tar.gz cd .. ./configure --without-jni make sudo make install |
...
Code Block |
---|
cd /usr/local/src/TARFILES
wget http://download.osgeo.org/gdal/gdal-1.9.0.tar.gz
cd ../
tar xvfz TARFILES/gdal-1.9.0.tar.gz
cd gdal-1.9.0/
# set your PATH properly so we get the right version of python
export PATH=/usr/local/bin/:$PATH
./configure --with-python
make
sudo PATH=/usr/local/bin/:$PATH make install
make clean
1013 history
1014 ./configure --with-python -classic
1015 ./configure --with-python --classic
1016 ./configure --with-python-classic
1017 make
1018 sudo make install
|
install mrsidgeodecode
This software is needed to extract the mrsid data.
Code Block |
---|
mkdir downloads
mkdir bin
cd downloads
wget http://bin.us.lizardtech.com/geoexpress_commandlineutils_linux.tgz
tar xvfz geoexpress_commandlineutils_linux.tgz
cd linux64
tar xvf GeoExpressCLUtils-8.5.0.3330.tar
cp -P GeoExpressCLUtils-8.5.0.3330/bin/* ~/bin |
Next, add this to your .bash_profile. Indeed, it is all commented out - we do it because it's the right thing to do.
Code Block |
---|
# If you choose to use lizard tech tools while doing projections, you'll need this.
# NOTE that this prevents GDAL from working properly so I comment it out.
# All I use Lizard tech for is to get data out of mrsid format!
#PROJSO=/home/dev/lizard_tech/linux64/GeoExpressCLUtils-8.5.0.3330/libproject
#export PROJSO
|
Last, test it to make sure it is working...
Code Block |
---|
mrsidgeodecode |
You will probably get this message...
mrsidgeodecode: error while loading shared libraries: libgeos_c.so.1: cannot open shared object file: No such file or directory
...
install |
Add this to your .bashrc
Code Block |
---|
LD_LIBRARY_PATH_DEFAULT=/usr/local/lib export LD_LIBRARY_PATH_DEFAULT LD_LIBRARY_PATH_MRSID=~/bin:/usr/local/lib export LD_LIBRARY_PATH_MRSID LD_LIBRARY_PATH=$LD_LIBRARY_PATH_DEFAULT export LD_LIBRARY_PATH PROJSO_MRSID=/home/dev/lizard_tech/linux64/GeoExpressCLUtils-8.5.0.3330/libproject export PROJSO_MRSID |
One more time...
Code Block |
---|
|
Install python Numeric so we can use gdal_retile.py with an alpha channel patch.
RE
http://onlamp.com/python/2000/05/03/install_num_python.html
Code Block |
---|
cd /usr/local/src/TARFILES
wget http://voxel.dl.sourceforge.net/project/numpy/Old%20Numeric/24.2/Numeric-24.2.tar.gz
cd ..
tar xvfz Numeric-24.2.tar.gz
cd Numeric-24.2.tar.gz
sudo python2.5 setup.py install |
Make sure it is working...
Code Block |
---|
python2.5
import Numeric |
...
UP
web
put SF WEB servers into LIVE mode
...