Class: QgsCircularString

Circular string geometry type.

List of all members, including inherited members

Class Hierarchy

Inheritance diagram of qgis.core.QgsCircularString

Base classes

QgsSimpleCurve

Abstract base class for simple curved geometry type.

QgsCurve

Abstract base class for curved geometry type.

QgsAbstractGeometry

Abstract base class for all geometries.

Constructor

__init__

Methods

importVerticesFromWkb

splitCurveAtVertexProtected

Static Methods

fromTwoPointsAndCenter

Creates a circular string with a single arc representing the curve from p1 to p2 with the specified center.

class qgis.core.QgsCircularString[source]

Bases: QgsSimpleCurve

__init__()

Constructs an empty circular string.

__init__(p1: QgsPoint, p2: QgsPoint, p3: QgsPoint)

Constructs a circular string with a single arc passing through p1, p2 and p3.

Added in version 3.2.

Parameters:
__init__(x: Iterable[float], y: Iterable[float], z: Iterable[float] = [], m: Iterable[float] = [])

Construct a circular string from arrays of coordinates. If the z or m arrays are non-empty then the resultant circular string will have z and m types accordingly.

This constructor is more efficient then calling setPoints().

If the sizes of x and y are non-equal then the resultant circular string will be created using the minimum size of these arrays.

Warning

It is the caller’s responsibility to ensure that the supplied arrays are of odd sizes.

Added in version 3.20.

Parameters:
  • x (Iterable[float])

  • y (Iterable[float])

  • z (Iterable[float] = [])

  • m (Iterable[float] = [])

__init__(a0: QgsCircularString)
Parameters:

a0 (QgsCircularString)

static fromTwoPointsAndCenter(p1: QgsPoint, p2: QgsPoint, center: QgsPoint, useShortestArc: bool = True) QgsCircularString[source]

Creates a circular string with a single arc representing the curve from p1 to p2 with the specified center.

If useShortestArc is True, then the arc returned will be that corresponding to the shorter arc from p1 to p2. If it is False, the longer arc from p1 to p2 will be used (i.e. winding the other way around the circle).

Added in version 3.2.

Parameters:
Return type:

QgsCircularString

importVerticesFromWkb()
splitCurveAtVertexProtected()