[mkgmap-dev] Patch proposal for maxspeed reading
From Felix Hartmann extremecarver at googlemail.com on Sat Sep 12 00:51:39 BST 2009
Could one use theese lines also to replace % with °? Or phrased better, can mkgmap calculate the tangent? Nakor wrote: > Hello, > > Currently if maxspeed=45 mph (with a space between the number and mph), > mkgmap fails to read the maxspeed correctly. Below is a proposed patch > to solve that issue. > > Thanks, > > N. > > Index: src/uk/me/parabola/mkgmap/osmstyle/StyledConverter.java > =================================================================== > --- src/uk/me/parabola/mkgmap/osmstyle/StyledConverter.java (revision > 1182) > +++ src/uk/me/parabola/mkgmap/osmstyle/StyledConverter.java (working > copy) > @@ -1168,7 +1168,7 @@ > > if(speedTag.matches(".*mph")) // Check if it is a limit in mph > { > - speedTag = speedTag.replaceFirst("mph", ""); > + speedTag = speedTag.replaceFirst(" *mph", ""); > factor = 1.61; > } > else > > > _______________________________________________ > mkgmap-dev mailing list > mkgmap-dev at lists.mkgmap.org.uk > http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev >
- Previous message: [mkgmap-dev] Patch proposal for maxspeed reading
- Next message: [mkgmap-dev] Commit: r1181: Improve estimate of size required for lines and polygons.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the mkgmap-dev mailing list