public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-phyghtmap] f45: Try to further fix package: spurious lines on results (rhbz#2469045)
@ 2026-11-28 11:17 Federico Pellegrin
0 siblings, 0 replies; 2+ messages in thread
From: Federico Pellegrin @ 2026-11-28 11:17 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/python-phyghtmap
Branch : f45
Commit : 7fb45de242f6d99fa39446efb2d60fcbcf418775
Author : Federico Pellegrin <fede@evolware.org>
Date : 2026-11-28T12:16:33+01:00
Stats : +1/-1 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/python-phyghtmap/c/7fb45de242f6d99fa39446efb2d60fcbcf418775?branch=f45
Log:
Try to further fix package: spurious lines on results (rhbz#2469045)
---
diff --git a/python-phyghtmap.spec b/python-phyghtmap.spec
index 9f33f7f..cefc401 100644
--- a/python-phyghtmap.spec
+++ b/python-phyghtmap.spec
@@ -2,7 +2,7 @@
Name: python-phyghtmap
Version: 2.23
-Release: 24%{?dist}
+Release: 25%{?dist}
Summary: Generate OSM contour lines from NASA SRTM data
License: GPL-2.0-or-later
URL: http://katze.tfiu.de/projects/phyghtmap/
^ permalink raw reply related [flat|nested] 2+ messages in thread* [rpms/python-phyghtmap] f45: Try to further fix package: spurious lines on results (rhbz#2469045)
@ 2026-11-28 11:17 Federico Pellegrin
0 siblings, 0 replies; 2+ messages in thread
From: Federico Pellegrin @ 2026-11-28 11:17 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/python-phyghtmap
Branch : f45
Commit : 76dd1fb1aee2e3a1336ce8f3441d9f194e37d011
Author : Federico Pellegrin <fede@evolware.org>
Date : 2026-11-28T12:15:55+01:00
Stats : +42/-0 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/python-phyghtmap/c/76dd1fb1aee2e3a1336ce8f3441d9f194e37d011?branch=f45
Log:
Try to further fix package: spurious lines on results (rhbz#2469045)
---
diff --git a/0006-Spurious_lines_countour_py.patch b/0006-Spurious_lines_countour_py.patch
new file mode 100644
index 0000000..b2be8e4
--- /dev/null
+++ b/0006-Spurious_lines_countour_py.patch
@@ -0,0 +1,37 @@
+diff -ruN phyghtmap-2.23-e/phyghtmap/hgt.py phyghtmap-2.23-f/phyghtmap/hgt.py
+--- phyghtmap-2.23-e/phyghtmap/hgt.py 2026-11-27 12:06:01.587097260 +0100
++++ phyghtmap-2.23-f/phyghtmap/hgt.py 2026-11-28 12:12:04.417035103 +0100
+@@ -429,6 +429,9 @@
+ """
+ if Version(mplversion) >= Version("2.0.0"):
+ rawPaths = self.Cntr.create_contour(elevation)
++ if isinstance(rawPaths, tuple):
++ # new contourpy returns (lines, codes)!
++ rawPaths = rawPaths[0]
+ elif Version(mplversion) >= Version("1.0.0"):
+ # matplotlib 1.0.0 and above returns vertices and segments, but we only need vertices
+ rawPaths = halfOf(self.Cntr.trace(elevation, **kwargs))
+diff -ruN phyghtmap-2.23-e/phyghtmap/pbfUtil.py phyghtmap-2.23-f/phyghtmap/pbfUtil.py
+--- phyghtmap-2.23-e/phyghtmap/pbfUtil.py 2026-11-27 12:06:01.582097102 +0100
++++ phyghtmap-2.23-f/phyghtmap/pbfUtil.py 2026-11-28 12:09:09.383705912 +0100
+@@ -378,18 +378,11 @@
+
+ def _makePoints(path, elevation, IDCounter):
+ ids, nodes = [], []
+- all_paths = []
+- for single_path in path:
+- try:
+- for lon, lat in single_path:
+- all_paths.append([lon, lat])
+- except:
+- pass
+- for lon, lat in all_paths:
++ for lon, lat in path:
+ IDCounter.curId += 1
+ nodes.append((int(lon*NANO), int(lat*NANO)))
+ ids.append(IDCounter.curId-1)
+- if len(ids)>0 and numpy.all(all_paths[0]==all_paths[-1]): # close contour
++ if len(ids)>0 and numpy.all(path[0]==path[-1]): # close contour
+ del nodes[-1] # remove last node
+ del ids[-1]
+ ids.append(ids[0])
diff --git a/python-phyghtmap.spec b/python-phyghtmap.spec
index 00d5074..9f33f7f 100644
--- a/python-phyghtmap.spec
+++ b/python-phyghtmap.spec
@@ -17,6 +17,8 @@ Patch2: 0003-Array_all_array_equal.patch
Patch3: 0004-New_gdal_swapped_coords.patch
# Fix lat/long swapped in PDB files
Patch4: 0005-Lat_lon_swapped.patch
+# Fix spurious lines due to countourpy returning tuples
+Patch5: 0006-Spurious_lines_countour_py.patch
BuildArch: noarch
# https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval
ExcludeArch: %{ix86}
@@ -76,6 +78,9 @@ install -Dpm 644 docs/%{modname}.1 %{buildroot}%{_mandir}/man1/%{modname}.1
%{_mandir}/man1/%{modname}.1*
%changelog
+* Sat Nov 28 2026 Federico Pellegrin <fede@evolware.org> - 2.23-25
+- Try to further fix package: spurious lines on results (rhbz#2469045)
+
* Fri Nov 27 2026 Federico Pellegrin <fede@evolware.org> - 2.23-24
- Try to further fix package: swapped coordinates in PDB (rhbz#2469045)
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-11-28 11:17 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-28 11:17 [rpms/python-phyghtmap] f45: Try to further fix package: spurious lines on results (rhbz#2469045) Federico Pellegrin
-- strict thread matches above, loose matches on Subject: below --
2026-11-28 11:17 Federico Pellegrin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox