logo separator

[mkgmap-dev] Question reg. StyledConverter.addConvertedWay()

From Steve Ratcliffe steve at parabola.me.uk on Mon Jan 7 16:26:29 GMT 2013

Hi

> please review this piece of code:
> 		    if(foundType.isRoad() &&
> 			   !MapObject.hasExtendedType(foundType.getType()))
> 				addRoad(way, foundType);
> 		    else
> 				addLine(way, foundType);
>
> Is it intended that ways with extendedType are added as lines (and not
> roads) no matter what isRoad() returns?

An extended type cannot be a road, so the check is
intended, but its an error in the style and should be caught there
and not in this piece of code.

..Steve


More information about the mkgmap-dev mailing list