Class: QgsGraphBuilder¶
-
class
qgis.analysis.
QgsGraphBuilder
(crs: QgsCoordinateReferenceSystem, otfEnabled: bool = True, topologyTolerance: float = 0, ellipsoidID: str = '')¶ Bases:
QgsGraphBuilderInterface
Default constructor
This class used for making the
QgsGraph
object- Parameters
crs (QgsCoordinateReferenceSystem) –
otfEnabled (bool = True) –
topologyTolerance (float = 0) –
ellipsoidID –
-
addEdge
(self, pt1id: int, pt1: QgsPointXY, pt2id: int, pt2: QgsPointXY, prop: Iterable[Any])¶ - Parameters
pt1id (int) –
pt1 (QgsPointXY) –
pt2id (int) –
pt2 (QgsPointXY) –
prop (Iterable[Any]) –
-
addVertex
(self, id: int, pt: QgsPointXY)¶ MANDATORY BUILDER PROPERTY DECLARATION
- Parameters
id (int) –
pt (QgsPointXY) –