Welcome to mirror list, hosted at ThFree Co, Russian Federation.

kml_parser.hpp « indexer_tool « indexer - github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: e09bd1e813127a703119d6d82754dc0582628d9a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#pragma once

#include "../../geometry/region2d.hpp"
#include "../../geometry/tree4d.hpp"

#include "../../std/string.hpp"


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);
}