is_valid

# is_valid: detect if a geometry is valid

typename Geometry
bool bool boost::geometry::is_valid (Geometry const &geometry) is_valid Geometry const & geometry

Checks if a geometry \1.

Geometry

Any type fulfilling a Geometry Concept

geometry

A model of the specified concept

{is valid (in the OGC sense); furthermore, the following geometries are considered valid: multi-geometries with no elements, linear geometries containing spikes, areal geometries with duplicate (consecutive) points}

[include reference/algorithms/is_valid.qbk]
typename Geometry
bool bool boost::geometry::is_valid (Geometry const &geometry, validity_failure_type &failure) is_valid Geometry const & geometry validity_failure_type & failure

Checks if a geometry \1.

Geometry

Any type fulfilling a Geometry Concept

geometry

A model of the specified concept

failure

An enumeration value indicating that the geometry is valid or not, and if not valid indicating the reason why

{is valid (in the OGC sense); furthermore, the following geometries are considered valid: multi-geometries with no elements, linear geometries containing spikes, areal geometries with duplicate (consecutive) points}

with failure value [include reference/algorithms/is_valid_with_failure.qbk]
typename Geometry
bool bool boost::geometry::is_valid (Geometry const &geometry, std::string &message) is_valid Geometry const & geometry std::string & message

Checks if a geometry \1.

Geometry

Any type fulfilling a Geometry Concept

geometry

A model of the specified concept

message

A string containing a message stating if the geometry is valid or not, and if not valid a reason why

{is valid (in the OGC sense); furthermore, the following geometries are considered valid: multi-geometries with no elements, linear geometries containing spikes, areal geometries with duplicate (consecutive) points}

with message [include reference/algorithms/is_valid_with_message.qbk]