|
28 | 28 |
|
29 | 29 | from qgis.PyQt.QtGui import QColor, QIcon, QIntValidator, QDoubleValidator |
30 | 30 | from qgis.PyQt.QtWidgets import QAction |
31 | | -from qgis.core import QgsMessageLog,QGis |
| 31 | +from qgis.core import QgsMessageLog,Qgis |
32 | 32 | from qgis.gui import QgsVertexMarker,QgsRubberBand,QgsMapToolEmitPoint |
33 | 33 | from . import dbConnection |
34 | 34 | from qgis.utils import iface |
@@ -387,11 +387,11 @@ def setIds(self, pt): |
387 | 387 | idRubberBand = QgsRubberBand(mapCanvas, Utils.getRubberBandType(False)) |
388 | 388 | idRubberBand.setColor(Qt.yellow) |
389 | 389 | idRubberBand.setWidth(4) |
390 | | - if geom.wkbType() == QGis.WKBMultiLineString: |
| 390 | + if geom.wkbType() == Qgis.WKBMultiLineString: |
391 | 391 | for line in geom.asMultiPolyline(): |
392 | 392 | for pt in line: |
393 | 393 | idRubberBand.addPoint(pt) |
394 | | - elif geom.wkbType() == QGis.WKBLineString: |
| 394 | + elif geom.wkbType() == Qgis.WKBLineString: |
395 | 395 | for pt in geom.asPolyline(): |
396 | 396 | idRubberBand.addPoint(pt) |
397 | 397 | self.idsRubberBands.append(idRubberBand) |
@@ -434,11 +434,11 @@ def setSourceId(self, pt): |
434 | 434 | if result: |
435 | 435 | self.dock.lineEditSourceId.setText(str(id)) |
436 | 436 | geom = QgsGeometry().fromWkt(wkt) |
437 | | - if geom.wkbType() == QGis.WKBMultiLineString: |
| 437 | + if geom.wkbType() == Qgis.WKBMultiLineString: |
438 | 438 | for line in geom.asMultiPolyline(): |
439 | 439 | for pt in line: |
440 | 440 | self.sourceIdRubberBand.addPoint(pt) |
441 | | - elif geom.wkbType() == QGis.WKBLineString: |
| 441 | + elif geom.wkbType() == Qgis.WKBLineString: |
442 | 442 | for pt in geom.asPolyline(): |
443 | 443 | self.sourceIdRubberBand.addPoint(pt) |
444 | 444 | self.dock.lineEditSourcePos.setText(str(pos)) |
@@ -506,11 +506,11 @@ def setTargetId(self, pt): |
506 | 506 | if result: |
507 | 507 | self.dock.lineEditTargetId.setText(str(id)) |
508 | 508 | geom = QgsGeometry().fromWkt(wkt) |
509 | | - if geom.wkbType() == QGis.WKBMultiLineString: |
| 509 | + if geom.wkbType() == Qgis.WKBMultiLineString: |
510 | 510 | for line in geom.asMultiPolyline(): |
511 | 511 | for pt in line: |
512 | 512 | self.targetIdRubberBand.addPoint(pt) |
513 | | - elif geom.wkbType() == QGis.WKBLineString: |
| 513 | + elif geom.wkbType() == Qgis.WKBLineString: |
514 | 514 | for pt in geom.asPolyline(): |
515 | 515 | self.targetIdRubberBand.addPoint(pt) |
516 | 516 | self.dock.lineEditTargetPos.setText(str(pos)) |
|
0 commit comments