[generator][routing] Do not simplify highways only in country mom files.

This commit is contained in:
vng 2014-09-26 19:59:07 +03:00 committed by Alex Zolotarev
parent 221c5635b3
commit 9978969d9d

View file

@ -419,6 +419,8 @@ namespace feature
};
*/
bool IsCountry() const { return m_header.GetType() == feature::DataHeader::country; }
public:
void operator() (FeatureBuilder2 & fb)
{
@ -450,7 +452,7 @@ namespace feature
points_t points;
// Do not change linear geometry for the upper scale.
if (isLine && i == scalesStart && fb.IsHighway())
if (isLine && i == scalesStart && IsCountry() && fb.IsHighway())
points = holder.GetSourcePoints();
else
SimplifyPoints(holder.GetSourcePoints(), points, level, isCoast, rect);