[Git][debian-gis-team/mkgmap][experimental] 4 commits: New upstream version 0.0.0+svn4907

Bas Couwenberg (@sebastic) gitlab at salsa.debian.org
Sat Apr 1 06:45:55 BST 2023



Bas Couwenberg pushed to branch experimental at Debian GIS Project / mkgmap


Commits:
529d2f0b by Bas Couwenberg at 2023-04-01T07:36:50+02:00
New upstream version 0.0.0+svn4907
- - - - -
398783d9 by Bas Couwenberg at 2023-04-01T07:37:07+02:00
Update upstream source from tag 'upstream/0.0.0+svn4907'

Update to upstream version '0.0.0+svn4907'
with Debian dir 88b730ccf5537d90caca0464c69d1449652b7494
- - - - -
d8e5e1c1 by Bas Couwenberg at 2023-04-01T07:37:27+02:00
New upstream SVN snapshot.

- - - - -
9f77691b by Bas Couwenberg at 2023-04-01T07:38:19+02:00
Set distribution to experimental.

- - - - -


3 changed files:

- debian/changelog
- resources/mkgmap-version.properties
- src/uk/me/parabola/mkgmap/reader/polish/PolishMapDataSource.java


Changes:

=====================================
debian/changelog
=====================================
@@ -1,3 +1,9 @@
+mkgmap (0.0.0+svn4907-1~exp1) experimental; urgency=medium
+
+  * New upstream SVN snapshot.
+
+ -- Bas Couwenberg <sebastic at debian.org>  Sat, 01 Apr 2023 07:38:04 +0200
+
 mkgmap (0.0.0+svn4906-1~exp1) experimental; urgency=medium
 
   * New upstream SVN snapshot.


=====================================
resources/mkgmap-version.properties
=====================================
@@ -1,2 +1,2 @@
-svn.version: 4906
-build.timestamp: 2023-03-02T15:47:57+0000
+svn.version: 4907
+build.timestamp: 2023-03-06T06:03:09+0000


=====================================
src/uk/me/parabola/mkgmap/reader/polish/PolishMapDataSource.java
=====================================
@@ -574,12 +574,12 @@ public class PolishMapDataSource extends MapperBasedMapDataSource implements Loa
 			String h = polyline.getName();
 			try {
 				// Convert to feet.
-				int n = Integer.parseInt(h);
-				n *= METERS_TO_FEET;
-				polyline.setName(String.valueOf(n));
+				double m = Double.parseDouble(h);
+				int feet = (int) Math.round(m * METERS_TO_FEET);
+				polyline.setName(Integer.toString(feet));
 
 			} catch (NumberFormatException e) {
-				// OK it wasn't a number, leave it alone
+				log.warn(h + " doesn't seem to be a valid elevation value in m" );
 			}
 		}
 	}



View it on GitLab: https://salsa.debian.org/debian-gis-team/mkgmap/-/compare/f63f2f0f804b53d0e01e8d9cd55b6c0ab2284f15...9f77691b4ebf1b2e9b60b1f2fd4e90f5dd7757da

-- 
View it on GitLab: https://salsa.debian.org/debian-gis-team/mkgmap/-/compare/f63f2f0f804b53d0e01e8d9cd55b6c0ab2284f15...9f77691b4ebf1b2e9b60b1f2fd4e90f5dd7757da
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-grass-devel/attachments/20230401/6fe39151/attachment-0001.htm>


More information about the Pkg-grass-devel mailing list