forked from organicmaps/organicmaps
[generator] Fixed generation of .addr file.
This commit is contained in:
parent
122c45ec20
commit
cace5a3519
2 changed files with 3 additions and 3 deletions
|
@ -508,6 +508,6 @@ public:
|
|||
: base_type(emitter, holder), m_coastType(coastType)
|
||||
{
|
||||
if (!addrFilePath.empty())
|
||||
m_addrWriter.reset(new FileWriter(addrFilePath, FileWriter::OP_APPEND));
|
||||
m_addrWriter.reset(new FileWriter(addrFilePath));
|
||||
}
|
||||
};
|
||||
|
|
|
@ -193,8 +193,8 @@ bool FeatureParams::FormatFullAddress(m2::PointD const & pt, string & res) const
|
|||
if (!m_street.empty() && !house.IsEmpty())
|
||||
{
|
||||
res = m_street + "|" + house.Get() + "|"
|
||||
+ strings::to_string(MercatorBounds::YToLat(pt.y)) + "|"
|
||||
+ strings::to_string(MercatorBounds::XToLon(pt.x)) + '\n';
|
||||
+ strings::to_string_dac(MercatorBounds::YToLat(pt.y), 8) + "|"
|
||||
+ strings::to_string_dac(MercatorBounds::XToLon(pt.x), 8) + '\n';
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue