Class: QgsMultiPoint¶
Multi point geometry collection.
List of all members, including inherited members
Class Hierarchy¶
Base classes¶
Geometry collection. |
|
Abstract base class for all geometries. |
Constructor
Abstract Methods
Methods
Returns the point with the specified index. |
- class qgis.core.QgsMultiPoint[source]¶
Bases:
QgsGeometryCollection- __init__()¶
Constructor for an empty multipoint geometry.
- __init__(points: Sequence[QgsPoint | QgsPointXY | Sequence[float]])
Construct a multipoint from a sequence of points (
QgsPointobjects,QgsPointXYobjects, or sequences of float values).The multipoint Z and M type will be set based on the type of the first point in the sequence.
Added in version 3.34.
- Parameters:
points (Sequence[QgsPoint|QgsPointXY|Sequence[float]])
- __init__(x: Iterable[float], y: Iterable[float], z: Iterable[float] = [], m: Iterable[float] = [])
Construct a multipoint from arrays of coordinates. If the z or m arrays are non-empty then the resultant multipoint will have z and m types accordingly. This constructor is more efficient then calling
addGeometry()repeatedly.If the sizes of
xandyare non-equal then the resultant multipoint will be created using the minimum size of these arrays.Added in version 3.34.
- Parameters:
x (Iterable[float])
y (Iterable[float])
z (Iterable[float] = [])
m (Iterable[float] = [])
- __init__(a0: QgsMultiPoint)
- Parameters:
a0 (QgsMultiPoint)
- abstract clone(self) QgsMultiPoint | None[source]¶
- Return type:
QgsMultiPoint|None
- abstract createEmptyWithSameType(self) QgsMultiPoint | None[source]¶
- Return type:
QgsMultiPoint|None
- pointN(self, index: int) QgsPoint[source]¶
Returns the point with the specified
index.- Raises:
IndexError – if no point with the specified index exists.
Added in version 3.16.
- Parameters:
index (int)
- Return type:
- abstract simplifyByDistance(self, tolerance: float) QgsMultiPoint | None[source]¶
- Parameters:
tolerance (float)
- Return type:
QgsMultiPoint|None
- abstract toCurveType(self) QgsMultiPoint | None[source]¶
- Return type:
QgsMultiPoint|None