The course teaches, step by step, how to develop a Python plugin for Quantum GIS.
The teacher has extensive experience in python plugin writing, and is the main developer of many core and non core QGIS plugins.
- How to create a python plugin for QGIS
- the python syntax (indentation, colon, ...)
- my first python plugin: display a message box
- create GUIs using QtDesigner (.ui)
- second plugin: add a layer to QGis canvas
- create a resource file (.qrc)
- The main QT API classes
- QTCore module (QObject, QString, QAction, QFile, ...)
- QTGui module (QWidget, QDialog, QMessageBox, QFileDialog, ...)
- access QT API through python: PyQT (QT types mapped by python native types, out parameter)
- The main QGis API classes and their relations
- constants and settings: QGis and QgsApplication classes
- plugin interface: QgisInterface and common methods used in plugins
- canvas, layers and legend: QgsMapCanvas, QgsMapLayer, QgsLegendInterface, QgsMapLayerRegistry
- vector layer: QgsVectorLayer, QgsVectorDataProvider, QgsField, QgsFeature, QgsGeometry
- raster layer: QgsRasterLayer, QgsRasterDataProvider
- map tools and rubber band: QgsMapTool, QgsMapToolEmitPoint, QgsRubberBand
- canvas items and snapper: QgsMapCanvasItem, QgsVertexMarker, QgsSnapper
- CRS classes: QgsCoordinateReferenceSystem, QgsCoordinateTransform
- util classes: QgsDataSourceURI
- Let's use pyQGIS
- code examples
Knowledge of basic Python skills is useful, but not necessary. At least a basic knowledge of programming principles and of QGIS is needed.
Three days (24 hours)
Contact us for further information, or for customized courses, according to your specific needs.