

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.
Course outline
- 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
Skills needed
Knowledge of basic Python skills is useful, but not necessary. At least a basic knowledge of programming principles and of QGIS is needed.
Duration
Three days (24 hours)
More info
Contact us for further information, or for customized courses, according to your specific needs.



