Libosmium
2.1.0
Fast and flexible C++ library for working with OpenStreetMap data
|
Helpful utility classes and functions not strictly OSM related. More...
Classes | |
class | Options |
class | VerboseOutput |
Functions | |
template<typename T > | |
T | double2string (T iterator, double value, int precision) |
void | double2string (std::string &out, double value, int precision) |
Variables | |
constexpr int | max_double_length = 20 |
Helpful utility classes and functions not strictly OSM related.
|
inline |
Write double to iterator, removing superfluous '0' characters at the end. The decimal dot will also be removed if necessary.
T | iterator type |
iterator | output iterator |
value | the value that should be written |
precision | max number of digits after the decimal point (must be <= 17) |
|
inline |
Write double to string, removing superfluous '0' characters at the end. The decimal dot will also be removed if necessary.
out | string |
value | the value that should be written |
precision | max number of digits after the decimal point |
constexpr int osmium::util::max_double_length = 20 |