covered_by

# covered_by: detect if a geometry is inside or on the border of another geometry, a.o. point-in-polygon (border included)

boost::geometry::strategy::covered_by::services::default_strategy
typename Geometry1
typename Geometry2
bool bool boost::geometry::covered_by (Geometry1 const &geometry1, Geometry2 const &geometry2) covered_by Geometry1 const & geometry1 Geometry2 const & geometry2

Checks if the first geometry is inside or on border the second geometry.

The free function covered_by checks if the first geometry is inside or on border the second geometry. Geometry1

Any type fulfilling a Geometry Concept

Geometry2

Any type fulfilling a Geometry Concept

geometry1

A model of the specified concept which might be inside or on the border of the second geometry

geometry2

A model of the specified concept which might cover the first geometry

true if geometry1 is inside of or on the border of geometry2, else false

The default strategy is used for covered_by detection

[include reference/algorithms/covered_by.qbk]
typename Geometry1
typename Geometry2
typename Strategy
bool bool boost::geometry::covered_by (Geometry1 const &geometry1, Geometry2 const &geometry2, Strategy const &strategy) covered_by Geometry1 const & geometry1 Geometry2 const & geometry2 Strategy const & strategy

Checks if the first geometry is inside or on border the second geometry using the specified strategy.

The free function covered_by checks if the first geometry is inside or on border the second geometry, using the specified strategy. Reasons to specify a strategy include: use another coordinate system for calculations; construct the strategy beforehand (e.g. with the radius of the Earth); select a strategy when there are more than one available for a calculation. Geometry1

Any type fulfilling a Geometry Concept

Geometry2

Any type fulfilling a Geometry Concept

geometry1

A model of the specified concept which might be inside or on the border of the second geometry

geometry2

A model of the specified concept which might cover the first geometry

strategy

strategy to be used

true if geometry1 is inside of or on the border of geometry2, else false

with strategy [include reference/algorithms/covered_by.qbk]