[Git][debian-gis-team/mkgmap][upstream] New upstream version 0.0.0+svn4907

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



Bas Couwenberg pushed to branch upstream 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
- - - - -


2 changed files:

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


Changes:

=====================================
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/-/commit/529d2f0b145851bf295b0913bdd9471888367dcc

-- 
View it on GitLab: https://salsa.debian.org/debian-gis-team/mkgmap/-/commit/529d2f0b145851bf295b0913bdd9471888367dcc
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/a14f7081/attachment-0001.htm>


More information about the Pkg-grass-devel mailing list