Fix getting of cell's name and id for coastlines.

This commit is contained in:
vng 2011-10-08 11:32:59 +03:00 committed by Alex Zolotarev
parent 451fb89cc0
commit 67b27d0d9e
3 changed files with 5 additions and 5 deletions

View file

@ -198,7 +198,7 @@ bool CoastlineFeaturesGenerator::GetFeature(CellIdT const & cell, FeatureBuilder
return false;
// assign feature
fb.SetCoastCell(cell.ToInt64(CellIdT::DEPTH_LEVELS));
fb.SetCoastCell(cell.ToInt64(m_highLevel + 1), cell.ToString());
doDiff.AssignGeometry(fb);
fb.SetArea();

View file

@ -337,12 +337,12 @@ int FeatureBuilder1::GetMinFeatureDrawScale() const
return (minScale == -1 ? 1000 : minScale);
}
void FeatureBuilder1::SetCoastCell(int64_t cell)
void FeatureBuilder1::SetCoastCell(int64_t iCell, string const & strCell)
{
m_coastCell = cell;
m_coastCell = iCell;
FeatureParams params;
params.name.AddString(0, strings::to_string(cell));
params.name.AddString(0, strCell);
SetParams(params);
}

View file

@ -123,7 +123,7 @@ public:
int GetMinFeatureDrawScale() const;
void SetCoastCell(int64_t cell);
void SetCoastCell(int64_t iCell, string const & strCell);
inline bool GetCoastCell(int64_t & cell) const
{
if (m_coastCell != -1)