centroid.qbk 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. [/============================================================================
  2. Boost.Geometry (aka GGL, Generic Geometry Library)
  3. Copyright (c) 2009-2012 Barend Gehrels, Amsterdam, the Netherlands.
  4. Copyright (c) 2009-2012 Mateusz Loskot, London, UK.
  5. Copyright (c) 2009-2012 Bruno Lalande, Paris, France.
  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. [def __this_function__ centroid]
  11. [heading_conformance_ogc __this_function__..Centroid]
  12. [heading Behavior]
  13. [table
  14. [[Case] [Behavior] ]
  15. [[__point__][Returns the point itself as the centroid]]
  16. [[__multi_point__][Calculates centroid (based on average)]]
  17. [[__1dim__][Calculates centroid (based on weighted length)]]
  18. [[__2dim__][Calculates centroid]]
  19. [[__empty__][Throws a [link geometry.reference.exceptions.centroid_exception centroid_exception] ]]
  20. [[__cart__][Implemented]]
  21. [[__sph__][Calculates the centroid as if based on Cartesian coordinates]]
  22. ]
  23. [/ TODO: change by status /]
  24. [heading Supported geometries]
  25. [table
  26. [[ ][2D][3D]]
  27. [[Point][[$img/ok.png]][[$img/ok.png]]]
  28. [[Segment][[$img/ok.png]][[$img/ok.png]]]
  29. [[Box][[$img/ok.png]][[$img/ok.png]]]
  30. [[Linestring][[$img/ok.png]][[$img/nyi.png]]]
  31. [[Ring][[$img/ok.png]][[$img/nyi.png]]]
  32. [[Polygon][[$img/ok.png]][[$img/nyi.png]]]
  33. [[MultiPoint][[$img/ok.png]][[$img/ok.png]]]
  34. [[MultiLinestring][[$img/ok.png]][[$img/nyi.png]]]
  35. [[MultiPolygon][[$img/ok.png]][[$img/nyi.png]]]
  36. ]
  37. [heading Complexity]
  38. Linear