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

Method SimplifyPoints

generator/feature_sorter.cpp:332–338  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

330 bool IsCountry() const { return m_header.GetType() == feature::DataHeader::MapType::Country; }
331
332 static void SimplifyPoints(int level, bool isCoast, m2::RectD const & rect, Points const & in, Points & out)
333 {
334 if (isCoast)
335 feature::SimplifyPoints(DistanceToSegmentWithRectBounds(rect), level, in, out);
336 else
337 feature::SimplifyPoints(m2::SquaredDistanceFromSegmentToPoint(), level, in, out);
338 }
339
340 std::string m_filename;
341

Callers

nothing calls this directly

Tested by

no test coverage detected