rn_supermap
Version:
rn_supermap 一款基于React-Native框架的移动应用开发工具。基于该开发工具,用户可以使用JavaScript开发语言,开发出在Android和IOS操作系统下运行的原生移动GIS应用,入门门槛低,一次开发,处处运行。
1,374 lines (371 loc) • 18.5 kB
HTML
<html lang="en">
<head>
<meta charset="utf-8">
<title>JSDoc: Class: DataDownloadService</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: DataDownloadService</h1>
<section>
<header>
<h2>DataDownloadService</h2>
</header>
<article>
<div class="container-overview">
<h4 class="name" id="DataDownloadService"><span class="type-signature"></span>new DataDownloadService<span class="signature">()</span><span class="type-signature"></span></h4>
<div class="description">
数据下载类,用于从iServer服务器上下载数据到本地。
</div>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="DataDownloadService.js.html">DataDownloadService.js</a>, <a href="DataDownloadService.js.html#line11">line 11</a>
</li></ul></dd>
</dl>
</div>
<h3 class="subsection-title">Methods</h3>
<h4 class="name" id=".createObj"><span class="type-signature">(static) </span>createObj<span class="signature">(url)</span><span class="type-signature"> → {Promise.<<a href="DataDownloadService.html">DataDownloadService</a>>}</span></h4>
<div class="description">
根据指定的url构造一个新的 DataDownloadService 对象。
</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>url</code></td>
<td class="type">
<span class="param-type">string</span>
</td>
<td class="description last">指定的url</td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="DataDownloadService.js.html">DataDownloadService.js</a>, <a href="DataDownloadService.js.html#line35">line 35</a>
</li></ul></dd>
</dl>
<h5>Returns:</h5>
<dl>
<dt>
Type
</dt>
<dd>
<span class="param-type">Promise.<<a href="DataDownloadService.html">DataDownloadService</a>></span>
</dd>
</dl>
<h4 class="name" id=".download"><span class="type-signature">(static) </span>download<span class="signature">(fullUrl, fromIndex, toIndex)</span><span class="type-signature"> → {Promise.<void>}</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>fullUrl</code></td>
<td class="type">
<span class="param-type">string</span>
</td>
<td class="description last">数据服务的地址,如:http://127.0.0.1:8090/iserver/services/data-China400/rest/data/datasources/China400/datasets/City_R。</td>
</tr>
<tr>
<td class="name"><code>fromIndex</code></td>
<td class="type">
<span class="param-type">number</span>
</td>
<td class="description last">起始下标。</td>
</tr>
<tr>
<td class="name"><code>toIndex</code></td>
<td class="type">
<span class="param-type">number</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="DataDownloadService.js.html">DataDownloadService.js</a>, <a href="DataDownloadService.js.html#line54">line 54</a>
</li></ul></dd>
</dl>
<h5>Returns:</h5>
<dl>
<dt>
Type
</dt>
<dd>
<span class="param-type">Promise.<void></span>
</dd>
</dl>
<h4 class="name" id=".downloadAll"><span class="type-signature">(static) </span>downloadAll<span class="signature">(fullUrl)</span><span class="type-signature"> → {Promise.<void>}</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>fullUrl</code></td>
<td class="type">
</td>
<td class="description last">数据服务的地址,如:http://127.0.0.1:8090/iserver/services/data-China400/rest/data/datasources/China400/datasets/City_R。</td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="DataDownloadService.js.html">DataDownloadService.js</a>, <a href="DataDownloadService.js.html#line87">line 87</a>
</li></ul></dd>
</dl>
<h5>Returns:</h5>
<dl>
<dt>
Type
</dt>
<dd>
<span class="param-type">Promise.<void></span>
</dd>
</dl>
<h4 class="name" id=".downloadAllByName"><span class="type-signature">(static) </span>downloadAllByName<span class="signature">(serviceName, datasourceName, datasetName)</span><span class="type-signature"> → {Promise.<void>}</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>serviceName</code></td>
<td class="type">
</td>
<td class="description last">服务名称。</td>
</tr>
<tr>
<td class="name"><code>datasourceName</code></td>
<td class="type">
</td>
<td class="description last">数据源名。</td>
</tr>
<tr>
<td class="name"><code>datasetName</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="DataDownloadService.js.html">DataDownloadService.js</a>, <a href="DataDownloadService.js.html#line103">line 103</a>
</li></ul></dd>
</dl>
<h5>Returns:</h5>
<dl>
<dt>
Type
</dt>
<dd>
<span class="param-type">Promise.<void></span>
</dd>
</dl>
<h4 class="name" id=".downloadByName"><span class="type-signature">(static) </span>downloadByName<span class="signature">(serviceName, datasourceName, datasetName, fromIndex, toIndex)</span><span class="type-signature"> → {Promise.<void>}</span></h4>
<div class="description">
从iServer服务器上下载对象集合。
</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>serviceName</code></td>
<td class="type">
</td>
<td class="description last">服务名称。</td>
</tr>
<tr>
<td class="name"><code>datasourceName</code></td>
<td class="type">
</td>
<td class="description last">数据源名。</td>
</tr>
<tr>
<td class="name"><code>datasetName</code></td>
<td class="type">
</td>
<td class="description last">数据集名。</td>
</tr>
<tr>
<td class="name"><code>fromIndex</code></td>
<td class="type">
</td>
<td class="description last">起始下标。</td>
</tr>
<tr>
<td class="name"><code>toIndex</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="DataDownloadService.js.html">DataDownloadService.js</a>, <a href="DataDownloadService.js.html#line72">line 72</a>
</li></ul></dd>
</dl>
<h5>Returns:</h5>
<dl>
<dt>
Type
</dt>
<dd>
<span class="param-type">Promise.<void></span>
</dd>
</dl>
<h4 class="name" id=".downloadDataset"><span class="type-signature">(static) </span>downloadDataset<span class="signature">(urlDatset, datasource)</span><span class="type-signature"> → {Promise.<void>}</span></h4>
<div class="description">
从服务器上下载一个数据集(支持点、线、面数据集),且在本地数据源中不存在与被下载的数据集同名的数据集,同时会在本地和服务器上创建一个同步属性数据集, 用于记录所下载的数据集在本地被修改的情况。同步数据集的名称为被下载的数据集名加上后缀“_Table”。如果下载失败,将调用ResponseCallback中的requestFaild()方法;如果成功,将调用requestSuccess()方法。
</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>urlDatset</code></td>
<td class="type">
</td>
<td class="description last">dataset在服务器上的地址。</td>
</tr>
<tr>
<td class="name"><code>datasource</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="DataDownloadService.js.html">DataDownloadService.js</a>, <a href="DataDownloadService.js.html#line119">line 119</a>
</li></ul></dd>
</dl>
<h5>Returns:</h5>
<dl>
<dt>
Type
</dt>
<dd>
<span class="param-type">Promise.<void></span>
</dd>
</dl>
<h4 class="name" id=".updateDataset"><span class="type-signature">(static) </span>updateDataset<span class="signature">(urlDatset, dataset)</span><span class="type-signature"> → {Promise.<void>}</span></h4>
<div class="description">
从服务器上更新本地数据集(支持点、线、面数据集),且要求本地存在同步数据集,服务器上存在要下载的数据集及其同步属性数据集。 如果更新失败,将调用ResponseCallback中的requestFaild()方法;如果成功,将调用requestSuccess()方法。
</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>urlDatset</code></td>
<td class="type">
</td>
<td class="description last">数据集在服务器上的地址。</td>
</tr>
<tr>
<td class="name"><code>dataset</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="DataDownloadService.js.html">DataDownloadService.js</a>, <a href="DataDownloadService.js.html#line135">line 135</a>
</li></ul></dd>
</dl>
<h5>Returns:</h5>
<dl>
<dt>
Type
</dt>
<dd>
<span class="param-type">Promise.<void></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:49 GMT+0800 (CST)
</footer>
<script> prettyPrint(); </script>
<script src="scripts/linenumber.js"> </script>
</body>
</html>