تحميل كتاب تعلم برمجة بايثون في برنامج QGIS Python Programming
تحميل كتاب تعلم برمجة بايثون في برنامج QGIS Python Programming ، استكمالا لسلسلة تعلم برمجة بايثون للمبتدئين learn python نقدم لكم في هذه المقالة كتاب Download the Book QGIS Python Programming pdf for free. من تأليف الكاتب جويل لوشيد Joel Lawhead.
مقدمة عن محتويات الكتاب Introduction to the Contents of the book QGIS Python Programming
Installing QGIS for development
QGIS has a set of Python modules and libraries that can be accessed from the Python console within QGIS. However, they can also be accessed from outside QGIS to write standalone applications. First, you must make sure that PyQGIS is installed for your platform, and then set up some required system environment variables. In this recipe, we will walk you through the additional steps required beyond the normal QGIS installation to prepare your system for development. The steps for each platform are provided, which also include the different styles of Linux package managers.
Installing PyQGIS using the Debian package manager
- For Linux distributions based on the Debian Linux package manager, which includes Ubuntu and Debian, use the following command in a shell: sudo apt-get update
- Next, install the QGIS, PyQGIS, and QGIS GRASS plugins: sudo apt-get install qgis python-qgis qgis-plugin-grass
Installing PyQGIS using the RPM package manager
- For Linux distributions based on the Red Hat Package Manager (RPM), first updat the package manager, as follows: sudo yum update
- Then, install the packages for the QGIS, PyQGIS, and QGIS GRASS plugins: sudo yum install qgis qgis-python qgis-grass
Setting the environment variables
Now, we must set the PYTHONPATH to the PyQGIS directory. At the same time, append the path to this directory to the PATH variable so that you can use the PyQGIS modules with an external IDE.
Setting the environment variables on Windows
- Set the PYTHONPATH variable in a command prompt to the bin directory of the QGIS installation:set PYTHONPATH="C:\Program Files\QGIS Brighton\bin".
- Next, append QGIS's bin directories to the system's PATH variable: set PATH="C:\Program Files\QGIS Brighton\bin";"C:\Program Files\ QGIS Brighton\bin\apps\qgis\bin";%PATH%.
Setting the environment variables on Linux
- Set the PYTHONPATH variable in a command prompt to the bin directory of the QGIS installation: export PYTHONPATH=/usr/share/qgis/python.
- Now, append the QGIS shared library directory to the runtime search path. Note that this location can vary depending on your particular system configuration:export LD_LIBRARY_PATH=/usr/share/qgis/python.
تعليقات: 0
إرسال تعليق