Qgis Introduction and Source code compilation

Source: Internet
Author: User

QGIS (http://qgis.org) is a desktop GIS software that integrates many open source spatial data processing libraries, supporting Python scripting. Qgis is developed based on QT and sip, supports windows\linux\macos and other operating systems, can access the spatial data of Mysql/postgre and other databases, and can connect to OpenStreetMap pull data for local analysis and mapping.

Compared with professional GIS platform such as Supermap (http://www.supermap.com.cn), ArcGIS, Qgis Although the function is not strong, many modules still have bugs, but processing some small data, drawing a few simple maps is more than enough, and is free and open source, as learning is a very good starting point (those commercial software will not show you the source code, and death expensive ...), however, to do the project and application system, or recommend the use of Supermap, can support the server, desktop, mobile, the full development of the web, There is also complete training and technical support, and Qgis is just a small desktop tool).

The current version of Qgis (2.10.0) is based on QT4.8.6 and Python2.7.9, are the last generation of the final stable version, can guarantee the stability of the environment, but it is a bit old. To know that Qt is 5.5, Python is 3.4. However, the official team is this way, if you upgrade, it is estimated to have a lot of bags, because many libraries are not the latest version.

Use on not much to say, since is to learn, oneself compile and look at the source code must at that time.

First of all, the basic environment, I use the virtualbox5.0+ubuntukylin15.04 virtual machine. Because the Qgis Software library is a bit old, do not install the software (otherwise a new library may not be compatible), it is best to engage in a new virtual machine for installation.

Download: http://qgis.org/en/site/forusers/download.html, my 2.10 version from here, is currently the latest stable version.

You can also go here: Https://github.com/qgis/QGIS uses git clone to capture the code currently under development and is currently in the 2.11 development version. However, I caught this version of the compilation did not pass, 2.10 is very smooth.

To start installing some support libraries, see here for a complete reference: HTTPS://HTMLPREVIEW.GITHUB.IO/?HTTPS://GITHUB.COM/QGIS/QGIS/BLOB/MASTER/DOC/INSTALL.HTML#TOC4.

I use the Ubuntukylin 15.04 is the vivid version, perform the following operation to install.

Apt-get Install Bison cmake doxygen flex git graphviz grass-dev libexpat1-dev libfcgi-dev libgdal-dev libgeos-dev libgsl0- Dev Libopenscenegraph-dev libosgearth-dev libpq-dev libproj-dev libqscintilla2-dev libqt4-dev Libqt4-opengl-dev Libqt4-sql-sqlite libqtwebkit-dev libqwt5-qt4-dev libspatialindex-dev libspatialite-dev libsqlite3-dev lighttpd Locales pkg-config poppler-utils pyqt4-dev-tools python-all python-all-dev python-pyspatialite PYTHON-QSCINTILLA2 Python-qt4 python-qt4-dev python-sip python-sip-dev qt4-doc-html spawn-fcgi txt2tags xauth xfonts-100dpi xfonts-75dpi Xfonts-base xfonts-scalable Xvfb Cmake-curses-gui

Then, perform the following procedure to download, unpack, and compile:

sudo apt-get install build-essentialwget http://qgis.org/downloads/qgis-latest.tar.bz2tar-vxf QGIS-LATEST.TAR.BZ2CD Qgis-2.10.0mkdir BUILDCD Buildcmake. Make

After completion, enter Build\ouput\bin, run Qgis, normal words should already be able to use.

If you want to do plug-in development, refer to: http://qgis.org/en/site/getinvolved/development/index.html#plugin-development

If you are just downloading code compilation, you may have libraries that are not installed, or you can download Qgis installation packages to install them first.

sudo gedit/etc/apt/sources.list# edit the list of software sources and then add the following two lines: Deb Http://qgis.org/debian vivid MAINDEB-SRC http://qgis.org/ Debian Vivid main# Note: Vivid is the Ubuntu15.04 version number code, if it is other, it needs to be modified accordingly. #参考: # Then, add the source authentication code: GPG--keyserver keyserver.ubuntu.com--recv dd45f6c3gpg--export--armor dd45f6c3 | sudo apt-key add-#最后, perform the installation operation. sudo apt-get updatesudo apt-get install Qgis python-qgis qgis-plugin-grass# done, go to the console, run it. Qgis



Qgis Introduction and Source code compilation

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.