diff options
author | Anatoly Serdtcev <serdtcev@maps.me> | 2019-05-07 21:32:12 +0300 |
---|---|---|
committer | Anatoly Serdtcev <serdtcev@maps.me> | 2019-06-11 16:32:02 +0300 |
commit | 19d06f4dad3d8830802a2fd95574c9f909f0151d (patch) | |
tree | 0c480763d775a7230f92b23fc7d6ac6e373f051f /generator | |
parent | f61d9e459f2bf83fb6dd00a7da504925e1dd3b15 (diff) |
[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); } |