Question reg. StyledConverter.addConvertedWay()

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? Gerd -- View this message in context: http://gis.19327.n5.nabble.com/Question-reg-StyledConverter-addConvertedWay-... Sent from the Mkgmap Development mailing list archive at Nabble.com.

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

Hi Steve, Steve Ratcliffe wrote
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.
thanks, I was confused by the fact that the style I am using for testing assigns these extended types to highways. A closer look showed that they do not have a road_class or road_speed set, so they are not handled as roads in that style. Gerd -- View this message in context: http://gis.19327.n5.nabble.com/Question-reg-StyledConverter-addConvertedWay-... Sent from the Mkgmap Development mailing list archive at Nabble.com.
participants (2)
-
GerdP
-
Steve Ratcliffe