geos_390_docs/GeometryPrecisionReducer_8h...

87 lines
35 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>GEOS: GeometryPrecisionReducer.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">GEOS
&#160;<span id="projectnumber">3.9.1dev</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main&#160;Page</span></a></li>
<li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="files.html"><span>File&#160;List</span></a></li>
<li><a href="globals.html"><span>File&#160;Members</span></a></li>
</ul>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="dir_0bc14b2fb119a11b6a0f32f4d350db61.html">geos</a></li><li class="navelem"><a class="el" href="dir_1faa4b632e4472d8f0daef830108dc4a.html">precision</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">GeometryPrecisionReducer.h</div> </div>
</div><!--header-->
<div class="contents">
<a href="GeometryPrecisionReducer_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>&#160;<span class="comment">/**********************************************************************</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span>&#160;<span class="comment"> * GEOS - Geometry Engine Open Source</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span>&#160;<span class="comment"> * http://geos.osgeo.org</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span>&#160;<span class="comment"> * Copyright (C) 2012 Sandro Santilli &lt;strk@kbt.io&gt;</span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span>&#160;<span class="comment"> * This is free software; you can redistribute and/or modify it under</span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span>&#160;<span class="comment"> * the terms of the GNU Lesser General Public Licence as published</span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span>&#160;<span class="comment"> * by the Free Software Foundation.</span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span>&#160;<span class="comment"> * See the COPYING file for more information.</span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span>&#160;<span class="comment"> ***********************************************************************</span></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span>&#160;<span class="comment"> * Last port: precision/GeometryPrecisionReducer.cpp rev. 1.10 (JTS-1.7)</span></div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span>&#160;<span class="comment"> **********************************************************************/</span></div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span>&#160;</div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span>&#160;<span class="preprocessor">#ifndef GEOS_PRECISION_GEOMETRYPRECISIONREDUCER_H</span></div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160;<span class="preprocessor">#define GEOS_PRECISION_GEOMETRYPRECISIONREDUCER_H</span></div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160;</div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="export_8h.html">geos/export.h</a>&gt;</span></div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="GeometryFactory_8h.html">geos/geom/GeometryFactory.h</a>&gt;</span> <span class="comment">// for GeometryFactory::Ptr</span></div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span>&#160;<span class="preprocessor">#include &lt;memory&gt;</span> <span class="comment">// for unique_ptr</span></div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160;</div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span>&#160;<span class="comment">// Forward declarations</span></div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespacegeos.html">geos</a> {</div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span>&#160;<span class="keyword">namespace </span>geom {</div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160;<span class="keyword">class </span>PrecisionModel;</div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span>&#160;<span class="keyword">class </span>GeometryFactory;</div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span>&#160;<span class="keyword">class </span>Geometry;</div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160;}</div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span>&#160;}</div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span>&#160;</div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespacegeos.html">geos</a> {</div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span>&#160;<span class="keyword">namespace </span>precision { <span class="comment">// geos.precision</span></div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span>&#160;</div><div class="line"><a name="l00058"></a><span class="lineno"><a class="line" href="classgeos_1_1precision_1_1GeometryPrecisionReducer.html"> 58</a></span>&#160;<span class="keyword">class </span><a class="code" href="export_8h.html#ae36df939090171f6e9a28a8cb6254fea">GEOS_DLL</a> <a class="code" href="classgeos_1_1precision_1_1GeometryPrecisionReducer.html">GeometryPrecisionReducer</a> {</div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span>&#160;</div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span>&#160;<span class="keyword">private</span>:</div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span>&#160;</div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span>&#160; <span class="comment">// Externally owned</span></div><div class="line"><a name="l00063"></a><span class="lineno"><a class="line" href="classgeos_1_1precision_1_1GeometryPrecisionReducer.html#a63483fdb4fb194a3e5444380b67a3f34"> 63</a></span>&#160; <span class="keyword">const</span> <a class="code" href="classgeos_1_1geom_1_1GeometryFactory.html">geom::GeometryFactory</a>* <a class="code" href="classgeos_1_1precision_1_1GeometryPrecisionReducer.html#a63483fdb4fb194a3e5444380b67a3f34">newFactory</a>;</div><div class="line"><a name="l00064"></a><span class="lineno"> 64</span>&#160;</div><div class="line"><a name="l00065"></a><span class="lineno"><a class="line" href="classgeos_1_1precision_1_1GeometryPrecisionReducer.html#a642cf48860cabc54e243c7377cc9c17d"> 65</a></span>&#160; <span class="keyword">const</span> <a class="code" href="classgeos_1_1geom_1_1PrecisionModel.html">geom::PrecisionModel</a>&amp; <a class="code" href="classgeos_1_1precision_1_1GeometryPrecisionReducer.html#a642cf48860cabc54e243c7377cc9c17d">targetPM</a>;</div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span>&#160;</div><div class="line"><a name="l00067"></a><span class="lineno"><a class="line" href="classgeos_1_1precision_1_1GeometryPrecisionReducer.html#a326f1c55b893749c053fa4855cc99c59"> 67</a></span>&#160; <span class="keywordtype">bool</span> <a class="code" href="classgeos_1_1precision_1_1GeometryPrecisionReducer.html#a326f1c55b893749c053fa4855cc99c59">removeCollapsed</a>;</div><div class="line"><a name="l00068"></a><span class="lineno"><a class="line" href="classgeos_1_1precision_1_1GeometryPrecisionReducer.html#a0b5e2cb08053b6b13dd7e7f3b54fc843"> 68</a></span>&#160; <span class="keywordtype">bool</span> <a class="code" href="classgeos_1_1precision_1_1GeometryPrecisionReducer.html#a0b5e2cb08053b6b13dd7e7f3b54fc843">changePrecisionModel</a>;</div><div class="line"><a name="l00069"></a><span class="lineno"><a class="line" href="classgeos_1_1precision_1_1GeometryPrecisionReducer.html#a1e1515c812154e869f1b1b5b8f898e3b"> 69</a></span>&#160; <span class="keywordtype">bool</span> <a class="code" href="classgeos_1_1precision_1_1GeometryPrecisionReducer.html#a1e1515c812154e869f1b1b5b8f898e3b">useAreaReducer</a>;</div><div class="line"><a name="l00070"></a><span class="lineno"><a class="line" href="classgeos_1_1precision_1_1GeometryPrecisionReducer.html#a7d3631630a419ed01af01d34002f2297"> 70</a></span>&#160; <span class="keywordtype">bool</span> <a class="code" href="classgeos_1_1precision_1_1GeometryPrecisionReducer.html#a7d3631630a419ed01af01d34002f2297">isPointwise</a>;</div><div class="line"><a name="l00071"></a><span class="lineno"> 71</span>&#160;</div><div class="line"><a name="l00072"></a><span class="lineno"> 72</span>&#160; std::unique_ptr&lt;geom::Geometry&gt; reducePointwise(<span class="keyword">const</span> <a class="code" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a>&amp; geom);</div><div class="line"><a name="l00073"></a><span class="lineno"> 73</span>&#160;</div><div class="line"><a name="l00074"></a><span class="lineno"> 74</span>&#160; std::unique_ptr&lt;geom::Geometry&gt; fixPolygonalTopology(<span class="keyword">const</span> <a class="code" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a>&amp; geom);</div><div class="line"><a name="l00075"></a><span class="lineno"> 75</span>&#160;</div><div class="line"><a name="l00076"></a><span class="lineno"> 76</span>&#160; <a class="code" href="classgeos_1_1geom_1_1GeometryFactory.html#a4acdc96c586d8e67bad393abae76220b">geom::GeometryFactory::Ptr</a> createFactory(</div><div class="line"><a name="l00077"></a><span class="lineno"> 77</span>&#160; <span class="keyword">const</span> <a class="code" href="classgeos_1_1geom_1_1GeometryFactory.html">geom::GeometryFactory</a>&amp; oldGF,</div><div class="line"><a name="l00078"></a><span class="lineno"> 78</span>&#160; <span class="keyword">const</span> <a class="code" href="classgeos_1_1geom_1_1PrecisionModel.html">geom::PrecisionModel</a>&amp; newPM);</div><div class="line"><a name="l00079"></a><span class="lineno"> 79</span>&#160;</div><div class="line"><a name="l00080"></a><span class="lineno"> 80</span>&#160; <a class="code" href="classgeos_1_1precision_1_1GeometryPrecisionReducer.html">GeometryPrecisionReducer</a>(<a class="code" href="classgeos_1_1precision_1_1GeometryPrecisionReducer.html">GeometryPrecisionReducer</a> <span class="keyword">const</span>&amp;); <span class="comment">/*= delete*/</span></div><div class="line"><a name="l00081"></a><span class="lineno"> 81</span>&#160; <a class="code" href="classgeos_1_1precision_1_1GeometryPrecisionReducer.html">GeometryPrecisionReducer</a>&amp; operator=(<a class="code" href="classgeos_1_1precision_1_1GeometryPrecisionReducer.html">GeometryPrecisionReducer</a> <span class="keyword">const</span>&amp;); <span class="comment">/*= delete*/</span></div><div class="line"><a name="l00082"></a><span class="lineno"> 82</span>&#160;</div><div class="line"><a name="l00083"></a><span class="lineno"> 83</span>&#160;<span class="keyword">public</span>:</div><div class="line"><a name="l00084"></a><span class="lineno"> 84</span>&#160;</div><div class="line"><a name="l00096"></a><span class="lineno"> 96</span>&#160; <span class="keyword">static</span> std::unique_ptr&lt;geom::Geometry&gt;</div><div class="line"><a name="l00097"></a><span class="lineno"><a class="line" href="classgeos_1_1precision_1_1GeometryPrecisionReducer.html#aad2456c5ccb843c29cfdec6907e113ab"> 97</a></span>&#160; <a class="code" href="classgeos_1_1precision_1_1GeometryPrecisionReducer.html#aad2456c5ccb843c29cfdec6907e113ab">reduce</a>(</div><div class="line"><a name="l00098"></a><span class="lineno"> 98</span>&#160; <span class="keyword">const</span> <a class="code" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a>&amp; g,</div><div class="line"><a name="l00099"></a><span class="lineno"> 99</span>&#160; <span class="keyword">const</span> <a class="code" href="classgeos_1_1geom_1_1PrecisionModel.html">geom::PrecisionModel</a>&amp; precModel)</div><div class="line"><a name="l00100"></a><span class="lineno"> 100</span>&#160; {</div><div class="line"><a name="l00101"></a><span class="lineno"> 101</span>&#160; <a class="code" href="classgeos_1_1precision_1_1GeometryPrecisionReducer.html">GeometryPrecisionReducer</a> reducer(precModel);</div><div class="line"><a name="l00102"></a><span class="lineno"> 102</span>&#160; <span class="keywordflow">return</span> reducer.<a class="code" href="classgeos_1_1precision_1_1GeometryPrecisionReducer.html#aad2456c5ccb843c29cfdec6907e113ab">reduce</a>(g);</div><div class="line"><a name="l00103"></a><span class="lineno"> 103</span>&#160; }</div><div class="line"><a name="l00104"></a><span class="lineno"> 104</span>&#160;</div><div class="line"><a name="l00116"></a><span class="lineno"> 116</span>&#160; <span class="keyword">static</span> std::unique_ptr&lt;geom::Geometry&gt;</div><div class="line"><a name="l00117"></a><span class="lineno"><a class="line" href="classgeos_1_1precision_1_1GeometryPrecisionReducer.html#a506dd7e0656b72953848f584f43f78bb"> 117</a></span>&#160; <a class="code" href="classgeos_1_1precision_1_1GeometryPrecisionReducer.html#a506dd7e0656b72953848f584f43f78bb">reducePointwise</a>(</div><div class="line"><a name="l00118"></a><span class="lineno"> 118</span>&#160; <span class="keyword">const</span> <a class="code" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a>&amp; g,</div><div class="line"><a name="l00119"></a><span class="lineno"> 119</span>&#160; <span class="keyword">const</span> <a class="code" href="classgeos_1_1geom_1_1PrecisionModel.html">geom::PrecisionModel</a>&amp; precModel)</div><div class="line"><a name="l00120"></a><span class="lineno"> 120</span>&#160; {</div><div class="line"><a name="l00121"></a><span class="lineno"> 121</span>&#160; <a class="code" href="classgeos_1_1precision_1_1GeometryPrecisionReducer.html">GeometryPrecisionReducer</a> reducer(precModel);</div><div class="line"><a name="l00122"></a><span class="lineno"> 122</span>&#160; reducer.<a class="code" href="classgeos_1_1precision_1_1GeometryPrecisionReducer.html#a443eb455858dbd88d5712cf8ce3a1519">setPointwise</a>(<span class="keyword">true</span>);</div><div class="line"><a name="l00123"></a><span class="lineno"> 123</span>&#160; <span class="keywordflow">return</span> reducer.<a class="code" href="classgeos_1_1precision_1_1GeometryPrecisionReducer.html#aad2456c5ccb843c29cfdec6907e113ab">reduce</a>(g);</div><div class="line"><a name="l00124"></a><span class="lineno"> 124</span>&#160; }</div><div class="line"><a name="l00125"></a><span class="lineno"> 125</span>&#160;</div><div class="line"><a name="l00126"></a><span class="lineno"><a class="line" href="classgeos_1_1precision_1_1GeometryPrecisionReducer.html#afbf0bea4334e3eea5d4635d26d732c10"> 126</a></span>&#160; <a class="code" href="classgeos_1_1precision_1_1GeometryPrecisionReducer.html#afbf0bea4334e3eea5d4635d26d732c10">GeometryPrecisionReducer</a>(<span class="keyword">const</span> <a class="code" href="classgeos_1_1geom_1_1PrecisionModel.html">geom::PrecisionModel</a>&amp; pm)</div><div class="line"><a name="l00127"></a><span class="lineno"> 127</span>&#160; : newFactory(nullptr)</div><div class="line"><a name="l00128"></a><span class="lineno"> 128</span>&#160; , targetPM(pm)</div><div class="line"><a name="l00129"></a><span class="lineno"> 129</span>&#160; , removeCollapsed(true)</div><div class="line"><a name="l00130"></a><span class="lineno"> 130</span>&#160; , changePrecisionModel(false)</div><div class="line"><a name="l00131"></a><span class="lineno"> 131</span>&#160; , useAreaReducer(false)</div><div class="line"><a name="l00132"></a><span class="lineno"> 132</span>&#160; , isPointwise(false)</div><div class="line"><a name="l00133"></a><span class="lineno"> 133</span>&#160; {}</div><div class="line"><a name="l00134"></a><span class="lineno"> 134</span>&#160;</div><div class="line"><a name="l00145"></a><span class="lineno"><a class="line" href="classgeos_1_1precision_1_1GeometryPrecisionReducer.html#a23eec3922377921a160cbc16e97d89fc"> 145</a></span>&#160; <a class="code" href="classgeos_1_1precision_1_1GeometryPrecisionReducer.html#a23eec3922377921a160cbc16e97d89fc">GeometryPrecisionReducer</a>(<span class="keyword">const</span> <a class="code" href="classgeos_1_1geom_1_1GeometryFactory.html">geom::GeometryFactory</a>&amp; changeFactory)</div><div class="line"><a name="l00146"></a><span class="lineno"> 146</span>&#160; : newFactory(&amp;changeFactory)</div><div class="line"><a name="l00147"></a><span class="lineno"> 147</span>&#160; , targetPM(*(changeFactory.getPrecisionModel()))</div><div class="line"><a name="l00148"></a><span class="lineno"> 148</span>&#160; , removeCollapsed(true)</div><div class="line"><a name="l00149"></a><span class="lineno"> 149</span>&#160; , changePrecisionModel(false)</div><div class="line"><a name="l00150"></a><span class="lineno"> 150</span>&#160; , useAreaReducer(false)</div><div class="line"><a name="l00151"></a><span class="lineno"> 151</span>&#160; , isPointwise(false)</div><div class="line"><a name="l00152"></a><span class="lineno"> 152</span>&#160; {}</div><div class="line"><a name="l00153"></a><span class="lineno"> 153</span>&#160;</div><div class="line"><a name="l00161"></a><span class="lineno"> 161</span>&#160; <span class="keywordtype">void</span></div><div class="line"><a name="l00162"></a><span class="lineno"><a class="line" href="classgeos_1_1precision_1_1GeometryPrecisionReducer.html#ad183c4084fd47b52a9a059463b06ec4f"> 162</a></span>&#160; <a class="code" href="classgeos_1_1precision_1_1GeometryPrecisionReducer.html#ad183c4084fd47b52a9a059463b06ec4f">setRemoveCollapsedComponents</a>(<span class="keywordtype">bool</span> <span class="keyword">remove</span>)</div><div class="line"><a name="l00163"></a><span class="lineno"> 163</span>&#160; {</div><div class="line"><a name="l00164"></a><span class="lineno"> 164</span>&#160; removeCollapsed = <span class="keyword">remove</span>;</div><div class="line"><a name="l00165"></a><span class="lineno"> 165</span>&#160; }</div><div class="line"><a name="l00166"></a><span class="lineno"> 166</span>&#160;</div><div class="line"><a name="l00177"></a><span class="lineno"> 177</span>&#160; <span class="keywordtype">void</span></div><div class="line"><a name="l00178"></a><span class="lineno"><a class="line" href="classgeos_1_1precision_1_1GeometryPrecisionReducer.html#a49bcfa95700d9b7e309049bdcee25d2c"> 178</a></span>&#160; <a class="code" href="classgeos_1_1precision_1_1GeometryPrecisionReducer.html#a49bcfa95700d9b7e309049bdcee25d2c">setChangePrecisionModel</a>(<span class="keywordtype">bool</span> change)</div><div class="line"><a name="l00179"></a><span class="lineno"> 179</span>&#160; {</div><div class="line"><a name="l00180"></a><span class="lineno"> 180</span>&#160; changePrecisionModel = change;</div><div class="line"><a name="l00181"></a><span class="lineno"> 181</span>&#160; }</div><div class="line"><a name="l00182"></a><span class="lineno"> 182</span>&#160;</div><div class="line"><a name="l00183"></a><span class="lineno"> 183</span>&#160; <span class="keywordtype">void</span></div><div class="line"><a name="l00184"></a><span class="lineno"><a class="line" href="classgeos_1_1precision_1_1GeometryPrecisionReducer.html#a2cf5c1580a719fe349b5e0d2c7fd3181"> 184</a></span>&#160; <a class="code" href="classgeos_1_1precision_1_1GeometryPrecisionReducer.html#a2cf5c1580a719fe349b5e0d2c7fd3181">setUseAreaReducer</a>(<span class="keywordtype">bool</span> useAR)</div><div class="line"><a name="l00185"></a><span class="lineno"> 185</span>&#160; {</div><div class="line"><a name="l00186"></a><span class="lineno"> 186</span>&#160; useAreaReducer = useAR;</div><div class="line"><a name="l00187"></a><span class="lineno"> 187</span>&#160; }</div><div class="line"><a name="l00188"></a><span class="lineno"> 188</span>&#160;</div><div class="line"><a name="l00200"></a><span class="lineno"> 200</span>&#160; <span class="keywordtype">void</span></div><div class="line"><a name="l00201"></a><span class="lineno"><a class="line" href="classgeos_1_1precision_1_1GeometryPrecisionReducer.html#a443eb455858dbd88d5712cf8ce3a1519"> 201</a></span>&#160; <a class="code" href="classgeos_1_1precision_1_1GeometryPrecisionReducer.html#a443eb455858dbd88d5712cf8ce3a1519">setPointwise</a>(<span class="keywordtype">bool</span> pointwise)</div><div class="line"><a name="l00202"></a><span class="lineno"> 202</span>&#160; {</div><div class="line"><a name="l00203"></a><span class="lineno"> 203</span>&#160; isPointwise = pointwise;</div><div class="line"><a name="l00204"></a><span class="lineno"> 204</span>&#160; }</div><div class="line"><a name="l00205"></a><span class="lineno"> 205</span>&#160;</div><div class="line"><a name="l00206"></a><span class="lineno"> 206</span>&#160; std::unique_ptr&lt;geom::Geometry&gt; reduce(<span class="keyword">const</span> <a class="code" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a>&amp; geom);</div><div class="line"><a name="l00207"></a><span class="lineno"> 207</span>&#160;</div><div class="line"><a name="l00208"></a><span class="lineno"> 208</span>&#160;};</div><div class="line"><a name="l00209"></a><span class="lineno"> 209</span>&#160;</div><div class="line"><a name="l00210"></a><span class="lineno"> 210</span>&#160;} <span class="comment">// namespace geos.precision</span></div><div class="line"><a name="l00211"></a><span class="lineno"> 211</span>&#160;} <span class="comment">// namespace geos</span></div><div class="line"><a name="l00212"></a><span class="lineno"> 212</span>&#160;</div><div class="line"><a name="l00213"></a><span class="lineno"> 213</span>&#160;<span class="preprocessor">#endif // GEOS_PRECISION_GEOMETRYPRECISIONREDUCER_H</span></div><div class="ttc" id="classgeos_1_1geom_1_1GeometryFactory_html_a4acdc96c586d8e67bad393abae76220b"><div class="ttname"><a href="classgeos_1_1geom_1_1GeometryFactory.html#a4acdc96c586d8e67bad393abae76220b">geos::geom::GeometryFactory::Ptr</a></div><div class="ttdeci">std::unique_ptr&lt; GeometryFactory, GeometryFactoryDeleter &gt; Ptr</div><div class="ttdef"><b>Definition:</b> <a href="GeometryFactory_8h_source.html#l00081">GeometryFactory.h:81</a></div></div>
<div class="ttc" id="classgeos_1_1precision_1_1GeometryPrecisionReducer_html_a506dd7e0656b72953848f584f43f78bb"><div class="ttname"><a href="classgeos_1_1precision_1_1GeometryPrecisionReducer.html#a506dd7e0656b72953848f584f43f78bb">geos::precision::GeometryPrecisionReducer::reducePointwise</a></div><div class="ttdeci">static std::unique_ptr&lt; geom::Geometry &gt; reducePointwise(const geom::Geometry &amp;g, const geom::PrecisionModel &amp;precModel)</div><div class="ttdef"><b>Definition:</b> <a href="GeometryPrecisionReducer_8h_source.html#l00117">GeometryPrecisionReducer.h:117</a></div></div>
<div class="ttc" id="classgeos_1_1precision_1_1GeometryPrecisionReducer_html_a326f1c55b893749c053fa4855cc99c59"><div class="ttname"><a href="classgeos_1_1precision_1_1GeometryPrecisionReducer.html#a326f1c55b893749c053fa4855cc99c59">geos::precision::GeometryPrecisionReducer::removeCollapsed</a></div><div class="ttdeci">bool removeCollapsed</div><div class="ttdef"><b>Definition:</b> <a href="GeometryPrecisionReducer_8h_source.html#l00067">GeometryPrecisionReducer.h:67</a></div></div>
<div class="ttc" id="export_8h_html_ae36df939090171f6e9a28a8cb6254fea"><div class="ttname"><a href="export_8h.html#ae36df939090171f6e9a28a8cb6254fea">GEOS_DLL</a></div><div class="ttdeci">#define GEOS_DLL</div><div class="ttdef"><b>Definition:</b> <a href="export_8h_source.html#l00028">export.h:28</a></div></div>
<div class="ttc" id="export_8h_html"><div class="ttname"><a href="export_8h.html">export.h</a></div></div>
<div class="ttc" id="classgeos_1_1precision_1_1GeometryPrecisionReducer_html_a0b5e2cb08053b6b13dd7e7f3b54fc843"><div class="ttname"><a href="classgeos_1_1precision_1_1GeometryPrecisionReducer.html#a0b5e2cb08053b6b13dd7e7f3b54fc843">geos::precision::GeometryPrecisionReducer::changePrecisionModel</a></div><div class="ttdeci">bool changePrecisionModel</div><div class="ttdef"><b>Definition:</b> <a href="GeometryPrecisionReducer_8h_source.html#l00068">GeometryPrecisionReducer.h:68</a></div></div>
<div class="ttc" id="classgeos_1_1precision_1_1GeometryPrecisionReducer_html_ad183c4084fd47b52a9a059463b06ec4f"><div class="ttname"><a href="classgeos_1_1precision_1_1GeometryPrecisionReducer.html#ad183c4084fd47b52a9a059463b06ec4f">geos::precision::GeometryPrecisionReducer::setRemoveCollapsedComponents</a></div><div class="ttdeci">void setRemoveCollapsedComponents(bool remove)</div><div class="ttdef"><b>Definition:</b> <a href="GeometryPrecisionReducer_8h_source.html#l00162">GeometryPrecisionReducer.h:162</a></div></div>
<div class="ttc" id="classgeos_1_1precision_1_1GeometryPrecisionReducer_html_a7d3631630a419ed01af01d34002f2297"><div class="ttname"><a href="classgeos_1_1precision_1_1GeometryPrecisionReducer.html#a7d3631630a419ed01af01d34002f2297">geos::precision::GeometryPrecisionReducer::isPointwise</a></div><div class="ttdeci">bool isPointwise</div><div class="ttdef"><b>Definition:</b> <a href="GeometryPrecisionReducer_8h_source.html#l00070">GeometryPrecisionReducer.h:70</a></div></div>
<div class="ttc" id="classgeos_1_1precision_1_1GeometryPrecisionReducer_html_a642cf48860cabc54e243c7377cc9c17d"><div class="ttname"><a href="classgeos_1_1precision_1_1GeometryPrecisionReducer.html#a642cf48860cabc54e243c7377cc9c17d">geos::precision::GeometryPrecisionReducer::targetPM</a></div><div class="ttdeci">const geom::PrecisionModel &amp; targetPM</div><div class="ttdef"><b>Definition:</b> <a href="GeometryPrecisionReducer_8h_source.html#l00065">GeometryPrecisionReducer.h:65</a></div></div>
<div class="ttc" id="classgeos_1_1geom_1_1PrecisionModel_html"><div class="ttname"><a href="classgeos_1_1geom_1_1PrecisionModel.html">geos::geom::PrecisionModel</a></div><div class="ttdoc">Specifies the precision model of the Coordinate in a Geometry. </div><div class="ttdef"><b>Definition:</b> <a href="PrecisionModel_8h_source.html#l00087">PrecisionModel.h:87</a></div></div>
<div class="ttc" id="classgeos_1_1geom_1_1Geometry_html"><div class="ttname"><a href="classgeos_1_1geom_1_1Geometry.html">geos::geom::Geometry</a></div><div class="ttdoc">Basic implementation of Geometry, constructed and destructed by GeometryFactory. </div><div class="ttdef"><b>Definition:</b> <a href="Geometry_8h_source.html#l00188">Geometry.h:188</a></div></div>
<div class="ttc" id="classgeos_1_1precision_1_1GeometryPrecisionReducer_html_a1e1515c812154e869f1b1b5b8f898e3b"><div class="ttname"><a href="classgeos_1_1precision_1_1GeometryPrecisionReducer.html#a1e1515c812154e869f1b1b5b8f898e3b">geos::precision::GeometryPrecisionReducer::useAreaReducer</a></div><div class="ttdeci">bool useAreaReducer</div><div class="ttdef"><b>Definition:</b> <a href="GeometryPrecisionReducer_8h_source.html#l00069">GeometryPrecisionReducer.h:69</a></div></div>
<div class="ttc" id="classgeos_1_1geom_1_1GeometryFactory_html"><div class="ttname"><a href="classgeos_1_1geom_1_1GeometryFactory.html">geos::geom::GeometryFactory</a></div><div class="ttdoc">Supplies a set of utility methods for building Geometry objects from CoordinateSequence or other Geom...</div><div class="ttdef"><b>Definition:</b> <a href="GeometryFactory_8h_source.html#l00068">GeometryFactory.h:68</a></div></div>
<div class="ttc" id="classgeos_1_1precision_1_1GeometryPrecisionReducer_html_a2cf5c1580a719fe349b5e0d2c7fd3181"><div class="ttname"><a href="classgeos_1_1precision_1_1GeometryPrecisionReducer.html#a2cf5c1580a719fe349b5e0d2c7fd3181">geos::precision::GeometryPrecisionReducer::setUseAreaReducer</a></div><div class="ttdeci">void setUseAreaReducer(bool useAR)</div><div class="ttdef"><b>Definition:</b> <a href="GeometryPrecisionReducer_8h_source.html#l00184">GeometryPrecisionReducer.h:184</a></div></div>
<div class="ttc" id="classgeos_1_1precision_1_1GeometryPrecisionReducer_html"><div class="ttname"><a href="classgeos_1_1precision_1_1GeometryPrecisionReducer.html">geos::precision::GeometryPrecisionReducer</a></div><div class="ttdoc">Reduces the precision of a geom::Geometry according to the supplied geom::PrecisionModel, ensuring that the result is valid (unless specified otherwise). </div><div class="ttdef"><b>Definition:</b> <a href="GeometryPrecisionReducer_8h_source.html#l00058">GeometryPrecisionReducer.h:58</a></div></div>
<div class="ttc" id="classgeos_1_1precision_1_1GeometryPrecisionReducer_html_a23eec3922377921a160cbc16e97d89fc"><div class="ttname"><a href="classgeos_1_1precision_1_1GeometryPrecisionReducer.html#a23eec3922377921a160cbc16e97d89fc">geos::precision::GeometryPrecisionReducer::GeometryPrecisionReducer</a></div><div class="ttdeci">GeometryPrecisionReducer(const geom::GeometryFactory &amp;changeFactory)</div><div class="ttdoc">Create a reducer that will change the precision model of the new reduced Geometry. </div><div class="ttdef"><b>Definition:</b> <a href="GeometryPrecisionReducer_8h_source.html#l00145">GeometryPrecisionReducer.h:145</a></div></div>
<div class="ttc" id="namespacegeos_html"><div class="ttname"><a href="namespacegeos.html">geos</a></div><div class="ttdoc">Basic namespace for all GEOS functionalities. </div><div class="ttdef"><b>Definition:</b> <a href="IndexedNestedRingTester_8h_source.html#l00026">IndexedNestedRingTester.h:26</a></div></div>
<div class="ttc" id="classgeos_1_1precision_1_1GeometryPrecisionReducer_html_a63483fdb4fb194a3e5444380b67a3f34"><div class="ttname"><a href="classgeos_1_1precision_1_1GeometryPrecisionReducer.html#a63483fdb4fb194a3e5444380b67a3f34">geos::precision::GeometryPrecisionReducer::newFactory</a></div><div class="ttdeci">const geom::GeometryFactory * newFactory</div><div class="ttdef"><b>Definition:</b> <a href="GeometryPrecisionReducer_8h_source.html#l00063">GeometryPrecisionReducer.h:63</a></div></div>
<div class="ttc" id="classgeos_1_1precision_1_1GeometryPrecisionReducer_html_aad2456c5ccb843c29cfdec6907e113ab"><div class="ttname"><a href="classgeos_1_1precision_1_1GeometryPrecisionReducer.html#aad2456c5ccb843c29cfdec6907e113ab">geos::precision::GeometryPrecisionReducer::reduce</a></div><div class="ttdeci">static std::unique_ptr&lt; geom::Geometry &gt; reduce(const geom::Geometry &amp;g, const geom::PrecisionModel &amp;precModel)</div><div class="ttdef"><b>Definition:</b> <a href="GeometryPrecisionReducer_8h_source.html#l00097">GeometryPrecisionReducer.h:97</a></div></div>
<div class="ttc" id="classgeos_1_1precision_1_1GeometryPrecisionReducer_html_afbf0bea4334e3eea5d4635d26d732c10"><div class="ttname"><a href="classgeos_1_1precision_1_1GeometryPrecisionReducer.html#afbf0bea4334e3eea5d4635d26d732c10">geos::precision::GeometryPrecisionReducer::GeometryPrecisionReducer</a></div><div class="ttdeci">GeometryPrecisionReducer(const geom::PrecisionModel &amp;pm)</div><div class="ttdef"><b>Definition:</b> <a href="GeometryPrecisionReducer_8h_source.html#l00126">GeometryPrecisionReducer.h:126</a></div></div>
<div class="ttc" id="classgeos_1_1precision_1_1GeometryPrecisionReducer_html_a49bcfa95700d9b7e309049bdcee25d2c"><div class="ttname"><a href="classgeos_1_1precision_1_1GeometryPrecisionReducer.html#a49bcfa95700d9b7e309049bdcee25d2c">geos::precision::GeometryPrecisionReducer::setChangePrecisionModel</a></div><div class="ttdeci">void setChangePrecisionModel(bool change)</div><div class="ttdoc">Sets whether the geom::PrecisionModel of the new reduced Geometry will be changed to be the geom::Pre...</div><div class="ttdef"><b>Definition:</b> <a href="GeometryPrecisionReducer_8h_source.html#l00178">GeometryPrecisionReducer.h:178</a></div></div>
<div class="ttc" id="classgeos_1_1precision_1_1GeometryPrecisionReducer_html_a443eb455858dbd88d5712cf8ce3a1519"><div class="ttname"><a href="classgeos_1_1precision_1_1GeometryPrecisionReducer.html#a443eb455858dbd88d5712cf8ce3a1519">geos::precision::GeometryPrecisionReducer::setPointwise</a></div><div class="ttdeci">void setPointwise(bool pointwise)</div><div class="ttdoc">Sets whether the precision reduction will be done in pointwise fashion only. </div><div class="ttdef"><b>Definition:</b> <a href="GeometryPrecisionReducer_8h_source.html#l00201">GeometryPrecisionReducer.h:201</a></div></div>
<div class="ttc" id="GeometryFactory_8h_html"><div class="ttname"><a href="GeometryFactory_8h.html">GeometryFactory.h</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.11
</small></address>
</body>
</html>