qgis-profile-interpreter

qgis plugin for placing 3D points along elevation profiles
git clone git://src.adamsgaard.dk/qgis-profile-interpreter # fast
git clone https://src.adamsgaard.dk/qgis-profile-interpreter.git # slow
Log | Files | Refs | README | LICENSE Back to index

commit f96f480d169801c2ae1b0236e06cede10a3cec55
parent 8da68d84975038fa6202062a3b9816063ce1e2e2
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Fri,  5 Jun 2026 22:09:25 +0300

style: move binary operator to end of line to fix W503

Diffstat:
Mprofile_interpreter/profile_interpreter.py | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/profile_interpreter/profile_interpreter.py b/profile_interpreter/profile_interpreter.py @@ -80,8 +80,8 @@ def _point_attributes(field_names, feature_id, distance, elevation): def _project_xy(xy, src_crs, dst_crs): """Map x/y from src_crs to dst_crs; identity if either CRS is invalid or they are equal.""" - if (not src_crs.isValid() or not dst_crs.isValid() - or src_crs == dst_crs): + if (not src_crs.isValid() or not dst_crs.isValid() or + src_crs == dst_crs): return xy.x(), xy.y() ct = QgsCoordinateTransform(src_crs, dst_crs, QgsProject.instance()) p = ct.transform(QgsPointXY(xy.x(), xy.y()))