[QGIS-Developer] QGIS 3 API - QgsVertexMarker and QgsRubberBand Inconsistency

C Hamilton adenaculture at gmail.com
Wed Oct 25 12:30:35 PDT 2017


I just found that an API changed made a break with Lat Lon Tools which  is
OK because I understand it is in flux.

A while back a change was made to use QgsPointXY with QgsVertexMarker and
QgsRubberBand through QgsGeometry.fromPolyline(). In looking at the
documentation there is now a fromPolylineXY(), but from the API breaks
documentation it seems like the use of fromPolyline is preferred.

It seems to me that QgsVertexMarker and QgsRubberBand are kind of the same
creating temporary drawing elements on the canvas, but with these latest
changes QgsRubberBand needs QgsPoint objects but QgsVertexMarker needs
QgsPointXY objects. This just seems inconsistent.

-- Just thinking out loud here and perhaps more changes are in the works
that will sort this out anyway.

Thanks!!!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20171025/8077ecc3/attachment.html>


More information about the QGIS-Developer mailing list