UNPKG

rn_supermap

Version:

rn_supermap 一款基于React-Native框架的移动应用开发工具。基于该开发工具,用户可以使用JavaScript开发语言,开发出在Android和IOS操作系统下运行的原生移动GIS应用,入门门槛低,一次开发,处处运行。

1,597 lines (446 loc) 24.1 kB
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>JSDoc: Class: OverlayAnalyst</title> <script src="scripts/prettify/prettify.js"> </script> <script src="scripts/prettify/lang-css.js"> </script> <!--[if lt IE 9]> <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script> <![endif]--> <link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css"> <link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css"> </head> <body> <div id="main"> <h1 class="page-title">Class: OverlayAnalyst</h1> <section> <header> <h2>OverlayAnalyst</h2> </header> <article> <div class="container-overview"> <h4 class="name" id="OverlayAnalyst"><span class="type-signature"></span>new OverlayAnalyst<span class="signature">()</span><span class="type-signature"></span></h4> <div class="description"> 叠加分析类(静态类) 该类用于对输入的两个数据集或记录集之间进行各种叠加分析运算,如裁剪(clip)、擦除(erase)、合并(union)、同一(identity)、对称差(xOR)和更新(update)。 </div> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="OverlayAnalyst.js.html">OverlayAnalyst.js</a>, <a href="OverlayAnalyst.js.html#line10">line 10</a> </li></ul></dd> </dl> </div> <h3 class="subsection-title">Methods</h3> <h4 class="name" id=".clip"><span class="type-signature">(static) </span>clip<span class="signature">(datasetVector, clipDatasetVector, resultDatasetVector, paramter)</span><span class="type-signature"> &rarr; {Promise.&lt;boolean>}</span></h4> <div class="description"> 对矢量数据集进行裁剪,将被裁减数据集(第一个数据集)中不在裁剪数据集(第二个数据集)内的对象裁剪并删除。 </div> <h5>Parameters:</h5> <table class="params"> <thead> <tr> <th>Name</th> <th>Type</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>datasetVector</code></td> <td class="type"> <span class="param-type">object</span> </td> <td class="description last">被裁减的数据集,也称第一数据集。该数据集的类型可以是点、线和面。</td> </tr> <tr> <td class="name"><code>clipDatasetVector</code></td> <td class="type"> <span class="param-type">object</span> </td> <td class="description last">用于裁剪的数据集,也称第二数据集。该数据集类型必须是面。</td> </tr> <tr> <td class="name"><code>resultDatasetVector</code></td> <td class="type"> <span class="param-type">object</span> </td> <td class="description last">存放裁剪结果的数据集。</td> </tr> <tr> <td class="name"><code>paramter</code></td> <td class="type"> <span class="param-type">object</span> </td> <td class="description last">叠加分析的参数对象,该对象用于设置分析时的保留字段等分析参数。此处该对象设置无效。</td> </tr> </tbody> </table> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="OverlayAnalyst.js.html">OverlayAnalyst.js</a>, <a href="OverlayAnalyst.js.html#line25">line 25</a> </li></ul></dd> </dl> <h5>Returns:</h5> <dl> <dt> Type </dt> <dd> <span class="param-type">Promise.&lt;boolean></span> </dd> </dl> <h4 class="name" id=".erase"><span class="type-signature">(static) </span>erase<span class="signature">(datasetVector, eraseDatasetVector, resultDatasetVector, paramter)</span><span class="type-signature"> &rarr; {Promise.&lt;boolean>}</span></h4> <div class="description"> 用于对数据集进行擦除方式的叠加分析,将第一个数据集中包含在第二个数据集内的对象裁剪并删除。 </div> <h5>Parameters:</h5> <table class="params"> <thead> <tr> <th>Name</th> <th>Type</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>datasetVector</code></td> <td class="type"> <span class="param-type">object</span> </td> <td class="description last">被擦除的数据集,也称第一数据集。该数据集类型为点、线和面类型。</td> </tr> <tr> <td class="name"><code>eraseDatasetVector</code></td> <td class="type"> <span class="param-type">object</span> </td> <td class="description last">用于擦除的数据集,也称第二数据集。该数据集类型必须是面数据集类型。</td> </tr> <tr> <td class="name"><code>resultDatasetVector</code></td> <td class="type"> <span class="param-type">object</span> </td> <td class="description last">存放分析结果的数据集。</td> </tr> <tr> <td class="name"><code>paramter</code></td> <td class="type"> <span class="param-type">object</span> </td> <td class="description last">叠加分析的参数对象,该对象用于设置分析时的保留字段等分析参数。</td> </tr> </tbody> </table> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="OverlayAnalyst.js.html">OverlayAnalyst.js</a>, <a href="OverlayAnalyst.js.html#line44">line 44</a> </li></ul></dd> </dl> <h5>Returns:</h5> <dl> <dt> Type </dt> <dd> <span class="param-type">Promise.&lt;boolean></span> </dd> </dl> <h4 class="name" id=".identity"><span class="type-signature">(static) </span>identity<span class="signature">(datasetVector, identityDatasetVector, resultDatasetVector, paramter)</span><span class="type-signature"> &rarr; {Promise.&lt;boolean>}</span></h4> <div class="description"> 用于对数据集进行同一方式的叠加分析,结果数据集中保留被同一运算的数据集的全部对象和被同一运算的数据集与用来进行同一运算的数据集相交的对象。 </div> <h5>Parameters:</h5> <table class="params"> <thead> <tr> <th>Name</th> <th>Type</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>datasetVector</code></td> <td class="type"> </td> <td class="description last">被同一运算的数据集,可以是点、线、面类型。</td> </tr> <tr> <td class="name"><code>identityDatasetVector</code></td> <td class="type"> </td> <td class="description last">用来进行同一运算的数据集,必须为面类型。</td> </tr> <tr> <td class="name"><code>resultDatasetVector</code></td> <td class="type"> </td> <td class="description last">存放分析结果的数据集。</td> </tr> <tr> <td class="name"><code>paramter</code></td> <td class="type"> </td> <td class="description last">叠加分析的参数对象,该对象用于设置分析时的保留字段等分析参数。</td> </tr> </tbody> </table> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="OverlayAnalyst.js.html">OverlayAnalyst.js</a>, <a href="OverlayAnalyst.js.html#line63">line 63</a> </li></ul></dd> </dl> <h5>Returns:</h5> <dl> <dt> Type </dt> <dd> <span class="param-type">Promise.&lt;boolean></span> </dd> </dl> <h4 class="name" id=".intersect"><span class="type-signature">(static) </span>intersect<span class="signature">(datasetVector, intersectDatasetVector, resultDatasetVector, paramter)</span><span class="type-signature"> &rarr; {Promise.&lt;boolean>}</span></h4> <div class="description"> 进行相交方式的叠加分析,将被相交叠加分析的数据集不包含在用来相交叠加分析的数据集中的对象切割并删除。即两个数据集中重叠的部分将被输出到结果数据集中,其余部分将被排除。 </div> <h5>Parameters:</h5> <table class="params"> <thead> <tr> <th>Name</th> <th>Type</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>datasetVector</code></td> <td class="type"> </td> <td class="description last">被相交叠加分析的数据集,该数据集的类型可以是点、线、面数据集。</td> </tr> <tr> <td class="name"><code>intersectDatasetVector</code></td> <td class="type"> </td> <td class="description last">用来相交叠加分析的数据集,该数据集必须是面数据集。</td> </tr> <tr> <td class="name"><code>resultDatasetVector</code></td> <td class="type"> </td> <td class="description last">存放分析结果的数据集。</td> </tr> <tr> <td class="name"><code>paramter</code></td> <td class="type"> </td> <td class="description last">叠加分析的参数对象,该对象用于设置分析时的保留字段等分析参数。</td> </tr> </tbody> </table> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="OverlayAnalyst.js.html">OverlayAnalyst.js</a>, <a href="OverlayAnalyst.js.html#line82">line 82</a> </li></ul></dd> </dl> <h5>Returns:</h5> <dl> <dt> Type </dt> <dd> <span class="param-type">Promise.&lt;boolean></span> </dd> </dl> <h4 class="name" id=".union"><span class="type-signature">(static) </span>union<span class="signature">(datasetVector, unionDatasetVector, resultDatasetVector, paramter)</span><span class="type-signature"> &rarr; {Promise.&lt;boolean>}</span></h4> <div class="description"> 用于对两个面数据集进行合并方式的叠加分析,结果数据集中保存被合并叠加分析的数据集和用于合并叠加分析的数据集中的全部对象,并且对相交部分进行求交和分割运算。 </div> <h5>Parameters:</h5> <table class="params"> <thead> <tr> <th>Name</th> <th>Type</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>datasetVector</code></td> <td class="type"> </td> <td class="description last">被合并叠加分析的数据集,必须是面数据集类型。</td> </tr> <tr> <td class="name"><code>unionDatasetVector</code></td> <td class="type"> </td> <td class="description last">用于合并叠加分析的数据集,必须是面数据集类型。</td> </tr> <tr> <td class="name"><code>resultDatasetVector</code></td> <td class="type"> </td> <td class="description last">存放分析结果的数据集。</td> </tr> <tr> <td class="name"><code>paramter</code></td> <td class="type"> </td> <td class="description last">叠加分析的参数对象,该对象用于设置分析时的保留字段等分析参数。</td> </tr> </tbody> </table> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="OverlayAnalyst.js.html">OverlayAnalyst.js</a>, <a href="OverlayAnalyst.js.html#line101">line 101</a> </li></ul></dd> </dl> <h5>Returns:</h5> <dl> <dt> Type </dt> <dd> <span class="param-type">Promise.&lt;boolean></span> </dd> </dl> <h4 class="name" id=".update"><span class="type-signature">(static) </span>update<span class="signature">(datasetVector, updateDatasetVector, resultDatasetVector, paramter)</span><span class="type-signature"> &rarr; {Promise.&lt;boolean>}</span></h4> <div class="description"> 用于对两个面数据集进行更新方式的叠加分析,更新运算时用用于更新的数据集替换与被更新数据集重合的部分,是一个先擦除后粘贴的过程。 用于更新叠加分析的数据集、被更新叠加分析的数据集以及结果数据集的地理坐标系必须一致。 第一数据集与第二数据集的类型都必须是面数据集。结果数据集中保留了更新数据集的几何形状和属性信息。 </div> <h5>Parameters:</h5> <table class="params"> <thead> <tr> <th>Name</th> <th>Type</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>datasetVector</code></td> <td class="type"> </td> <td class="description last">被更新叠加分析的数据集,必须是面类型。</td> </tr> <tr> <td class="name"><code>updateDatasetVector</code></td> <td class="type"> </td> <td class="description last">用于更新叠加分析的数据集,必须是面数据集。</td> </tr> <tr> <td class="name"><code>resultDatasetVector</code></td> <td class="type"> </td> <td class="description last">存放分析结果的数据集。</td> </tr> <tr> <td class="name"><code>paramter</code></td> <td class="type"> </td> <td class="description last">叠加分析的参数对象,该对象用于设置分析时的保留字段等分析参数。</td> </tr> </tbody> </table> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="OverlayAnalyst.js.html">OverlayAnalyst.js</a>, <a href="OverlayAnalyst.js.html#line122">line 122</a> </li></ul></dd> </dl> <h5>Returns:</h5> <dl> <dt> Type </dt> <dd> <span class="param-type">Promise.&lt;boolean></span> </dd> </dl> <h4 class="name" id=".xOR"><span class="type-signature">(static) </span>xOR<span class="signature">(datasetVector, xORDatasetVector, resultDatasetVector, paramter)</span><span class="type-signature"> &rarr; {Promise.&lt;boolean>}</span></h4> <div class="description"> 对两个面数据集进行对称差运算。即交集取反运算。 用于对称差分析的数据集、被对称差分析的数据集以及结果数据集的地理坐标系必须一致。 对称差运算是两个数据集的异或运算。操作结果是,对于每一个面对象,去掉其与另一个数据集中的几何对象相交的部分,而保留剩下的部分。对称差运算的输出结果的属性表包含两个输入数据集的非系统属性字段。 </div> <h5>Parameters:</h5> <table class="params"> <thead> <tr> <th>Name</th> <th>Type</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>datasetVector</code></td> <td class="type"> </td> <td class="description last">被对称差分析的原数据集,必须是面数据集。</td> </tr> <tr> <td class="name"><code>xORDatasetVector</code></td> <td class="type"> </td> <td class="description last">用于对称差分析的数据集,必须是面数据集。</td> </tr> <tr> <td class="name"><code>resultDatasetVector</code></td> <td class="type"> </td> <td class="description last">存放分析结果的数据集</td> </tr> <tr> <td class="name"><code>paramter</code></td> <td class="type"> </td> <td class="description last">叠加分析的参数对象,该对象用于设置分析时的保留字段等分析参数。</td> </tr> </tbody> </table> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="OverlayAnalyst.js.html">OverlayAnalyst.js</a>, <a href="OverlayAnalyst.js.html#line143">line 143</a> </li></ul></dd> </dl> <h5>Returns:</h5> <dl> <dt> Type </dt> <dd> <span class="param-type">Promise.&lt;boolean></span> </dd> </dl> </article> </section> </div> <nav> <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="BufferAnalyst.html">BufferAnalyst</a></li><li><a href="BufferAnalystParameter.html">BufferAnalystParameter</a></li><li><a href="DataDownloadService.html">DataDownloadService</a></li><li><a href="Dataset.html">Dataset</a></li><li><a href="DatasetVector.html">DatasetVector</a></li><li><a href="DatasetVectorInfo.html">DatasetVectorInfo</a></li><li><a href="Datasource.html">Datasource</a></li><li><a href="DatasourceConnectionInfo.html">DatasourceConnectionInfo</a></li><li><a href="DataUploadService.html">DataUploadService</a></li><li><a href="Feature.html">Feature</a></li><li><a href="FeatureSet.html">FeatureSet</a></li><li><a href="GeoLine.html">GeoLine</a></li><li><a href="Geometry.html">Geometry</a></li><li><a href="GeoPoint.html">GeoPoint</a></li><li><a href="GeoRegion.html">GeoRegion</a></li><li><a href="GeoStyle.html">GeoStyle</a></li><li><a href="Layer.html">Layer</a></li><li><a href="LayerSetting.html">LayerSetting</a></li><li><a href="LayerSettingVector.html">LayerSettingVector</a></li><li><a href="LocationManager.html">LocationManager</a></li><li><a href="Map.html">Map</a></li><li><a href="MapControl.html">MapControl</a></li><li><a href="MapView.html">MapView</a></li><li><a href="Navigation2.html">Navigation2</a></li><li><a href="OverlayAnalyst.html">OverlayAnalyst</a></li><li><a href="OverlayAnalystParameter.html">OverlayAnalystParameter</a></li><li><a href="Point.html">Point</a></li><li><a href="Point2D.html">Point2D</a></li><li><a href="QueryParameter.html">QueryParameter</a></li><li><a href="QueryService.html">QueryService</a></li><li><a href="Rectangle2D.html">Rectangle2D</a></li><li><a href="Scene.html">Scene</a></li><li><a href="Selection.html">Selection</a></li><li><a href="ServiceBase.html">ServiceBase</a></li><li><a href="ServiceQueryParameter.html">ServiceQueryParameter</a></li><li><a href="Size2D.html">Size2D</a></li><li><a href="Theme.html">Theme</a></li><li><a href="Track.html">Track</a></li><li><a href="TrackingLayer.html">TrackingLayer</a></li><li><a href="TraditionalNavi.html">TraditionalNavi</a></li><li><a href="Workspace.html">Workspace</a></li><li><a href="WorkspaceConnectionInfo.html">WorkspaceConnectionInfo</a></li></ul> </nav> <br class="clear"> <footer> Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.3</a> on Tue Aug 01 2017 16:16:50 GMT+0800 (CST) </footer> <script> prettyPrint(); </script> <script src="scripts/linenumber.js"> </script> </body> </html>