etiennesky / profiletool

14 stars 36 forks source link

Compatibility changes for Qgis 3.0. #46

Closed JaviBecerra closed 6 years ago

JaviBecerra commented 6 years ago

Some functions related to layers (identify, toLayerCoordinates, QgsRubberBand.addPoint) require the use of QgsPointXY instead of QgsPoint in Qgis 3.0. Other minor modifications to comply with QGis 3.0 API (QgsMapLayer.isSpatial, QgsGeometry.fromPointXY). Modifications have been made using QGis 3.0 api. We use a compatibility layer for monkey patching in Qgis 2.x, based on qgis2compat plugin by opengis.ch. These changes have been tested on QGis 2.99 nightly-build (2017/01/05) and QGis 2.14LTR

JaviBecerra commented 6 years ago

Closing to remove some pyc files that got accidentally into the commit.