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

Function GetBoundingBoxArea

libs/indexer/drules_selector.cpp:169–177  ·  view source on GitHub ↗

Feature tag value evaluator for tag 'bbox_area' (bounding box area in sq.meters)

Source from the content-addressed store, hash-verified

167
168// Feature tag value evaluator for tag 'bbox_area' (bounding box area in sq.meters)
169bool GetBoundingBoxArea(FeatureType & ft, int zoom, double & sqM)
170{
171 if (feature::GeomType::Area != ft.GetGeomType())
172 return false;
173
174 // https://github.com/organicmaps/organicmaps/issues/2840
175 sqM = mercator::AreaOnEarth(ft.GetLimitRect(zoom));
176 return true;
177}
178} // namespace
179
180unique_ptr<ISelector> ParseSelector(string const & str)

Callers

nothing calls this directly

Calls 3

AreaOnEarthFunction · 0.50
GetGeomTypeMethod · 0.45
GetLimitRectMethod · 0.45

Tested by

no test coverage detected