1<html> 2<head> 3<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 4<title>strategy::area::geographic</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="../strategies.html" title="Strategies"> 9<link rel="prev" href="strategy_area_spherical.html" title="strategy::area::spherical"> 10<link rel="next" href="strategy_buffer_join_round.html" title="strategy::buffer::join_round"> 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="strategy_area_spherical.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../strategies.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="strategy_buffer_join_round.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.strategies.strategy_area_geographic"></a><a class="link" href="strategy_area_geographic.html" title="strategy::area::geographic">strategy::area::geographic</a> 28</h4></div></div></div> 29<p> 30 <a class="indexterm" name="idm45635671589120"></a><a class="indexterm" name="idm45635671588432"></a><a class="indexterm" name="idm45635671587744"></a> 31Geographic area calculation. 32 </p> 33<h6> 34<a name="geometry.reference.strategies.strategy_area_geographic.h0"></a> 35 <span class="phrase"><a name="geometry.reference.strategies.strategy_area_geographic.description"></a></span><a class="link" href="strategy_area_geographic.html#geometry.reference.strategies.strategy_area_geographic.description">Description</a> 36 </h6> 37<p> 38 Geographic area calculation by trapezoidal rule plus integral approximation 39 that gives the ellipsoidal correction 40 </p> 41<h6> 42<a name="geometry.reference.strategies.strategy_area_geographic.h1"></a> 43 <span class="phrase"><a name="geometry.reference.strategies.strategy_area_geographic.synopsis"></a></span><a class="link" href="strategy_area_geographic.html#geometry.reference.strategies.strategy_area_geographic.synopsis">Synopsis</a> 44 </h6> 45<p> 46</p> 47<pre class="programlisting"><span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> <span class="identifier">FormulaPolicy</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span> <span class="identifier">SeriesOrder</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">Spheroid</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">CalculationType</span><span class="special">></span> 48<span class="keyword">class</span> <span class="identifier">strategy</span><span class="special">::</span><span class="identifier">area</span><span class="special">::</span><span class="identifier">geographic</span> 49<span class="special">{</span> 50 <span class="comment">// ...</span> 51<span class="special">};</span> 52</pre> 53<p> 54 </p> 55<h6> 56<a name="geometry.reference.strategies.strategy_area_geographic.h2"></a> 57 <span class="phrase"><a name="geometry.reference.strategies.strategy_area_geographic.template_parameter_s_"></a></span><a class="link" href="strategy_area_geographic.html#geometry.reference.strategies.strategy_area_geographic.template_parameter_s_">Template 58 parameter(s)</a> 59 </h6> 60<div class="informaltable"><table class="table"> 61<colgroup> 62<col> 63<col> 64<col> 65</colgroup> 66<thead><tr> 67<th> 68 <p> 69 Parameter 70 </p> 71 </th> 72<th> 73 <p> 74 Default 75 </p> 76 </th> 77<th> 78 <p> 79 Description 80 </p> 81 </th> 82</tr></thead> 83<tbody> 84<tr> 85<td> 86 <p> 87 typename FormulaPolicy 88 </p> 89 </td> 90<td> 91 <p> 92 strategy::andoyer 93 </p> 94 </td> 95<td> 96 <p> 97 Formula used to calculate azimuths 98 </p> 99 </td> 100</tr> 101<tr> 102<td> 103 <p> 104 std::size_t SeriesOrder 105 </p> 106 </td> 107<td> 108 <p> 109 strategy::default_order<FormulaPolicy>::value 110 </p> 111 </td> 112<td> 113 <p> 114 The order of approximation of the geodesic integral 115 </p> 116 </td> 117</tr> 118<tr> 119<td> 120 <p> 121 typename Spheroid 122 </p> 123 </td> 124<td> 125 <p> 126 srs::spheroid<double> 127 </p> 128 </td> 129<td> 130 <p> 131 The spheroid model 132 </p> 133 </td> 134</tr> 135<tr> 136<td> 137 <p> 138 typename CalculationType 139 </p> 140 </td> 141<td> 142 <p> 143 void 144 </p> 145 </td> 146<td> 147 <p> 148 numeric type for calculation (e.g. high precision); if <span class="bold"><strong>void</strong></span> then it is extracted automatically 149 from the coordinate type and (if necessary) promoted to floating 150 point 151 </p> 152 </td> 153</tr> 154</tbody> 155</table></div> 156<h6> 157<a name="geometry.reference.strategies.strategy_area_geographic.h3"></a> 158 <span class="phrase"><a name="geometry.reference.strategies.strategy_area_geographic.constructor_s_"></a></span><a class="link" href="strategy_area_geographic.html#geometry.reference.strategies.strategy_area_geographic.constructor_s_">Constructor(s)</a> 159 </h6> 160<div class="informaltable"><table class="table"> 161<colgroup> 162<col> 163<col> 164<col> 165</colgroup> 166<thead><tr> 167<th> 168 <p> 169 Function 170 </p> 171 </th> 172<th> 173 <p> 174 Description 175 </p> 176 </th> 177<th> 178 <p> 179 Parameters 180 </p> 181 </th> 182</tr></thead> 183<tbody><tr> 184<td> 185 <p> 186</p> 187<pre xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="table-programlisting"><span class="identifier">geographic</span><span class="special">(</span><span class="identifier">Spheroid</span> <span class="keyword">const</span> <span class="special">&</span> <span class="identifier">spheroid</span> <span class="special">=</span> <span class="identifier">Spheroid</span><span class="special">())</span></pre> 188<p> 189 </p> 190 </td> 191<td> 192 </td> 193<td> 194 <p> 195 <span class="bold"><strong>Spheroid const &</strong></span>: <span class="emphasis"><em>spheroid</em></span>: 196 </p> 197 </td> 198</tr></tbody> 199</table></div> 200<h6> 201<a name="geometry.reference.strategies.strategy_area_geographic.h4"></a> 202 <span class="phrase"><a name="geometry.reference.strategies.strategy_area_geographic.member_function_s_"></a></span><a class="link" href="strategy_area_geographic.html#geometry.reference.strategies.strategy_area_geographic.member_function_s_">Member 203 Function(s)</a> 204 </h6> 205<div class="informaltable"><table class="table"> 206<colgroup> 207<col> 208<col> 209<col> 210<col> 211</colgroup> 212<thead><tr> 213<th> 214 <p> 215 Function 216 </p> 217 </th> 218<th> 219 <p> 220 Description 221 </p> 222 </th> 223<th> 224 <p> 225 Parameters 226 </p> 227 </th> 228<th> 229 <p> 230 Returns 231 </p> 232 </th> 233</tr></thead> 234<tbody> 235<tr> 236<td> 237 <p> 238</p> 239<pre xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="table-programlisting"><span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> <span class="identifier">PointOfSegment</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">Geometry</span><span class="special">></span> 240<span class="keyword">void</span> <span class="identifier">apply</span><span class="special">(</span><span class="identifier">PointOfSegment</span> <span class="keyword">const</span> <span class="special">&</span> <span class="identifier">p1</span><span class="special">,</span> <span class="identifier">PointOfSegment</span> <span class="keyword">const</span> <span class="special">&</span> <span class="identifier">p2</span><span class="special">,</span> <span class="identifier">state</span><span class="special"><</span> <span class="identifier">Geometry</span> <span class="special">></span> <span class="special">&</span> <span class="identifier">st</span><span class="special">)</span></pre> 241<p> 242 </p> 243 </td> 244<td> 245 </td> 246<td> 247 <p> 248 <span class="bold"><strong>PointOfSegment const &</strong></span>: 249 <span class="emphasis"><em>p1</em></span>: 250 </p> 251 <p> 252 <span class="bold"><strong>PointOfSegment const &</strong></span>: 253 <span class="emphasis"><em>p2</em></span>: 254 </p> 255 <p> 256 <span class="bold"><strong>state< Geometry > &</strong></span>: 257 <span class="emphasis"><em>st</em></span>: 258 </p> 259 </td> 260<td> 261 </td> 262</tr> 263<tr> 264<td> 265 <p> 266</p> 267<pre xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="table-programlisting"><span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> <span class="identifier">Geometry</span><span class="special">></span> 268<span class="identifier">result_type</span><span class="special"><</span> <span class="identifier">Geometry</span> <span class="special">>::</span><span class="identifier">type</span> <span class="identifier">result</span><span class="special">(</span><span class="identifier">state</span><span class="special"><</span> <span class="identifier">Geometry</span> <span class="special">></span> <span class="keyword">const</span> <span class="special">&</span> <span class="identifier">st</span><span class="special">)</span></pre> 269<p> 270 </p> 271 </td> 272<td> 273 </td> 274<td> 275 <p> 276 <span class="bold"><strong>state< Geometry > const &</strong></span>: 277 <span class="emphasis"><em>st</em></span>: 278 </p> 279 </td> 280<td> 281 </td> 282</tr> 283</tbody> 284</table></div> 285<h6> 286<a name="geometry.reference.strategies.strategy_area_geographic.h5"></a> 287 <span class="phrase"><a name="geometry.reference.strategies.strategy_area_geographic.header"></a></span><a class="link" href="strategy_area_geographic.html#geometry.reference.strategies.strategy_area_geographic.header">Header</a> 288 </h6> 289<p> 290 <code class="computeroutput"><span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">geometry</span><span class="special">/</span><span class="identifier">strategies</span><span class="special">/</span><span class="identifier">geographic</span><span class="special">/</span><span class="identifier">area</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span></code> 291 </p> 292<h6> 293<a name="geometry.reference.strategies.strategy_area_geographic.h6"></a> 294 <span class="phrase"><a name="geometry.reference.strategies.strategy_area_geographic.see_also"></a></span><a class="link" href="strategy_area_geographic.html#geometry.reference.strategies.strategy_area_geographic.see_also">See 295 also</a> 296 </h6> 297<div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "> 298<li class="listitem"> 299 <a class="link" href="../algorithms/area/area_2_with_strategy.html" title="area (with strategy)">area 300 (with strategy)</a> 301 </li> 302<li class="listitem"> 303 <a class="link" href="../srs/srs_spheroid.html" title="srs::spheroid">srs::spheroid</a> 304 </li> 305</ul></div> 306</div> 307<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> 308<td align="left"></td> 309<td align="right"><div class="copyright-footer">Copyright © 2009-2019 Barend Gehrels, Bruno Lalande, Mateusz Loskot, Adam 310 Wulkiewicz, Oracle and/or its affiliates<p> 311 Distributed under the Boost Software License, Version 1.0. (See accompanying 312 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>) 313 </p> 314</div></td> 315</tr></table> 316<hr> 317<div class="spirit-nav"> 318<a accesskey="p" href="strategy_area_spherical.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../strategies.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="strategy_buffer_join_round.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a> 319</div> 320</body> 321</html> 322