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

Function TransformToPoint

generator/feature_maker_base.cpp:48–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46}
47
48void TransformToPoint(FeatureBuilder & feature)
49{
50 if (feature.IsPoint())
51 return;
52
53 feature.SetCenter(feature.GetGeometryCenter());
54
55 auto & params = feature.GetParams();
56 if (!params.house.IsEmpty())
57 params.SetGeomTypePointEx();
58}
59
60void TransformToLine(FeatureBuilder & feature)
61{

Callers 4

AddSrcMethod · 0.85
MakePointFunction · 0.85
ProcessPlacesMethod · 0.85
ProcessMethod · 0.85

Calls 6

GetParamsMethod · 0.80
SetGeomTypePointExMethod · 0.80
IsPointMethod · 0.45
SetCenterMethod · 0.45
GetGeometryCenterMethod · 0.45
IsEmptyMethod · 0.45

Tested by

no test coverage detected