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

Method IsGeometryClosed

generator/feature_builder.cpp:55–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53FeatureBuilder::FeatureBuilder() : m_coastCell(-1) {}
54
55bool FeatureBuilder::IsGeometryClosed() const
56{
57 PointSeq const & poly = GetOuterGeometry();
58 return (poly.size() > 2 && poly.front() == poly.back());
59}
60
61m2::PointD FeatureBuilder::GetGeometryCenter(PointSeq const & poly)
62{

Callers 7

CollectMethod · 0.80
operator()Method · 0.80
AddRegionToTreeMethod · 0.80
ProcessMethod · 0.80
BuildFromWayMethod · 0.80
BuildFromRelationMethod · 0.80
MakeFbForTestFunction · 0.80

Calls 3

frontMethod · 0.80
backMethod · 0.80
sizeMethod · 0.45

Tested by 1

MakeFbForTestFunction · 0.64