is_valid.qbk 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232
  1. [/============================================================================
  2. Boost.Geometry (aka GGL, Generic Geometry Library)
  3. Copyright (c) 2007-2013 Barend Gehrels, Amsterdam, the Netherlands.
  4. Copyright (c) 2008-2013 Bruno Lalande, Paris, France.
  5. Copyright (c) 2009-2013 Mateusz Loskot, London, UK.
  6. Use, modification and distribution is subject to the Boost Software License,
  7. Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
  8. http://www.boost.org/LICENSE_1_0.txt)
  9. =============================================================================/]
  10. [/ Generated by doxygen_xml2qbk 1.1.1, don't change, will be overwritten automatically]
  11. [/ Generated from doxy/doxygen_output/xml/group__is__valid.xml]
  12. [section:is_valid_2_with_strategy is_valid (with strategy)]
  13. '''<indexterm><primary>is_valid</primary></indexterm>'''
  14. Checks if a geometry is valid (in the OGC sense)
  15. [heading Synopsis]
  16. ``template<typename Geometry, typename Strategy>
  17. bool is_valid(Geometry const & geometry, Strategy const & strategy)``
  18. [heading Parameters]
  19. [table
  20. [[Type] [Concept] [Name] [Description] ]
  21. [[Geometry const &] [Any type fulfilling a Geometry Concept ] [geometry] [A model of the specified concept ]]
  22. [[Strategy const &] [Any type fulfilling a Is_valid Strategy Concept ] [strategy] [The strategy which will be used for is_valid calculations ]]
  23. ]
  24. [heading Returns]
  25. Returns true if the geometry 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
  26. [heading Header]
  27. Either
  28. `#include <boost/geometry.hpp>`
  29. Or
  30. `#include <boost/geometry/algorithms/is_valid.hpp>`
  31. [include reference/algorithms/is_valid.qbk]
  32. [endsect]
  33. [section:is_valid_1 is_valid]
  34. '''<indexterm><primary>is_valid</primary></indexterm>'''
  35. Checks if a geometry is valid (in the OGC sense)
  36. [heading Synopsis]
  37. ``template<typename Geometry>
  38. bool is_valid(Geometry const & geometry)``
  39. [heading Parameters]
  40. [table
  41. [[Type] [Concept] [Name] [Description] ]
  42. [[Geometry const &] [Any type fulfilling a Geometry Concept ] [geometry] [A model of the specified concept ]]
  43. ]
  44. [heading Returns]
  45. Returns true if the geometry 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
  46. [heading Header]
  47. Either
  48. `#include <boost/geometry.hpp>`
  49. Or
  50. `#include <boost/geometry/algorithms/is_valid.hpp>`
  51. [include reference/algorithms/is_valid.qbk]
  52. [endsect]
  53. [section:is_valid_3_with_failure_value_and_strategy is_valid (with failure value and strategy)]
  54. '''<indexterm><primary>is_valid</primary></indexterm>'''
  55. Checks if a geometry is valid (in the OGC sense)
  56. [heading Synopsis]
  57. ``template<typename Geometry, typename Strategy>
  58. bool is_valid(Geometry const & geometry, validity_failure_type & failure, Strategy const & strategy)``
  59. [heading Parameters]
  60. [table
  61. [[Type] [Concept] [Name] [Description] ]
  62. [[Geometry const &] [Any type fulfilling a Geometry Concept ] [geometry] [A model of the specified concept ]]
  63. [[validity_failure_type &] [] [failure] [An enumeration value indicating that the geometry is valid or not, and if not valid indicating the reason why ]]
  64. [[Strategy const &] [Any type fulfilling a Is_valid Strategy Concept ] [strategy] [The strategy which will be used for is_valid calculations ]]
  65. ]
  66. [heading Returns]
  67. Returns true if the geometry 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
  68. [heading Header]
  69. Either
  70. `#include <boost/geometry.hpp>`
  71. Or
  72. `#include <boost/geometry/algorithms/is_valid.hpp>`
  73. [include reference/algorithms/is_valid_with_failure.qbk]
  74. [endsect]
  75. [section:is_valid_2_with_failure_value is_valid (with failure value)]
  76. '''<indexterm><primary>is_valid</primary></indexterm>'''
  77. Checks if a geometry is valid (in the OGC sense)
  78. [heading Synopsis]
  79. ``template<typename Geometry>
  80. bool is_valid(Geometry const & geometry, validity_failure_type & failure)``
  81. [heading Parameters]
  82. [table
  83. [[Type] [Concept] [Name] [Description] ]
  84. [[Geometry const &] [Any type fulfilling a Geometry Concept ] [geometry] [A model of the specified concept ]]
  85. [[validity_failure_type &] [] [failure] [An enumeration value indicating that the geometry is valid or not, and if not valid indicating the reason why ]]
  86. ]
  87. [heading Returns]
  88. Returns true if the geometry 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
  89. [heading Header]
  90. Either
  91. `#include <boost/geometry.hpp>`
  92. Or
  93. `#include <boost/geometry/algorithms/is_valid.hpp>`
  94. [include reference/algorithms/is_valid_with_failure.qbk]
  95. [endsect]
  96. [section:is_valid_3_with_message_and_strategy is_valid (with message and strategy)]
  97. '''<indexterm><primary>is_valid</primary></indexterm>'''
  98. Checks if a geometry is valid (in the OGC sense)
  99. [heading Synopsis]
  100. ``template<typename Geometry, typename Strategy>
  101. bool is_valid(Geometry const & geometry, std::string & message, Strategy const & strategy)``
  102. [heading Parameters]
  103. [table
  104. [[Type] [Concept] [Name] [Description] ]
  105. [[Geometry const &] [Any type fulfilling a Geometry Concept ] [geometry] [A model of the specified concept ]]
  106. [[std::string &] [] [message] [A string containing a message stating if the geometry is valid or not, and if not valid a reason why ]]
  107. [[Strategy const &] [Any type fulfilling a Is_valid Strategy Concept ] [strategy] [The strategy which will be used for is_valid calculations ]]
  108. ]
  109. [heading Returns]
  110. Returns true if the geometry 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
  111. [heading Header]
  112. Either
  113. `#include <boost/geometry.hpp>`
  114. Or
  115. `#include <boost/geometry/algorithms/is_valid.hpp>`
  116. [include reference/algorithms/is_valid_with_message.qbk]
  117. [endsect]
  118. [section:is_valid_2_with_message is_valid (with message)]
  119. '''<indexterm><primary>is_valid</primary></indexterm>'''
  120. Checks if a geometry is valid (in the OGC sense)
  121. [heading Synopsis]
  122. ``template<typename Geometry>
  123. bool is_valid(Geometry const & geometry, std::string & message)``
  124. [heading Parameters]
  125. [table
  126. [[Type] [Concept] [Name] [Description] ]
  127. [[Geometry const &] [Any type fulfilling a Geometry Concept ] [geometry] [A model of the specified concept ]]
  128. [[std::string &] [] [message] [A string containing a message stating if the geometry is valid or not, and if not valid a reason why ]]
  129. ]
  130. [heading Returns]
  131. Returns true if the geometry 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
  132. [heading Header]
  133. Either
  134. `#include <boost/geometry.hpp>`
  135. Or
  136. `#include <boost/geometry/algorithms/is_valid.hpp>`
  137. [include reference/algorithms/is_valid_with_message.qbk]
  138. [endsect]