forked from organicmaps/organicmaps
Fix incorrect applying command line parameters in case generating only world
This commit is contained in:
parent
9d8db80ecc
commit
3f2074401b
2 changed files with 5 additions and 3 deletions
|
@ -31,7 +31,7 @@ protected:
|
|||
|
||||
/// @return feature offset in the file, which is used as an ID later
|
||||
uint32_t WriteFeatureBase(vector<char> const & bytes, FeatureBuilder1 const & fb);
|
||||
void WriteRawFeatureGeometry(FeatureBuilder1 const & fb);
|
||||
|
||||
void Flush();
|
||||
|
||||
public:
|
||||
|
|
|
@ -226,7 +226,8 @@ namespace
|
|||
CHECK(!info.m_makeCoasts || !info.m_createWorld,
|
||||
("We can't do make_coasts and generate_world at the same time"));
|
||||
|
||||
if (!info.m_makeCoasts)
|
||||
// TODO: In this case we need more carefully check command line parameters for one country
|
||||
if (!info.m_makeCoasts && info.m_splitByPolygons)
|
||||
{
|
||||
m_countries.reset(new CountriesGenerator(info));
|
||||
|
||||
|
@ -235,7 +236,8 @@ namespace
|
|||
m_coastsHolder.reset(new feature::FeaturesCollector(info.GetTmpFileName(WORLD_COASTS_FILE_NAME)));
|
||||
}
|
||||
}
|
||||
else
|
||||
|
||||
if (info.m_makeCoasts)
|
||||
{
|
||||
m_coasts.reset(new CoastlineFeaturesGenerator(Type(NATURAL_COASTLINE)));
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue