This commit is contained in:
Nyall Dawson 2021-04-27 13:22:18 +10:00
parent 063f2ee852
commit 1c94f6b941
4 changed files with 12 additions and 0 deletions

View File

@ -49,6 +49,9 @@ z and m types accordingly.
This constructor is more efficient then calling :py:func:`~QgsCircularString.setPoints`. This constructor is more efficient then calling :py:func:`~QgsCircularString.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:: .. warning::
It is the caller's responsibility to ensure that the supplied arrays It is the caller's responsibility to ensure that the supplied arrays

View File

@ -56,6 +56,9 @@ argument. If ``is25DType`` is ``True`` (and the ``m`` vector is unfilled) then
the created Linestring will be a LineString25D type. Otherwise, the the created Linestring will be a LineString25D type. Otherwise, the
LineString will be LineStringZ (or LineStringZM) type. LineString will be LineStringZ (or LineStringZM) type.
If the sizes of ``x`` and ``y`` are non-equal then the resultant linestring
will be created using the minimum size of these arrays.
.. versionadded:: 3.0 .. versionadded:: 3.0
%End %End

View File

@ -57,6 +57,9 @@ class CORE_EXPORT QgsCircularString: public QgsCurve
* *
* This constructor is more efficient then calling setPoints(). * This constructor is more efficient then calling setPoints().
* *
* If the sizes of \a x and \a 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 * \warning It is the caller's responsibility to ensure that the supplied arrays
* are of odd sizes. * are of odd sizes.
* *

View File

@ -71,6 +71,9 @@ class CORE_EXPORT QgsLineString: public QgsCurve
* the created Linestring will be a LineString25D type. Otherwise, the * the created Linestring will be a LineString25D type. Otherwise, the
* LineString will be LineStringZ (or LineStringZM) type. * LineString will be LineStringZ (or LineStringZM) type.
* *
* If the sizes of \a x and \a y are non-equal then the resultant linestring
* will be created using the minimum size of these arrays.
*
* \since QGIS 3.0 * \since QGIS 3.0
*/ */
QgsLineString( const QVector<double> &x, const QVector<double> &y, QgsLineString( const QVector<double> &x, const QVector<double> &y,