How to install Contour plugin?
For the time being, my interest was installing Lionel Roubeyrie's Contour plugin in Ubuntu mode but I was first greeted by a prerequisite because matplotlib module was missing. A search on the Internet let me to try out purely the matplotlib module installation script which solved that but was greeted by another missing module... shapely.geometry. I hate that and who knows what other modules will be missing. Some search later, I eventually ended with the following scripts which installed the Contour plugin and after activated under Fetch Plugin, it appeared in the menu bar:
wget http://python-distribute.org/distribute_setup.py
sudo python distribute_setup.py
wget https://raw.github.com/pypa/pip/master/contrib/get-pip.py
sudo python get-pip.py
# to install from git source
sudo apt-get update
sudo apt-get install git
sudo apt-get install python-dev
sudo pip install numpy
sudo pip install cython
sudo apt-get install libproj-dev
# install geos
sudo apt-add-repository ppa:sharpie/for-science
sudo apt-get update
sudo apt-get install libgeos-dev
sudo pip install shapely
sudo apt-get install python-scipy
sudo pip install pyshp
sudo apt-get install python-imaging
sudo apt-get build-dep matplotlib
wget https://github.com/downloads/matplotlib/matplotlib/matplotlib-1.2.0rc2.tar.gz
tar xzf matplotlib-1.2.0rc2.tar.gz
cd matplotlib-1.2.0rc2
sudo python setup.py install
ref>https://github.com/SciTools/cartopy/issues/46
At least, I got the Contour plugin in the menu bar, I have yet to try it out because I have to go out. (Family quality time is also important as QGIS)
Update:
Contour Plugin under Windows mode installed without any hiccup so I decided to give it a try. I got some unexpected results
No comments:
Post a Comment