AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Power of the PyQGIS API, we must first understand how classes work.Ĭlass Car: model = 'Civic' def _init_( self, color, type): lor = color self. This gives you a preview of the power of the API. mitChanges(): This method saves the editīuffer and also disables the editing mode.Here we pass on index 1 for the secondĪttribute. layer.startEditing(): This is equivalent to putting the.The method returns the reference to the layer which is saved in the We will learn moreĪbout iface in the QGIS Interface API section. Which returns the currently selected layer in QGIS. Iface object and runs the activeLayer() method ![]()
0 Comments
Read More
Leave a Reply. |