diff options
Diffstat (limited to 'generator/kml_parser.hpp')
-rw-r--r-- | generator/kml_parser.hpp | 22 |
1 files changed, 2 insertions, 20 deletions
diff --git a/generator/kml_parser.hpp b/generator/kml_parser.hpp index 25a0e9d5da..0b6ebff541 100644 --- a/generator/kml_parser.hpp +++ b/generator/kml_parser.hpp @@ -1,28 +1,10 @@ #pragma once -#include "../geometry/region2d.hpp" -#include "../geometry/tree4d.hpp" - #include "../std/string.hpp" +class PolygonsContainerT; namespace kml { - typedef m2::RegionD Region; - typedef m4::Tree<Region> RegionsContainerT; - - struct CountryPolygons - { - CountryPolygons(string const & name = "") : m_name(name), m_index(-1) {} - - RegionsContainerT m_regions; - string m_name; - mutable int m_index; - }; - - typedef m4::Tree<CountryPolygons> CountriesContainerT; - - /// @param[in] simplifyCountriesLevel if positive, used as a level for simplificator - bool LoadCountriesList(string const & baseDir, CountriesContainerT & countries, - int simplifyCountriesLevel = -1); + bool LoadPolygons(string const & kmlFile, PolygonsContainerT & country, int level); } |