logo separator

[mkgmap-dev] Commit: r1278: Add ability to set a road's class and speed from a CoordPOI.

From Felix Hartmann extremecarver at googlemail.com on Sun Oct 18 16:02:26 BST 2009

Mark Burton wrote:
> OK, let's try again. The attached patch adds a duplicate() method to
> the Way class.
> It's only really needed when using the continue patch. You will have to
> edit StyledConverter.class in the do while loop where it's
> looping around until foundType.isFinal() and in the body of the loop
> it is calling addRoad() or addLine(). In there, if the foundType is not
> final you want to pass a duplicate of the way rather than the original.
> so instead of: addRoad(way, foundType)
> you have: addRoad(way.duplicate(), foundType)
> If foundType.isFinal() is true, you don't need to duplicate the way
> (although if you do, no harm should come of it, just wastes a little
> time).
> Mark
Thanks for your work, doesn't show any improvements for me however (but 
adds about 25% to compile time).
> ------------------------------------------------------------------------
> _______________________________________________
> mkgmap-dev mailing list
> mkgmap-dev at lists.mkgmap.org.uk
> http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20091018/cda42689/attachment.html 

More information about the mkgmap-dev mailing list