983 lines
51 KiB
HTML
983 lines
51 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: geos::operation::distance::DistanceOp Class Reference</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
|
||
|
 <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 Page</span></a></li>
|
||
|
<li><a href="pages.html"><span>Related Pages</span></a></li>
|
||
|
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
|
||
|
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
|
||
|
<li><a href="files.html"><span>Files</span></a></li>
|
||
|
</ul>
|
||
|
</div>
|
||
|
<div id="navrow2" class="tabs2">
|
||
|
<ul class="tablist">
|
||
|
<li><a href="annotated.html"><span>Class List</span></a></li>
|
||
|
<li><a href="inherits.html"><span>Class Hierarchy</span></a></li>
|
||
|
<li><a href="functions.html"><span>Class Members</span></a></li>
|
||
|
</ul>
|
||
|
</div>
|
||
|
<div id="nav-path" class="navpath">
|
||
|
<ul>
|
||
|
<li class="navelem"><a class="el" href="namespacegeos.html">geos</a></li><li class="navelem"><a class="el" href="namespacegeos_1_1operation.html">operation</a></li><li class="navelem"><a class="el" href="namespacegeos_1_1operation_1_1distance.html">distance</a></li><li class="navelem"><a class="el" href="classgeos_1_1operation_1_1distance_1_1DistanceOp.html">DistanceOp</a></li> </ul>
|
||
|
</div>
|
||
|
</div><!-- top -->
|
||
|
<div class="header">
|
||
|
<div class="summary">
|
||
|
<a href="#pub-methods">Public Member Functions</a> |
|
||
|
<a href="#pub-static-methods">Static Public Member Functions</a> |
|
||
|
<a href="#pri-methods">Private Member Functions</a> |
|
||
|
<a href="#pri-attribs">Private Attributes</a> |
|
||
|
<a href="classgeos_1_1operation_1_1distance_1_1DistanceOp-members.html">List of all members</a> </div>
|
||
|
<div class="headertitle">
|
||
|
<div class="title">geos::operation::distance::DistanceOp Class Reference</div> </div>
|
||
|
</div><!--header-->
|
||
|
<div class="contents">
|
||
|
|
||
|
<p>Find two points on two <a class="el" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a>s which lie within a given distance, or else are the nearest points on the geometries (in which case this also provides the distance between the geometries).
|
||
|
<a href="classgeos_1_1operation_1_1distance_1_1DistanceOp.html#details">More...</a></p>
|
||
|
|
||
|
<p><code>#include <<a class="el" href="DistanceOp_8h_source.html">DistanceOp.h</a>></code></p>
|
||
|
<div class="dynheader">
|
||
|
Collaboration diagram for geos::operation::distance::DistanceOp:</div>
|
||
|
<div class="dyncontent">
|
||
|
<div class="center"><iframe scrolling="no" frameborder="0" src="classgeos_1_1operation_1_1distance_1_1DistanceOp__coll__graph.svg" width="220" height="147"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
|
||
|
</div>
|
||
|
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
|
||
|
<table class="memberdecls">
|
||
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
|
||
|
Public Member Functions</h2></td></tr>
|
||
|
<tr class="memitem:ae4d61a1c477b4e0cf2a1ebbc3d74d0e6"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1operation_1_1distance_1_1DistanceOp.html#ae4d61a1c477b4e0cf2a1ebbc3d74d0e6">DistanceOp</a> (const <a class="el" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a> *g0, const <a class="el" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a> *g1)</td></tr>
|
||
|
<tr class="separator:ae4d61a1c477b4e0cf2a1ebbc3d74d0e6"><td class="memSeparator" colspan="2"> </td></tr>
|
||
|
<tr class="memitem:aa4cde507efc8613942d68b0fe59a01f4"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1operation_1_1distance_1_1DistanceOp.html#aa4cde507efc8613942d68b0fe59a01f4">DistanceOp</a> (const <a class="el" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a> &g0, const <a class="el" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a> &g1)</td></tr>
|
||
|
<tr class="memdesc:aa4cde507efc8613942d68b0fe59a01f4"><td class="mdescLeft"> </td><td class="mdescRight">Constructs a <a class="el" href="classgeos_1_1operation_1_1distance_1_1DistanceOp.html" title="Find two points on two geom::Geometrys which lie within a given distance, or else are the nearest poi...">DistanceOp</a> that computes the distance and nearest points between the two specified geometries. <a href="#aa4cde507efc8613942d68b0fe59a01f4">More...</a><br /></td></tr>
|
||
|
<tr class="separator:aa4cde507efc8613942d68b0fe59a01f4"><td class="memSeparator" colspan="2"> </td></tr>
|
||
|
<tr class="memitem:acbad8fb1a46246dca20b39ab97073c90"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1operation_1_1distance_1_1DistanceOp.html#acbad8fb1a46246dca20b39ab97073c90">DistanceOp</a> (const <a class="el" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a> &g0, const <a class="el" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a> &g1, double <a class="el" href="classgeos_1_1operation_1_1distance_1_1DistanceOp.html#ac4e54cd5c7f51017de0525508dcb82c7">terminateDistance</a>)</td></tr>
|
||
|
<tr class="memdesc:acbad8fb1a46246dca20b39ab97073c90"><td class="mdescLeft"> </td><td class="mdescRight">Constructs a <a class="el" href="classgeos_1_1operation_1_1distance_1_1DistanceOp.html" title="Find two points on two geom::Geometrys which lie within a given distance, or else are the nearest poi...">DistanceOp</a> that computes the distance and nearest points between the two specified geometries. <a href="#acbad8fb1a46246dca20b39ab97073c90">More...</a><br /></td></tr>
|
||
|
<tr class="separator:acbad8fb1a46246dca20b39ab97073c90"><td class="memSeparator" colspan="2"> </td></tr>
|
||
|
<tr class="memitem:ad906ce35f315132643d3ee8468276db7"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1operation_1_1distance_1_1DistanceOp.html#ad906ce35f315132643d3ee8468276db7">~DistanceOp</a> ()=default</td></tr>
|
||
|
<tr class="separator:ad906ce35f315132643d3ee8468276db7"><td class="memSeparator" colspan="2"> </td></tr>
|
||
|
<tr class="memitem:ac5dec6e433a9d07ed80bd34aadc1dda0"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1operation_1_1distance_1_1DistanceOp.html#ac5dec6e433a9d07ed80bd34aadc1dda0">distance</a> ()</td></tr>
|
||
|
<tr class="separator:ac5dec6e433a9d07ed80bd34aadc1dda0"><td class="memSeparator" colspan="2"> </td></tr>
|
||
|
<tr class="memitem:a0adfa6f211637914618d22ca4bc5075d"><td class="memItemLeft" align="right" valign="top">std::unique_ptr< <a class="el" href="classgeos_1_1geom_1_1CoordinateSequence.html">geom::CoordinateSequence</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1operation_1_1distance_1_1DistanceOp.html#a0adfa6f211637914618d22ca4bc5075d">nearestPoints</a> ()</td></tr>
|
||
|
<tr class="separator:a0adfa6f211637914618d22ca4bc5075d"><td class="memSeparator" colspan="2"> </td></tr>
|
||
|
</table><table class="memberdecls">
|
||
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
|
||
|
Static Public Member Functions</h2></td></tr>
|
||
|
<tr class="memitem:ad3462b8ed28b4cd93e2e462937975655"><td class="memItemLeft" align="right" valign="top">static double </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1operation_1_1distance_1_1DistanceOp.html#ad3462b8ed28b4cd93e2e462937975655">distance</a> (const <a class="el" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a> &g0, const <a class="el" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a> &g1)</td></tr>
|
||
|
<tr class="memdesc:ad3462b8ed28b4cd93e2e462937975655"><td class="mdescLeft"> </td><td class="mdescRight">Compute the distance between the nearest points of two geometries. <a href="#ad3462b8ed28b4cd93e2e462937975655">More...</a><br /></td></tr>
|
||
|
<tr class="separator:ad3462b8ed28b4cd93e2e462937975655"><td class="memSeparator" colspan="2"> </td></tr>
|
||
|
<tr class="memitem:a5203d25c59ea0293059db321e0d82763"><td class="memItemLeft" align="right" valign="top">static double </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1operation_1_1distance_1_1DistanceOp.html#a5203d25c59ea0293059db321e0d82763">distance</a> (const <a class="el" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a> *g0, const <a class="el" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a> *g1)</td></tr>
|
||
|
<tr class="separator:a5203d25c59ea0293059db321e0d82763"><td class="memSeparator" colspan="2"> </td></tr>
|
||
|
<tr class="memitem:a99de46033e82abe54143501af7aa1266"><td class="memItemLeft" align="right" valign="top">static bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1operation_1_1distance_1_1DistanceOp.html#a99de46033e82abe54143501af7aa1266">isWithinDistance</a> (const <a class="el" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a> &g0, const <a class="el" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a> &g1, double <a class="el" href="classgeos_1_1operation_1_1distance_1_1DistanceOp.html#ad3462b8ed28b4cd93e2e462937975655">distance</a>)</td></tr>
|
||
|
<tr class="memdesc:a99de46033e82abe54143501af7aa1266"><td class="mdescLeft"> </td><td class="mdescRight">Test whether two geometries lie within a given distance of each other. <a href="#a99de46033e82abe54143501af7aa1266">More...</a><br /></td></tr>
|
||
|
<tr class="separator:a99de46033e82abe54143501af7aa1266"><td class="memSeparator" colspan="2"> </td></tr>
|
||
|
<tr class="memitem:a43d3bd70d074e8f7a419a995aeb46936"><td class="memItemLeft" align="right" valign="top">static std::unique_ptr< <a class="el" href="classgeos_1_1geom_1_1CoordinateSequence.html">geom::CoordinateSequence</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1operation_1_1distance_1_1DistanceOp.html#a43d3bd70d074e8f7a419a995aeb46936">nearestPoints</a> (const <a class="el" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a> *g0, const <a class="el" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a> *g1)</td></tr>
|
||
|
<tr class="separator:a43d3bd70d074e8f7a419a995aeb46936"><td class="memSeparator" colspan="2"> </td></tr>
|
||
|
</table><table class="memberdecls">
|
||
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-methods"></a>
|
||
|
Private Member Functions</h2></td></tr>
|
||
|
<tr class="memitem:a94d59e3aa848596d7a1c00cebe4a3df7"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1operation_1_1distance_1_1DistanceOp.html#a94d59e3aa848596d7a1c00cebe4a3df7">updateMinDistance</a> (std::array< std::unique_ptr< <a class="el" href="classgeos_1_1operation_1_1distance_1_1GeometryLocation.html">GeometryLocation</a> >, 2 > &locGeom, bool flip)</td></tr>
|
||
|
<tr class="separator:a94d59e3aa848596d7a1c00cebe4a3df7"><td class="memSeparator" colspan="2"> </td></tr>
|
||
|
<tr class="memitem:ac6f04b30a9fcc3043d0616182dea668b"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1operation_1_1distance_1_1DistanceOp.html#ac6f04b30a9fcc3043d0616182dea668b">computeMinDistance</a> ()</td></tr>
|
||
|
<tr class="separator:ac6f04b30a9fcc3043d0616182dea668b"><td class="memSeparator" colspan="2"> </td></tr>
|
||
|
<tr class="memitem:a74365ac1d47ada6121babe623ca81429"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1operation_1_1distance_1_1DistanceOp.html#a74365ac1d47ada6121babe623ca81429">computeContainmentDistance</a> ()</td></tr>
|
||
|
<tr class="separator:a74365ac1d47ada6121babe623ca81429"><td class="memSeparator" colspan="2"> </td></tr>
|
||
|
<tr class="memitem:af22fe1cdae22e9ed21082382f6c85fa7"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1operation_1_1distance_1_1DistanceOp.html#af22fe1cdae22e9ed21082382f6c85fa7">computeInside</a> (std::vector< std::unique_ptr< <a class="el" href="classgeos_1_1operation_1_1distance_1_1GeometryLocation.html">GeometryLocation</a> >> &locs, const std::vector< const <a class="el" href="classgeos_1_1geom_1_1Polygon.html">geom::Polygon</a> * > &polys, std::array< std::unique_ptr< <a class="el" href="classgeos_1_1operation_1_1distance_1_1GeometryLocation.html">GeometryLocation</a> >, 2 > &locPtPoly)</td></tr>
|
||
|
<tr class="separator:af22fe1cdae22e9ed21082382f6c85fa7"><td class="memSeparator" colspan="2"> </td></tr>
|
||
|
<tr class="memitem:a65eb3b249b407a0ac201e87ee7bc2189"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1operation_1_1distance_1_1DistanceOp.html#a65eb3b249b407a0ac201e87ee7bc2189">computeFacetDistance</a> ()</td></tr>
|
||
|
<tr class="separator:a65eb3b249b407a0ac201e87ee7bc2189"><td class="memSeparator" colspan="2"> </td></tr>
|
||
|
<tr class="memitem:af5ccfea67882b0e8d52969a1b686e9f2"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1operation_1_1distance_1_1DistanceOp.html#af5ccfea67882b0e8d52969a1b686e9f2">computeMinDistanceLines</a> (const std::vector< const <a class="el" href="classgeos_1_1geom_1_1LineString.html">geom::LineString</a> * > &lines0, const std::vector< const <a class="el" href="classgeos_1_1geom_1_1LineString.html">geom::LineString</a> * > &lines1, std::array< std::unique_ptr< <a class="el" href="classgeos_1_1operation_1_1distance_1_1GeometryLocation.html">GeometryLocation</a> >, 2 > &locGeom)</td></tr>
|
||
|
<tr class="separator:af5ccfea67882b0e8d52969a1b686e9f2"><td class="memSeparator" colspan="2"> </td></tr>
|
||
|
<tr class="memitem:a94cccb941218b79ac75f05e0c0fe8f26"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1operation_1_1distance_1_1DistanceOp.html#a94cccb941218b79ac75f05e0c0fe8f26">computeMinDistancePoints</a> (const std::vector< const <a class="el" href="classgeos_1_1geom_1_1Point.html">geom::Point</a> * > &points0, const std::vector< const <a class="el" href="classgeos_1_1geom_1_1Point.html">geom::Point</a> * > &points1, std::array< std::unique_ptr< <a class="el" href="classgeos_1_1operation_1_1distance_1_1GeometryLocation.html">GeometryLocation</a> >, 2 > &locGeom)</td></tr>
|
||
|
<tr class="separator:a94cccb941218b79ac75f05e0c0fe8f26"><td class="memSeparator" colspan="2"> </td></tr>
|
||
|
<tr class="memitem:a516873b8525b0aa6d1608da29fbbf06c"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1operation_1_1distance_1_1DistanceOp.html#a516873b8525b0aa6d1608da29fbbf06c">computeMinDistanceLinesPoints</a> (const std::vector< const <a class="el" href="classgeos_1_1geom_1_1LineString.html">geom::LineString</a> * > &lines0, const std::vector< const <a class="el" href="classgeos_1_1geom_1_1Point.html">geom::Point</a> * > &points1, std::array< std::unique_ptr< <a class="el" href="classgeos_1_1operation_1_1distance_1_1GeometryLocation.html">GeometryLocation</a> >, 2 > &locGeom)</td></tr>
|
||
|
<tr class="separator:a516873b8525b0aa6d1608da29fbbf06c"><td class="memSeparator" colspan="2"> </td></tr>
|
||
|
<tr class="memitem:a12134a7a66a4eb990367696489288421"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1operation_1_1distance_1_1DistanceOp.html#a12134a7a66a4eb990367696489288421">computeMinDistance</a> (const <a class="el" href="classgeos_1_1geom_1_1LineString.html">geom::LineString</a> *line0, const <a class="el" href="classgeos_1_1geom_1_1LineString.html">geom::LineString</a> *line1, std::array< std::unique_ptr< <a class="el" href="classgeos_1_1operation_1_1distance_1_1GeometryLocation.html">GeometryLocation</a> >, 2 > &locGeom)</td></tr>
|
||
|
<tr class="separator:a12134a7a66a4eb990367696489288421"><td class="memSeparator" colspan="2"> </td></tr>
|
||
|
<tr class="memitem:aabf588c2e9d73aa675922060a3901e4d"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1operation_1_1distance_1_1DistanceOp.html#aabf588c2e9d73aa675922060a3901e4d">computeMinDistance</a> (const <a class="el" href="classgeos_1_1geom_1_1LineString.html">geom::LineString</a> *line, const <a class="el" href="classgeos_1_1geom_1_1Point.html">geom::Point</a> *pt, std::array< std::unique_ptr< <a class="el" href="classgeos_1_1operation_1_1distance_1_1GeometryLocation.html">GeometryLocation</a> >, 2 > &locGeom)</td></tr>
|
||
|
<tr class="separator:aabf588c2e9d73aa675922060a3901e4d"><td class="memSeparator" colspan="2"> </td></tr>
|
||
|
</table><table class="memberdecls">
|
||
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-attribs"></a>
|
||
|
Private Attributes</h2></td></tr>
|
||
|
<tr class="memitem:a8dabd1d9d3031570ca02db51c3de48a9"><td class="memItemLeft" align="right" valign="top">std::array< <a class="el" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a> const *, 2 > </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1operation_1_1distance_1_1DistanceOp.html#a8dabd1d9d3031570ca02db51c3de48a9">geom</a></td></tr>
|
||
|
<tr class="separator:a8dabd1d9d3031570ca02db51c3de48a9"><td class="memSeparator" colspan="2"> </td></tr>
|
||
|
<tr class="memitem:ac4e54cd5c7f51017de0525508dcb82c7"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1operation_1_1distance_1_1DistanceOp.html#ac4e54cd5c7f51017de0525508dcb82c7">terminateDistance</a></td></tr>
|
||
|
<tr class="separator:ac4e54cd5c7f51017de0525508dcb82c7"><td class="memSeparator" colspan="2"> </td></tr>
|
||
|
<tr class="memitem:a4278812a39ca0dbe0cb01fae67ec3a72"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classgeos_1_1algorithm_1_1PointLocator.html">algorithm::PointLocator</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1operation_1_1distance_1_1DistanceOp.html#a4278812a39ca0dbe0cb01fae67ec3a72">ptLocator</a></td></tr>
|
||
|
<tr class="separator:a4278812a39ca0dbe0cb01fae67ec3a72"><td class="memSeparator" colspan="2"> </td></tr>
|
||
|
<tr class="memitem:a183a12f0cdfab141fb5561e50fccc741"><td class="memItemLeft" align="right" valign="top">std::array< std::unique_ptr< <a class="el" href="classgeos_1_1operation_1_1distance_1_1GeometryLocation.html">GeometryLocation</a> >, 2 > </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1operation_1_1distance_1_1DistanceOp.html#a183a12f0cdfab141fb5561e50fccc741">minDistanceLocation</a></td></tr>
|
||
|
<tr class="separator:a183a12f0cdfab141fb5561e50fccc741"><td class="memSeparator" colspan="2"> </td></tr>
|
||
|
<tr class="memitem:adf1ce818bef66fe7b0f61892bea07e25"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1operation_1_1distance_1_1DistanceOp.html#adf1ce818bef66fe7b0f61892bea07e25">minDistance</a></td></tr>
|
||
|
<tr class="separator:adf1ce818bef66fe7b0f61892bea07e25"><td class="memSeparator" colspan="2"> </td></tr>
|
||
|
<tr class="memitem:a5fd271ddb8082622d742059d13dfe085"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1operation_1_1distance_1_1DistanceOp.html#a5fd271ddb8082622d742059d13dfe085">computed</a> = false</td></tr>
|
||
|
<tr class="separator:a5fd271ddb8082622d742059d13dfe085"><td class="memSeparator" colspan="2"> </td></tr>
|
||
|
</table>
|
||
|
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
|
||
|
<div class="textblock"><p>Find two points on two <a class="el" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a>s which lie within a given distance, or else are the nearest points on the geometries (in which case this also provides the distance between the geometries). </p>
|
||
|
<p>The distance computation also finds a pair of points in the input geometries which have the minimum distance between them. If a point lies in the interior of a line segment, the coordinate computed is a close approximation to the exact point.</p>
|
||
|
<p>Empty geometry collection components are ignored.</p>
|
||
|
<p>The algorithms used are straightforward O(n^2) comparisons. This worst-case performance could be improved on by using Voronoi techniques or spatial indexes. </p>
|
||
|
|
||
|
<p>Definition at line <a class="el" href="DistanceOp_8h_source.html#l00074">74</a> of file <a class="el" href="DistanceOp_8h_source.html">DistanceOp.h</a>.</p>
|
||
|
</div><h2 class="groupheader">Constructor & Destructor Documentation</h2>
|
||
|
<a class="anchor" id="ae4d61a1c477b4e0cf2a1ebbc3d74d0e6"></a>
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">geos::operation::distance::DistanceOp::DistanceOp </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramtype">const <a class="el" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a> * </td>
|
||
|
<td class="paramname"><em>g0</em>, </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="paramkey"></td>
|
||
|
<td></td>
|
||
|
<td class="paramtype">const <a class="el" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a> * </td>
|
||
|
<td class="paramname"><em>g1</em> </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td></td>
|
||
|
<td>)</td>
|
||
|
<td></td><td></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div><div class="memdoc">
|
||
|
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000009">Deprecated:</a></b></dt><dd>use the one taking references </dd></dl>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a class="anchor" id="aa4cde507efc8613942d68b0fe59a01f4"></a>
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">geos::operation::distance::DistanceOp::DistanceOp </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramtype">const <a class="el" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a> & </td>
|
||
|
<td class="paramname"><em>g0</em>, </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="paramkey"></td>
|
||
|
<td></td>
|
||
|
<td class="paramtype">const <a class="el" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a> & </td>
|
||
|
<td class="paramname"><em>g1</em> </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td></td>
|
||
|
<td>)</td>
|
||
|
<td></td><td></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div><div class="memdoc">
|
||
|
|
||
|
<p>Constructs a <a class="el" href="classgeos_1_1operation_1_1distance_1_1DistanceOp.html" title="Find two points on two geom::Geometrys which lie within a given distance, or else are the nearest poi...">DistanceOp</a> that computes the distance and nearest points between the two specified geometries. </p>
|
||
|
<dl class="params"><dt>Parameters</dt><dd>
|
||
|
<table class="params">
|
||
|
<tr><td class="paramname">g0</td><td>a Geometry </td></tr>
|
||
|
<tr><td class="paramname">g1</td><td>a Geometry </td></tr>
|
||
|
</table>
|
||
|
</dd>
|
||
|
</dl>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a class="anchor" id="acbad8fb1a46246dca20b39ab97073c90"></a>
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">geos::operation::distance::DistanceOp::DistanceOp </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramtype">const <a class="el" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a> & </td>
|
||
|
<td class="paramname"><em>g0</em>, </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="paramkey"></td>
|
||
|
<td></td>
|
||
|
<td class="paramtype">const <a class="el" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a> & </td>
|
||
|
<td class="paramname"><em>g1</em>, </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="paramkey"></td>
|
||
|
<td></td>
|
||
|
<td class="paramtype">double </td>
|
||
|
<td class="paramname"><em>terminateDistance</em> </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td></td>
|
||
|
<td>)</td>
|
||
|
<td></td><td></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div><div class="memdoc">
|
||
|
|
||
|
<p>Constructs a <a class="el" href="classgeos_1_1operation_1_1distance_1_1DistanceOp.html" title="Find two points on two geom::Geometrys which lie within a given distance, or else are the nearest poi...">DistanceOp</a> that computes the distance and nearest points between the two specified geometries. </p>
|
||
|
<dl class="params"><dt>Parameters</dt><dd>
|
||
|
<table class="params">
|
||
|
<tr><td class="paramname">g0</td><td>a Geometry </td></tr>
|
||
|
<tr><td class="paramname">g1</td><td>a Geometry </td></tr>
|
||
|
<tr><td class="paramname">terminateDistance</td><td>the distance on which to terminate the search </td></tr>
|
||
|
</table>
|
||
|
</dd>
|
||
|
</dl>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a class="anchor" id="ad906ce35f315132643d3ee8468276db7"></a>
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="mlabels">
|
||
|
<tr>
|
||
|
<td class="mlabels-left">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">geos::operation::distance::DistanceOp::~DistanceOp </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramname"></td><td>)</td>
|
||
|
<td></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</td>
|
||
|
<td class="mlabels-right">
|
||
|
<span class="mlabels"><span class="mlabel">default</span></span> </td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div><div class="memdoc">
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<h2 class="groupheader">Member Function Documentation</h2>
|
||
|
<a class="anchor" id="a74365ac1d47ada6121babe623ca81429"></a>
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="mlabels">
|
||
|
<tr>
|
||
|
<td class="mlabels-left">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">void geos::operation::distance::DistanceOp::computeContainmentDistance </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramname"></td><td>)</td>
|
||
|
<td></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</td>
|
||
|
<td class="mlabels-right">
|
||
|
<span class="mlabels"><span class="mlabel">private</span></span> </td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div><div class="memdoc">
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a class="anchor" id="a65eb3b249b407a0ac201e87ee7bc2189"></a>
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="mlabels">
|
||
|
<tr>
|
||
|
<td class="mlabels-left">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">void geos::operation::distance::DistanceOp::computeFacetDistance </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramname"></td><td>)</td>
|
||
|
<td></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</td>
|
||
|
<td class="mlabels-right">
|
||
|
<span class="mlabels"><span class="mlabel">private</span></span> </td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div><div class="memdoc">
|
||
|
<p>Computes distance between facets (lines and points) of input geometries. </p>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a class="anchor" id="af22fe1cdae22e9ed21082382f6c85fa7"></a>
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="mlabels">
|
||
|
<tr>
|
||
|
<td class="mlabels-left">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">void geos::operation::distance::DistanceOp::computeInside </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramtype">std::vector< std::unique_ptr< <a class="el" href="classgeos_1_1operation_1_1distance_1_1GeometryLocation.html">GeometryLocation</a> >> & </td>
|
||
|
<td class="paramname"><em>locs</em>, </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="paramkey"></td>
|
||
|
<td></td>
|
||
|
<td class="paramtype">const std::vector< const <a class="el" href="classgeos_1_1geom_1_1Polygon.html">geom::Polygon</a> * > & </td>
|
||
|
<td class="paramname"><em>polys</em>, </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="paramkey"></td>
|
||
|
<td></td>
|
||
|
<td class="paramtype">std::array< std::unique_ptr< <a class="el" href="classgeos_1_1operation_1_1distance_1_1GeometryLocation.html">GeometryLocation</a> >, 2 > & </td>
|
||
|
<td class="paramname"><em>locPtPoly</em> </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td></td>
|
||
|
<td>)</td>
|
||
|
<td></td><td></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</td>
|
||
|
<td class="mlabels-right">
|
||
|
<span class="mlabels"><span class="mlabel">private</span></span> </td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div><div class="memdoc">
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a class="anchor" id="ac6f04b30a9fcc3043d0616182dea668b"></a>
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="mlabels">
|
||
|
<tr>
|
||
|
<td class="mlabels-left">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">void geos::operation::distance::DistanceOp::computeMinDistance </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramname"></td><td>)</td>
|
||
|
<td></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</td>
|
||
|
<td class="mlabels-right">
|
||
|
<span class="mlabels"><span class="mlabel">private</span></span> </td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div><div class="memdoc">
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a class="anchor" id="a12134a7a66a4eb990367696489288421"></a>
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="mlabels">
|
||
|
<tr>
|
||
|
<td class="mlabels-left">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">void geos::operation::distance::DistanceOp::computeMinDistance </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramtype">const <a class="el" href="classgeos_1_1geom_1_1LineString.html">geom::LineString</a> * </td>
|
||
|
<td class="paramname"><em>line0</em>, </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="paramkey"></td>
|
||
|
<td></td>
|
||
|
<td class="paramtype">const <a class="el" href="classgeos_1_1geom_1_1LineString.html">geom::LineString</a> * </td>
|
||
|
<td class="paramname"><em>line1</em>, </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="paramkey"></td>
|
||
|
<td></td>
|
||
|
<td class="paramtype">std::array< std::unique_ptr< <a class="el" href="classgeos_1_1operation_1_1distance_1_1GeometryLocation.html">GeometryLocation</a> >, 2 > & </td>
|
||
|
<td class="paramname"><em>locGeom</em> </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td></td>
|
||
|
<td>)</td>
|
||
|
<td></td><td></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</td>
|
||
|
<td class="mlabels-right">
|
||
|
<span class="mlabels"><span class="mlabel">private</span></span> </td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div><div class="memdoc">
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a class="anchor" id="aabf588c2e9d73aa675922060a3901e4d"></a>
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="mlabels">
|
||
|
<tr>
|
||
|
<td class="mlabels-left">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">void geos::operation::distance::DistanceOp::computeMinDistance </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramtype">const <a class="el" href="classgeos_1_1geom_1_1LineString.html">geom::LineString</a> * </td>
|
||
|
<td class="paramname"><em>line</em>, </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="paramkey"></td>
|
||
|
<td></td>
|
||
|
<td class="paramtype">const <a class="el" href="classgeos_1_1geom_1_1Point.html">geom::Point</a> * </td>
|
||
|
<td class="paramname"><em>pt</em>, </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="paramkey"></td>
|
||
|
<td></td>
|
||
|
<td class="paramtype">std::array< std::unique_ptr< <a class="el" href="classgeos_1_1operation_1_1distance_1_1GeometryLocation.html">GeometryLocation</a> >, 2 > & </td>
|
||
|
<td class="paramname"><em>locGeom</em> </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td></td>
|
||
|
<td>)</td>
|
||
|
<td></td><td></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</td>
|
||
|
<td class="mlabels-right">
|
||
|
<span class="mlabels"><span class="mlabel">private</span></span> </td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div><div class="memdoc">
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a class="anchor" id="af5ccfea67882b0e8d52969a1b686e9f2"></a>
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="mlabels">
|
||
|
<tr>
|
||
|
<td class="mlabels-left">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">void geos::operation::distance::DistanceOp::computeMinDistanceLines </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramtype">const std::vector< const <a class="el" href="classgeos_1_1geom_1_1LineString.html">geom::LineString</a> * > & </td>
|
||
|
<td class="paramname"><em>lines0</em>, </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="paramkey"></td>
|
||
|
<td></td>
|
||
|
<td class="paramtype">const std::vector< const <a class="el" href="classgeos_1_1geom_1_1LineString.html">geom::LineString</a> * > & </td>
|
||
|
<td class="paramname"><em>lines1</em>, </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="paramkey"></td>
|
||
|
<td></td>
|
||
|
<td class="paramtype">std::array< std::unique_ptr< <a class="el" href="classgeos_1_1operation_1_1distance_1_1GeometryLocation.html">GeometryLocation</a> >, 2 > & </td>
|
||
|
<td class="paramname"><em>locGeom</em> </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td></td>
|
||
|
<td>)</td>
|
||
|
<td></td><td></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</td>
|
||
|
<td class="mlabels-right">
|
||
|
<span class="mlabels"><span class="mlabel">private</span></span> </td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div><div class="memdoc">
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a class="anchor" id="a516873b8525b0aa6d1608da29fbbf06c"></a>
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="mlabels">
|
||
|
<tr>
|
||
|
<td class="mlabels-left">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">void geos::operation::distance::DistanceOp::computeMinDistanceLinesPoints </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramtype">const std::vector< const <a class="el" href="classgeos_1_1geom_1_1LineString.html">geom::LineString</a> * > & </td>
|
||
|
<td class="paramname"><em>lines0</em>, </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="paramkey"></td>
|
||
|
<td></td>
|
||
|
<td class="paramtype">const std::vector< const <a class="el" href="classgeos_1_1geom_1_1Point.html">geom::Point</a> * > & </td>
|
||
|
<td class="paramname"><em>points1</em>, </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="paramkey"></td>
|
||
|
<td></td>
|
||
|
<td class="paramtype">std::array< std::unique_ptr< <a class="el" href="classgeos_1_1operation_1_1distance_1_1GeometryLocation.html">GeometryLocation</a> >, 2 > & </td>
|
||
|
<td class="paramname"><em>locGeom</em> </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td></td>
|
||
|
<td>)</td>
|
||
|
<td></td><td></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</td>
|
||
|
<td class="mlabels-right">
|
||
|
<span class="mlabels"><span class="mlabel">private</span></span> </td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div><div class="memdoc">
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a class="anchor" id="a94cccb941218b79ac75f05e0c0fe8f26"></a>
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="mlabels">
|
||
|
<tr>
|
||
|
<td class="mlabels-left">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">void geos::operation::distance::DistanceOp::computeMinDistancePoints </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramtype">const std::vector< const <a class="el" href="classgeos_1_1geom_1_1Point.html">geom::Point</a> * > & </td>
|
||
|
<td class="paramname"><em>points0</em>, </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="paramkey"></td>
|
||
|
<td></td>
|
||
|
<td class="paramtype">const std::vector< const <a class="el" href="classgeos_1_1geom_1_1Point.html">geom::Point</a> * > & </td>
|
||
|
<td class="paramname"><em>points1</em>, </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="paramkey"></td>
|
||
|
<td></td>
|
||
|
<td class="paramtype">std::array< std::unique_ptr< <a class="el" href="classgeos_1_1operation_1_1distance_1_1GeometryLocation.html">GeometryLocation</a> >, 2 > & </td>
|
||
|
<td class="paramname"><em>locGeom</em> </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td></td>
|
||
|
<td>)</td>
|
||
|
<td></td><td></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</td>
|
||
|
<td class="mlabels-right">
|
||
|
<span class="mlabels"><span class="mlabel">private</span></span> </td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div><div class="memdoc">
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a class="anchor" id="ad3462b8ed28b4cd93e2e462937975655"></a>
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="mlabels">
|
||
|
<tr>
|
||
|
<td class="mlabels-left">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">static double geos::operation::distance::DistanceOp::distance </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramtype">const <a class="el" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a> & </td>
|
||
|
<td class="paramname"><em>g0</em>, </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="paramkey"></td>
|
||
|
<td></td>
|
||
|
<td class="paramtype">const <a class="el" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a> & </td>
|
||
|
<td class="paramname"><em>g1</em> </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td></td>
|
||
|
<td>)</td>
|
||
|
<td></td><td></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</td>
|
||
|
<td class="mlabels-right">
|
||
|
<span class="mlabels"><span class="mlabel">static</span></span> </td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div><div class="memdoc">
|
||
|
|
||
|
<p>Compute the distance between the nearest points of two geometries. </p>
|
||
|
<dl class="params"><dt>Parameters</dt><dd>
|
||
|
<table class="params">
|
||
|
<tr><td class="paramname">g0</td><td>a <a class="el" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a> </td></tr>
|
||
|
<tr><td class="paramname">g1</td><td>another <a class="el" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a> </td></tr>
|
||
|
</table>
|
||
|
</dd>
|
||
|
</dl>
|
||
|
<dl class="section return"><dt>Returns</dt><dd>the distance between the geometries </dd>
|
||
|
<dd>
|
||
|
0 if either input geometry is empty </dd></dl>
|
||
|
<dl class="exception"><dt>Exceptions</dt><dd>
|
||
|
<table class="exception">
|
||
|
<tr><td class="paramname">IllegalArgumentException</td><td>if either input geometry is null </td></tr>
|
||
|
</table>
|
||
|
</dd>
|
||
|
</dl>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a class="anchor" id="a5203d25c59ea0293059db321e0d82763"></a>
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="mlabels">
|
||
|
<tr>
|
||
|
<td class="mlabels-left">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">static double geos::operation::distance::DistanceOp::distance </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramtype">const <a class="el" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a> * </td>
|
||
|
<td class="paramname"><em>g0</em>, </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="paramkey"></td>
|
||
|
<td></td>
|
||
|
<td class="paramtype">const <a class="el" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a> * </td>
|
||
|
<td class="paramname"><em>g1</em> </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td></td>
|
||
|
<td>)</td>
|
||
|
<td></td><td></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</td>
|
||
|
<td class="mlabels-right">
|
||
|
<span class="mlabels"><span class="mlabel">static</span></span> </td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div><div class="memdoc">
|
||
|
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000008">Deprecated:</a></b></dt><dd>, use the version taking references </dd></dl>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a class="anchor" id="ac5dec6e433a9d07ed80bd34aadc1dda0"></a>
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">double geos::operation::distance::DistanceOp::distance </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramname"></td><td>)</td>
|
||
|
<td></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div><div class="memdoc">
|
||
|
<p>Report the distance between the closest points on the input geometries.</p>
|
||
|
<dl class="section return"><dt>Returns</dt><dd>the distance between the geometries </dd></dl>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a class="anchor" id="a99de46033e82abe54143501af7aa1266"></a>
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="mlabels">
|
||
|
<tr>
|
||
|
<td class="mlabels-left">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">static bool geos::operation::distance::DistanceOp::isWithinDistance </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramtype">const <a class="el" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a> & </td>
|
||
|
<td class="paramname"><em>g0</em>, </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="paramkey"></td>
|
||
|
<td></td>
|
||
|
<td class="paramtype">const <a class="el" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a> & </td>
|
||
|
<td class="paramname"><em>g1</em>, </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="paramkey"></td>
|
||
|
<td></td>
|
||
|
<td class="paramtype">double </td>
|
||
|
<td class="paramname"><em>distance</em> </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td></td>
|
||
|
<td>)</td>
|
||
|
<td></td><td></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</td>
|
||
|
<td class="mlabels-right">
|
||
|
<span class="mlabels"><span class="mlabel">static</span></span> </td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div><div class="memdoc">
|
||
|
|
||
|
<p>Test whether two geometries lie within a given distance of each other. </p>
|
||
|
<dl class="params"><dt>Parameters</dt><dd>
|
||
|
<table class="params">
|
||
|
<tr><td class="paramname">g0</td><td>a <a class="el" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a> </td></tr>
|
||
|
<tr><td class="paramname">g1</td><td>another <a class="el" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a> </td></tr>
|
||
|
<tr><td class="paramname">distance</td><td>the distance to test </td></tr>
|
||
|
</table>
|
||
|
</dd>
|
||
|
</dl>
|
||
|
<dl class="section return"><dt>Returns</dt><dd>true if g0.distance(g1) <= distance </dd></dl>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a class="anchor" id="a43d3bd70d074e8f7a419a995aeb46936"></a>
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="mlabels">
|
||
|
<tr>
|
||
|
<td class="mlabels-left">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">static std::unique_ptr<<a class="el" href="classgeos_1_1geom_1_1CoordinateSequence.html">geom::CoordinateSequence</a>> geos::operation::distance::DistanceOp::nearestPoints </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramtype">const <a class="el" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a> * </td>
|
||
|
<td class="paramname"><em>g0</em>, </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="paramkey"></td>
|
||
|
<td></td>
|
||
|
<td class="paramtype">const <a class="el" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a> * </td>
|
||
|
<td class="paramname"><em>g1</em> </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td></td>
|
||
|
<td>)</td>
|
||
|
<td></td><td></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</td>
|
||
|
<td class="mlabels-right">
|
||
|
<span class="mlabels"><span class="mlabel">static</span></span> </td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div><div class="memdoc">
|
||
|
<p>Compute the the nearest points of two geometries.</p>
|
||
|
<p>The points are presented in the same order as the input Geometries.</p>
|
||
|
<dl class="params"><dt>Parameters</dt><dd>
|
||
|
<table class="params">
|
||
|
<tr><td class="paramname">g0</td><td>a <a class="el" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a> </td></tr>
|
||
|
<tr><td class="paramname">g1</td><td>another <a class="el" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a></td></tr>
|
||
|
</table>
|
||
|
</dd>
|
||
|
</dl>
|
||
|
<dl class="section return"><dt>Returns</dt><dd>the nearest points in the geometries, ownership to caller. A NULL return means one of the geometries is empty. </dd></dl>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a class="anchor" id="a0adfa6f211637914618d22ca4bc5075d"></a>
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">std::unique_ptr<<a class="el" href="classgeos_1_1geom_1_1CoordinateSequence.html">geom::CoordinateSequence</a>> geos::operation::distance::DistanceOp::nearestPoints </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramname"></td><td>)</td>
|
||
|
<td></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div><div class="memdoc">
|
||
|
<p>Report the coordinates of the nearest points in the input geometries. The points are presented in the same order as the input Geometries.</p>
|
||
|
<dl class="section return"><dt>Returns</dt><dd>a pair of <a class="el" href="classgeos_1_1geom_1_1Coordinate.html">geom::Coordinate</a>s of the nearest points as a newly allocated object (ownership to caller) </dd></dl>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a class="anchor" id="a94d59e3aa848596d7a1c00cebe4a3df7"></a>
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="mlabels">
|
||
|
<tr>
|
||
|
<td class="mlabels-left">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">void geos::operation::distance::DistanceOp::updateMinDistance </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramtype">std::array< std::unique_ptr< <a class="el" href="classgeos_1_1operation_1_1distance_1_1GeometryLocation.html">GeometryLocation</a> >, 2 > & </td>
|
||
|
<td class="paramname"><em>locGeom</em>, </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="paramkey"></td>
|
||
|
<td></td>
|
||
|
<td class="paramtype">bool </td>
|
||
|
<td class="paramname"><em>flip</em> </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td></td>
|
||
|
<td>)</td>
|
||
|
<td></td><td></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</td>
|
||
|
<td class="mlabels-right">
|
||
|
<span class="mlabels"><span class="mlabel">private</span></span> </td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div><div class="memdoc">
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<h2 class="groupheader">Member Data Documentation</h2>
|
||
|
<a class="anchor" id="a5fd271ddb8082622d742059d13dfe085"></a>
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="mlabels">
|
||
|
<tr>
|
||
|
<td class="mlabels-left">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">bool geos::operation::distance::DistanceOp::computed = false</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</td>
|
||
|
<td class="mlabels-right">
|
||
|
<span class="mlabels"><span class="mlabel">private</span></span> </td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div><div class="memdoc">
|
||
|
|
||
|
<p>Definition at line <a class="el" href="DistanceOp_8h_source.html#l00178">178</a> of file <a class="el" href="DistanceOp_8h_source.html">DistanceOp.h</a>.</p>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a class="anchor" id="a8dabd1d9d3031570ca02db51c3de48a9"></a>
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="mlabels">
|
||
|
<tr>
|
||
|
<td class="mlabels-left">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">std::array<<a class="el" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a> const*, 2> geos::operation::distance::DistanceOp::geom</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</td>
|
||
|
<td class="mlabels-right">
|
||
|
<span class="mlabels"><span class="mlabel">private</span></span> </td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div><div class="memdoc">
|
||
|
|
||
|
<p>Definition at line <a class="el" href="DistanceOp_8h_source.html#l00171">171</a> of file <a class="el" href="DistanceOp_8h_source.html">DistanceOp.h</a>.</p>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a class="anchor" id="adf1ce818bef66fe7b0f61892bea07e25"></a>
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="mlabels">
|
||
|
<tr>
|
||
|
<td class="mlabels-left">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">double geos::operation::distance::DistanceOp::minDistance</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</td>
|
||
|
<td class="mlabels-right">
|
||
|
<span class="mlabels"><span class="mlabel">private</span></span> </td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div><div class="memdoc">
|
||
|
|
||
|
<p>Definition at line <a class="el" href="DistanceOp_8h_source.html#l00177">177</a> of file <a class="el" href="DistanceOp_8h_source.html">DistanceOp.h</a>.</p>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a class="anchor" id="a183a12f0cdfab141fb5561e50fccc741"></a>
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="mlabels">
|
||
|
<tr>
|
||
|
<td class="mlabels-left">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">std::array<std::unique_ptr<<a class="el" href="classgeos_1_1operation_1_1distance_1_1GeometryLocation.html">GeometryLocation</a>>, 2> geos::operation::distance::DistanceOp::minDistanceLocation</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</td>
|
||
|
<td class="mlabels-right">
|
||
|
<span class="mlabels"><span class="mlabel">private</span></span> </td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div><div class="memdoc">
|
||
|
|
||
|
<p>Definition at line <a class="el" href="DistanceOp_8h_source.html#l00176">176</a> of file <a class="el" href="DistanceOp_8h_source.html">DistanceOp.h</a>.</p>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a class="anchor" id="a4278812a39ca0dbe0cb01fae67ec3a72"></a>
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="mlabels">
|
||
|
<tr>
|
||
|
<td class="mlabels-left">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname"><a class="el" href="classgeos_1_1algorithm_1_1PointLocator.html">algorithm::PointLocator</a> geos::operation::distance::DistanceOp::ptLocator</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</td>
|
||
|
<td class="mlabels-right">
|
||
|
<span class="mlabels"><span class="mlabel">private</span></span> </td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div><div class="memdoc">
|
||
|
|
||
|
<p>Definition at line <a class="el" href="DistanceOp_8h_source.html#l00175">175</a> of file <a class="el" href="DistanceOp_8h_source.html">DistanceOp.h</a>.</p>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a class="anchor" id="ac4e54cd5c7f51017de0525508dcb82c7"></a>
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="mlabels">
|
||
|
<tr>
|
||
|
<td class="mlabels-left">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">double geos::operation::distance::DistanceOp::terminateDistance</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</td>
|
||
|
<td class="mlabels-right">
|
||
|
<span class="mlabels"><span class="mlabel">private</span></span> </td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div><div class="memdoc">
|
||
|
|
||
|
<p>Definition at line <a class="el" href="DistanceOp_8h_source.html#l00172">172</a> of file <a class="el" href="DistanceOp_8h_source.html">DistanceOp.h</a>.</p>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<hr/>The documentation for this class was generated from the following file:<ul>
|
||
|
<li><a class="el" href="DistanceOp_8h_source.html">DistanceOp.h</a></li>
|
||
|
</ul>
|
||
|
</div><!-- contents -->
|
||
|
<!-- start footer part -->
|
||
|
<hr class="footer"/><address class="footer"><small>
|
||
|
Generated by  <a href="http://www.doxygen.org/index.html">
|
||
|
<img class="footer" src="doxygen.png" alt="doxygen"/>
|
||
|
</a> 1.8.11
|
||
|
</small></address>
|
||
|
</body>
|
||
|
</html>
|