forked from organicmaps/organicmaps
Merge pull request #151 from syershov/fix-generator
[generator] Fix processing holes in features
This commit is contained in:
commit
d32e607360
1 changed files with 2 additions and 1 deletions
|
@ -488,6 +488,7 @@ public:
|
|||
holes(e.ref);
|
||||
}
|
||||
|
||||
auto const & holesGeometry = holes.GetHoles();
|
||||
outer.ForEachArea(true, [&] (FeatureBuilder1::TPointSeq const & pts, vector<uint64_t> const & ids)
|
||||
{
|
||||
FeatureBuilder1 ft;
|
||||
|
@ -499,7 +500,7 @@ public:
|
|||
ft.AddPoint(pt);
|
||||
|
||||
ft.AddOsmId(osm::Id::Relation(p->id));
|
||||
EmitArea(ft, params, [&holes] (FeatureBuilder1 & ft) {ft.SetAreaAddHoles(holes.GetHoles());});
|
||||
EmitArea(ft, params, [&holesGeometry] (FeatureBuilder1 & ft) {ft.SetAreaAddHoles(holesGeometry);});
|
||||
});
|
||||
|
||||
state = FeatureState::Ok;
|
||||
|
|
Loading…
Add table
Reference in a new issue