1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
4 <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
5 <title>Boost.Geometry (aka GGL, Generic Geometry Library)</title>
6 <link href="doxygen.css" rel="stylesheet" type="text/css">
7 <link href="tabs.css" rel="stylesheet" type="text/css">
9 <table cellpadding="2" width="100%">
13 <img alt="Boost.Geometry" src="images/ggl-logo-big.png" height="80" width="200">
16 <td valign="top" align="right">
17 <a href="http://www.boost.org">
18 <img alt="Boost C++ Libraries" src="images/accepted_by_boost.png" height="80" width="230" border="0">
24 <!-- Generated by Doxygen 1.8.6 -->
25 <div id="navrow1" class="tabs">
27 <li><a href="index.html"><span>Main Page</span></a></li>
28 <li><a href="pages.html"><span>Related Pages</span></a></li>
29 <li><a href="modules.html"><span>Modules</span></a></li>
30 <li><a href="namespaces.html"><span>Namespaces</span></a></li>
31 <li><a href="annotated.html"><span>Classes</span></a></li>
32 <li><a href="files.html"><span>Files</span></a></li>
33 <li><a href="examples.html"><span>Examples</span></a></li>
39 <a href="#nested-classes">Classes</a> |
40 <a href="#func-members">Functions</a> </div>
41 <div class="headertitle">
42 <div class="title">covered_by: detect if a geometry is inside or on the border of another geometry, a.o. point-in-polygon (border included)</div> </div>
44 <div class="contents">
45 <table class="memberdecls">
46 <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
47 Classes</h2></td></tr>
48 <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="structboost_1_1geometry_1_1strategy_1_1covered__by_1_1services_1_1default__strategy.html">boost::geometry::strategy::covered_by::services::default_strategy< TagContained, TagContaining, CastedTagContained, CastedTagContaining, CsTagContained, CsTagContaining, GeometryContained, GeometryContaining ></a></td></tr>
49 <tr class="memdesc:"><td class="mdescLeft"> </td><td class="mdescRight">Traits class binding a <a class="el" href="namespaceboost_1_1geometry_1_1strategy_1_1covered__by.html">covered_by</a> determination strategy to a coordinate system. <a href="structboost_1_1geometry_1_1strategy_1_1covered__by_1_1services_1_1default__strategy.html#details">More...</a><br/></td></tr>
50 <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
51 </table><table class="memberdecls">
52 <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
53 Functions</h2></td></tr>
54 <tr class="memitem:ga83cfa260c6a4f3bcba5a99da6113d19c"><td class="memTemplParams" colspan="2">template<typename Geometry1 , typename Geometry2 > </td></tr>
55 <tr class="memitem:ga83cfa260c6a4f3bcba5a99da6113d19c"><td class="memTemplItemLeft" align="right" valign="top">bool </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group__covered__by.html#ga83cfa260c6a4f3bcba5a99da6113d19c">boost::geometry::covered_by</a> (Geometry1 const &geometry1, Geometry2 const &geometry2)</td></tr>
56 <tr class="memdesc:ga83cfa260c6a4f3bcba5a99da6113d19c"><td class="mdescLeft"> </td><td class="mdescRight">Checks if the first geometry is inside or on border the second geometry. <a href="#ga83cfa260c6a4f3bcba5a99da6113d19c">More...</a><br/></td></tr>
57 <tr class="separator:ga83cfa260c6a4f3bcba5a99da6113d19c"><td class="memSeparator" colspan="2"> </td></tr>
58 <tr class="memitem:ga4db6801730953629ec9eb040a5ccc1ad"><td class="memTemplParams" colspan="2">template<typename Geometry1 , typename Geometry2 , typename Strategy > </td></tr>
59 <tr class="memitem:ga4db6801730953629ec9eb040a5ccc1ad"><td class="memTemplItemLeft" align="right" valign="top">bool </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group__covered__by.html#ga4db6801730953629ec9eb040a5ccc1ad">boost::geometry::covered_by</a> (Geometry1 const &geometry1, Geometry2 const &geometry2, Strategy const &strategy)</td></tr>
60 <tr class="memdesc:ga4db6801730953629ec9eb040a5ccc1ad"><td class="mdescLeft"> </td><td class="mdescRight">Checks if the first geometry is inside or on border the second geometry using the specified strategy. <a href="#ga4db6801730953629ec9eb040a5ccc1ad">More...</a><br/></td></tr>
61 <tr class="separator:ga4db6801730953629ec9eb040a5ccc1ad"><td class="memSeparator" colspan="2"> </td></tr>
63 <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
64 <h2 class="groupheader">Function Documentation</h2>
65 <a class="anchor" id="ga83cfa260c6a4f3bcba5a99da6113d19c"></a>
67 <div class="memproto">
68 <div class="memtemplate">
69 template<typename Geometry1 , typename Geometry2 > </div>
70 <table class="memname">
72 <td class="memname">bool boost::geometry::covered_by </td>
74 <td class="paramtype">Geometry1 const & </td>
75 <td class="paramname"><em>geometry1</em>, </td>
78 <td class="paramkey"></td>
80 <td class="paramtype">Geometry2 const & </td>
81 <td class="paramname"><em>geometry2</em> </td>
89 </div><div class="memdoc">
91 <p>Checks if the first geometry is inside or on border the second geometry. </p>
92 <p>The free function covered_by checks if the first geometry is inside or on border the second geometry. </p>
93 <dl class="tparams"><dt>Template Parameters</dt><dd>
94 <table class="tparams">
95 <tr><td class="paramname">Geometry1</td><td>Any type fulfilling a Geometry Concept </td></tr>
96 <tr><td class="paramname">Geometry2</td><td>Any type fulfilling a Geometry Concept </td></tr>
100 <dl class="params"><dt>Parameters</dt><dd>
101 <table class="params">
102 <tr><td class="paramname">geometry1</td><td>A model of the specified concept which might be inside or on the border of the second geometry </td></tr>
103 <tr><td class="paramname">geometry2</td><td>A model of the specified concept which might cover the first geometry </td></tr>
107 <dl class="section return"><dt>Returns</dt><dd>true if geometry1 is inside of or on the border of geometry2, else false </dd></dl>
108 <dl class="section note"><dt>Note</dt><dd>The default strategy is used for covered_by detection</dd></dl>
112 <a class="anchor" id="ga4db6801730953629ec9eb040a5ccc1ad"></a>
113 <div class="memitem">
114 <div class="memproto">
115 <div class="memtemplate">
116 template<typename Geometry1 , typename Geometry2 , typename Strategy > </div>
117 <table class="memname">
119 <td class="memname">bool boost::geometry::covered_by </td>
121 <td class="paramtype">Geometry1 const & </td>
122 <td class="paramname"><em>geometry1</em>, </td>
125 <td class="paramkey"></td>
127 <td class="paramtype">Geometry2 const & </td>
128 <td class="paramname"><em>geometry2</em>, </td>
131 <td class="paramkey"></td>
133 <td class="paramtype">Strategy const & </td>
134 <td class="paramname"><em>strategy</em> </td>
142 </div><div class="memdoc">
144 <p>Checks if the first geometry is inside or on border the second geometry using the specified strategy. </p>
145 <p>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. </p>
146 <dl class="tparams"><dt>Template Parameters</dt><dd>
147 <table class="tparams">
148 <tr><td class="paramname">Geometry1</td><td>Any type fulfilling a Geometry Concept </td></tr>
149 <tr><td class="paramname">Geometry2</td><td>Any type fulfilling a Geometry Concept </td></tr>
153 <dl class="params"><dt>Parameters</dt><dd>
154 <table class="params">
155 <tr><td class="paramname">geometry1</td><td>A model of the specified concept which might be inside or on the border of the second geometry </td></tr>
156 <tr><td class="paramname">geometry2</td><td>A model of the specified concept which might cover the first geometry </td></tr>
157 <tr><td class="paramname">strategy</td><td>strategy to be used </td></tr>
161 <dl class="section return"><dt>Returns</dt><dd>true if geometry1 is inside of or on the border of geometry2, else false</dd></dl>
165 </div><!-- contents -->
170 <td align="left"><small>
175 Copyright © 2007-2011 Barend Gehrels, Amsterdam, the Netherlands<br>
176 Copyright © 2008-2011 Bruno Lalande, Paris, France<br>
177 Copyright © 2009-2010 Mateusz Loskot, London, UK<br>
183 <address style="text-align: right;"><small>
184 Documentation is generated by <a href="http://www.doxygen.org/index.html">Doxygen</a>