Class: QgsGraphBuilder¶
This class used for making the QgsGraph
object
Class Hierarchy¶
Base classes¶
Determine interface for creating a graph. Contains the settings of the graph. |
Methods
MANDATORY BUILDER PROPERTY DECLARATION |
|
Returns the generated |
|
Takes the generated graph from the builder, resetting the builder back to its initial state ready for additional graph construction. |
- class qgis.analysis.QgsGraphBuilder[source]¶
Bases:
QgsGraphBuilderInterface
- __init__(crs: QgsCoordinateReferenceSystem, otfEnabled: bool = True, topologyTolerance: float = 0, ellipsoidID: str | None = '')
Default constructor
- Parameters:
otfEnabled (bool = True)
topologyTolerance (float = 0)
ellipsoidID (Optional[str] = '')
- addVertex(self, id: int, pt: QgsPointXY)[source]¶
MANDATORY BUILDER PROPERTY DECLARATION
- Parameters:
id (int)
pt (QgsPointXY)