Class: QgsGraphBuilder¶
Used for making the QgsGraph
object.
Class Hierarchy¶
Base classes¶
Interface for creating a graph. |
Methods
Returns the generated |
|
Takes the generated graph from the builder, resetting the builder back to its initial state ready for additional graph construction. |
Virtual Methods
In PyQGIS, only methods marked as virtual
can be safely overridden in a Python subclass of QgsGraphBuilder. See the FAQ for more details.
MANDATORY BUILDER PROPERTY DECLARATION |
- 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] = '')
- virtual addVertex(self, id: int, pt: QgsPointXY)[source]¶
MANDATORY BUILDER PROPERTY DECLARATION
- Parameters:
id (int)
pt (QgsPointXY)