Transcription of PyQGIS developer cookbook - Documentation
{{id}} {{{paragraph}}}
PyQGIS developer cookbookRelease ProjectMar 15, 2020 Contents1 in the Python Console .. Plugins .. Python code when QGIS starts .. Applications .. notes on PyQt and SIP ..52 Loading Projects73 Loading Layers .. Layers .. instance ..134 Using Raster Details .. Values ..175 Using Vector information about attributes .. over Vector Layer .. features .. Vector Layers .. Spatial Index .. Vector Layers .. (Symbology) of Vector Layers .. Topics ..386 Geometry Construction .. to Geometry .. Predicates and Operations ..417 Projections reference systems .. Transformation ..448 Using the Map Map Canvas .. Bands and Vertex Markers .. Map Tools with Canvas .. Custom Map Tools.
PyQGIS developer cookbook, Release 3.4 # second argument to False disables the GUI. qgs=QgsApplication([], False) # Load providers qgs.initQgis() # Write your code here to load some layers, use processing # algorithms, etc. # Finally, exitQgis() is called to remove the # provider and layer registries from memory qgs.exitQgis()
Domain:
Source:
Link to this page:
Please notify us if you found a problem with this document:
{{id}} {{{paragraph}}}