diff options
author | LaGrunge <leontodys@gmail.com> | 2019-06-14 18:52:22 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-14 18:52:22 +0300 |
commit | 0466776ab17516a647ffdfc262ed20f031535cbf (patch) | |
tree | 24c6fe008cb88ef96b40f2e3ed938ded74e95485 /generator | |
parent | 607d105c9a1b82d6c7dee20fa28e59c841c8e81d (diff) | |
parent | 19d06f4dad3d8830802a2fd95574c9f909f0151d (diff) |
Merge pull request #11027 from cc-engineering/generator.geo_objects.filter-fix
[generator:geo_objects] Fix features filter: ignore lines
Diffstat (limited to 'generator')
-rw-r--r-- | generator/geo_objects/geo_objects_filter.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/generator/geo_objects/geo_objects_filter.cpp b/generator/geo_objects/geo_objects_filter.cpp index 446c09b251..0d1ba4d494 100644 --- a/generator/geo_objects/geo_objects_filter.cpp +++ b/generator/geo_objects/geo_objects_filter.cpp @@ -19,7 +19,10 @@ bool GeoObjectsFilter::IsAccepted(FeatureBuilder const & feature) { if (!feature.GetParams().IsValid()) return false; - + + if (feature.IsLine()) + return false; + return IsBuilding(feature) || HasHouse(feature) || IsPoi(feature); } |