
7 Jan
2013
7 Jan
'13
4:26 p.m.
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