• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<html>
2<head>
3<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
4<title>MultiPolygon Concept</title>
5<link rel="stylesheet" href="../../../../../../../doc/src/boostbook.css" type="text/css">
6<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
7<link rel="home" href="../../../index.html" title="Chapter 1. Geometry">
8<link rel="up" href="../concepts.html" title="Concepts">
9<link rel="prev" href="concept_multi_linestring.html" title="MultiLinestring Concept">
10<link rel="next" href="concept_box.html" title="Box Concept">
11</head>
12<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
13<table cellpadding="2" width="100%"><tr>
14<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../boost.png"></td>
15<td align="center"><a href="../../../../../../../index.html">Home</a></td>
16<td align="center"><a href="../../../../../../../libs/libraries.htm">Libraries</a></td>
17<td align="center"><a href="http://www.boost.org/users/people.html">People</a></td>
18<td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td>
19<td align="center"><a href="../../../../../../../more/index.htm">More</a></td>
20</tr></table>
21<hr>
22<div class="spirit-nav">
23<a accesskey="p" href="concept_multi_linestring.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../concepts.html"><img src="../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="concept_box.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a>
24</div>
25<div class="section">
26<div class="titlepage"><div><div><h4 class="title">
27<a name="geometry.reference.concepts.concept_multi_polygon"></a><a class="link" href="concept_multi_polygon.html" title="MultiPolygon Concept">MultiPolygon
28        Concept</a>
29</h4></div></div></div>
30<h6>
31<a name="geometry.reference.concepts.concept_multi_polygon.h0"></a>
32          <span class="phrase"><a name="geometry.reference.concepts.concept_multi_polygon.description"></a></span><a class="link" href="concept_multi_polygon.html#geometry.reference.concepts.concept_multi_polygon.description">Description</a>
33        </h6>
34<p>
35          The MultiPolygon Concept describes the requirements for a multi polygon
36          type. All algorithms in Boost.Geometry will check any geometry arguments
37          against the concept requirements.
38        </p>
39<h6>
40<a name="geometry.reference.concepts.concept_multi_polygon.h1"></a>
41          <span class="phrase"><a name="geometry.reference.concepts.concept_multi_polygon.concept_definition"></a></span><a class="link" href="concept_multi_polygon.html#geometry.reference.concepts.concept_multi_polygon.concept_definition">Concept
42          Definition</a>
43        </h6>
44<p>
45          The MultiPolygon Concept is defined as following:
46        </p>
47<div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; ">
48<li class="listitem">
49              There must be a specialization of the metafunction <code class="computeroutput"><span class="identifier">traits</span><span class="special">::</span><span class="identifier">tag</span></code>,
50              defining <code class="computeroutput"><span class="identifier">multi_polygon_tag</span></code>
51              as type
52            </li>
53<li class="listitem">
54              It must behave like a Boost.Range Random Access Range
55            </li>
56<li class="listitem">
57              The type defined by the metafunction <code class="computeroutput"><span class="identifier">range_value</span><span class="special">&lt;...&gt;::</span><span class="identifier">type</span></code>
58              must fulfill the <a class="link" href="concept_polygon.html" title="Polygon Concept">Polygon
59              Concept</a>
60            </li>
61</ul></div>
62<h6>
63<a name="geometry.reference.concepts.concept_multi_polygon.h2"></a>
64          <span class="phrase"><a name="geometry.reference.concepts.concept_multi_polygon.rules"></a></span><a class="link" href="concept_multi_polygon.html#geometry.reference.concepts.concept_multi_polygon.rules">Rules</a>
65        </h6>
66<p>
67          Besides the Concepts, which are checks on compile-time, there are rules
68          that valid MultiPolygons must fulfill. See the <a class="link" href="concept_polygon.html" title="Polygon Concept">Polygon
69          Concept</a> for more information on the rules a polygon (and also a
70          multi polygon) must fulfill.
71        </p>
72<p>
73          Additionally:
74        </p>
75<div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; ">
76<li class="listitem">
77              Individual polygons making up a multi-polygon may not intersect each
78              other, but tangencies are allowed.
79            </li>
80<li class="listitem">
81              One polygon might be located within the interior ring of another polygon.
82            </li>
83</ul></div>
84<h6>
85<a name="geometry.reference.concepts.concept_multi_polygon.h3"></a>
86          <span class="phrase"><a name="geometry.reference.concepts.concept_multi_polygon.available_models"></a></span><a class="link" href="concept_multi_polygon.html#geometry.reference.concepts.concept_multi_polygon.available_models">Available
87          Models</a>
88        </h6>
89<div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "><li class="listitem">
90              <a class="link" href="../models/model_multi_polygon.html" title="model::multi_polygon">model::multi_polygon</a>
91            </li></ul></div>
92</div>
93<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
94<td align="left"></td>
95<td align="right"><div class="copyright-footer">Copyright © 2009-2019 Barend Gehrels, Bruno Lalande, Mateusz Loskot, Adam
96      Wulkiewicz, Oracle and/or its affiliates<p>
97        Distributed under the Boost Software License, Version 1.0. (See accompanying
98        file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
99      </p>
100</div></td>
101</tr></table>
102<hr>
103<div class="spirit-nav">
104<a accesskey="p" href="concept_multi_linestring.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../concepts.html"><img src="../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="concept_box.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a>
105</div>
106</body>
107</html>
108