Subgroup: other
Class: QgsVectorLayerDirector¶
-
class
qgis.analysis.
QgsVectorLayerDirector
(source: QgsFeatureSource, directionFieldId: int, directDirectionValue: str, reverseDirectionValue: str, bothDirectionValue: str, defaultDirection: QgsVectorLayerDirector.Direction)¶ Bases:
qgis._analysis.QgsGraphDirector
Default constructor
Parameters: - source – feature source representing network
- directionFieldId – field containing direction value
- directDirectionValue – value for direct one-way road
- reverseDirectionValue – value for reversed one-way road
- bothDirectionValue – value for two-way (bidirectional) road
- defaultDirection – default direction. Will be used if corresponding
attribute value is not set or does not equal to the given values
New in version 3.0: Determine making the graph from vector line layer
Methods
childEvent
connectNotify
customEvent
disconnectNotify
isSignalConnected
makeGraph
MANDATORY DIRECTOR PROPERTY DECLARATION name
receivers
sender
senderSignalIndex
timerEvent
Signals
Attributes
DirectionBackward
DirectionBoth
DirectionForward
-
class
Direction
¶ Bases:
int
-
DirectionBackward
= 1¶
-
DirectionBoth
= 2¶
-
DirectionForward
= 0¶
-
childEvent
()¶
-
connectNotify
()¶
-
customEvent
()¶
-
disconnectNotify
()¶
-
isSignalConnected
()¶
-
makeGraph
(self, builder: QgsGraphBuilderInterface, additionalPoints: Iterable[QgsPointXY], feedback: QgsFeedback = None) → List[QgsPointXY]¶ MANDATORY DIRECTOR PROPERTY DECLARATION
-
name
(self) → str¶
-
receivers
()¶
-
sender
()¶
-
senderSignalIndex
()¶
-
timerEvent
()¶