mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-13 00:03:09 -04:00
Fix QgsPointXY issues
This commit is contained in:
parent
4ba385d4e1
commit
e2227d9998
@ -14,7 +14,7 @@ class QgsPoint: QgsAbstractGeometry
|
||||
{
|
||||
%Docstring
|
||||
Point geometry type, with support for z-dimension and m-values.
|
||||
.. versionadded:: 2.10
|
||||
.. versionadded:: 3.0
|
||||
%End
|
||||
|
||||
%TypeHeaderCode
|
||||
|
@ -150,8 +150,8 @@ class GridLine(GeoAlgorithm):
|
||||
count_update = count_max * 0.10
|
||||
y = bbox.yMaximum()
|
||||
while y >= bbox.yMinimum():
|
||||
pt1 = QgsPointXY(bbox.xMinimum(), y)
|
||||
pt2 = QgsPointXY(bbox.xMaximum(), y)
|
||||
pt1 = QgsPoint(bbox.xMinimum(), y)
|
||||
pt2 = QgsPoint(bbox.xMaximum(), y)
|
||||
line = QgsLineString()
|
||||
line.setPoints([pt1, pt2])
|
||||
feat.setGeometry(QgsGeometry(line))
|
||||
@ -177,8 +177,8 @@ class GridLine(GeoAlgorithm):
|
||||
count_update = count_max * 0.10
|
||||
x = bbox.xMinimum()
|
||||
while x <= bbox.xMaximum():
|
||||
pt1 = QgsPointXY(x, bbox.yMaximum())
|
||||
pt2 = QgsPointXY(x, bbox.yMinimum())
|
||||
pt1 = QgsPoint(x, bbox.yMaximum())
|
||||
pt2 = QgsPoint(x, bbox.yMinimum())
|
||||
line = QgsLineString()
|
||||
line.setPoints([pt1, pt2])
|
||||
feat.setGeometry(QgsGeometry(line))
|
||||
|
@ -30,9 +30,8 @@
|
||||
****************************************************************************/
|
||||
|
||||
/** \ingroup core
|
||||
* \class QgsPointV2
|
||||
* \brief Point geometry type, with support for z-dimension and m-values.
|
||||
* \since QGIS 2.10
|
||||
* \since QGIS 3.0, (previously QgsPointv2 since QGIS 2.10)
|
||||
*/
|
||||
class CORE_EXPORT QgsPoint: public QgsAbstractGeometry
|
||||
{
|
||||
|
@ -16,7 +16,7 @@ import qgis # NOQA switch sip api
|
||||
|
||||
from qgis.core import (QgsBearingUtils,
|
||||
QgsCoordinateReferenceSystem,
|
||||
QgsPoint
|
||||
QgsPointXY
|
||||
)
|
||||
|
||||
from qgis.testing import start_app, unittest
|
||||
|
@ -26,7 +26,7 @@ from qgis.core import (QgsMapRendererCache,
|
||||
QgsFeature,
|
||||
QgsGeometry,
|
||||
QgsMapSettings,
|
||||
QgsPoint)
|
||||
QgsPointXY)
|
||||
from qgis.testing import start_app, unittest
|
||||
from qgis.PyQt.QtCore import QSize, QThreadPool
|
||||
from qgis.PyQt.QtGui import QPainter, QImage
|
||||
|
@ -14,7 +14,7 @@ __revision__ = '$Format:%H$'
|
||||
|
||||
import qgis # NOQA
|
||||
|
||||
from qgis.core import QgsPoint
|
||||
from qgis.core import QgsPointXY
|
||||
|
||||
from qgis.testing import start_app, unittest
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user