Contains various utitlity functions
some code from fTools plugin contained.
Offers a QInputDialog where the user can choose a Layer of type geomType. If skipActive is True the active Layer can not be chosen. msg is displayed as the dialog’s message.
Copy the QgsFeature with FeatureId srcFid in layer and return it. Alternatively the source Feature can be given as paramter. The feature is not added to the layer!
Generate list of QgsPoints from QgsGeometry geom ( can be point, line, or polygon )
Generate a list of QgsPolygons representing all rings within geom (= polygon)
Function that returns the QgsFeature with FeatureId fid in QgsVectorLayer layer
Returns an array of QStrings (default messages)
Returns a dict of layers [name: id] in the project for the given geomType; geomTypes are 0: point, 1: line, 2: polygon If skipActive is True the active Layer is not included.
create new features from geometries and copy attributes from srcFeat