Documentation of modules

dtutils

Contains various utitlity functions

some code from fTools plugin contained.

dtutils.dtChooseVectorLayer(iface, geomType=None, skipActive=True, msg=None)[source]

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.

dtutils.dtCopyFeature(layer, srcFeature=None, srcFid=None)[source]

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!

dtutils.dtCreateFeature(layer)[source]

Create an empty feature for the layer

dtutils.dtExtractPoints(geom)[source]

Generate list of QgsPoints from QgsGeometry geom ( can be point, line, or polygon )

dtutils.dtGetErrorMessage()[source]

Returns the default error message which can be appended

dtutils.dtGetFeatureForId(layer, fid)[source]

Function that returns the QgsFeature with FeatureId fid in QgsVectorLayer layer

dtutils.dtGetManySelMessage(layer)

Returns an array of QStrings (default messages)

dtutils.dtGetNoSelMessage()[source]

Returns an array of QStrings (default messages)

dtutils.dtGetVectorLayersByType(iface, geomType=None, skipActive=False)[source]

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.

dtutils.dtMakeFeaturesFromGeometries(layer, srcFeat, geometries)

create new features from geometries and copy attributes from srcFeat

Documentation of tools

dtsplitter

class dtsplitter.DtSplitWithLine(iface, toolBar)

Split selected features in active editable layer with selected line from another layer

enable()

Enables/disables the corresponding button.

run()

Function that does all the real work

dtcutter

class dtcutter.DtCutWithPolygon(iface, toolBar)[source]

Cut out from active editable layer with selected polygon from another layer

enable()[source]

Enables/disables the corresponding button.

run()[source]

Function that does all the real work

Table Of Contents

Previous topic

Introduction

This Page