MCPcopy Create free account
hub / github.com/comaps/comaps / GetEpsilonForSimplify

Function GetEpsilonForSimplify

libs/indexer/scales.cpp:60–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58}
59
60double GetEpsilonForSimplify(int level)
61{
62 // Keep better geometries on highest zoom to allow scaling them deeper.
63 // Effectively it leads to x26 precision difference from geom scale 2 to 3.
64 // Keep crude geometries for all other zooms,
65 // x4 precision difference from geom scale 0 to 1 and 1 to 2.
66 if (level == GetUpperScale())
67 return GetEpsilonImpl(level, 0.4);
68 else
69 return GetEpsilonImpl(level, 1.3);
70}
71
72double GetEpsilonForHousenumbers(int level)
73{

Callers 2

operator()Method · 0.85
SimplifyPointsFunction · 0.85

Calls 2

GetUpperScaleFunction · 0.85
GetEpsilonImplFunction · 0.85

Tested by

no test coverage detected