森林火险综合监测站成果数据2-历史图层
<h5>请求URL</h5>
<ul>
<li><code>http://47.94.86.249/system/api/layer/layerlist?layerType=gc&amp;adcode=230000&amp;beginTime=2023-11-08 00:00:00&amp;endTime=2023-11-09 00:00:00</code> </li>
</ul>
<h5>请求方式</h5>
<ul>
<li>get</li>
</ul>
<h3>参数说明</h3>
<table>
<thead>
<tr>
<th>参数名称</th>
<th>类型</th>
<th>是否必需</th>
<th>描述</th>
</tr>
</thead>
<tbody>
<tr>
<td>layerType</td>
<td>string</td>
<td>yes</td>
<td>图层类别(gc:综合推演行政区预警、mc:实况风险行政区预警、ml:综合推演含水率、meml:实况监测含水率、danger:综合推演精细化、medanger:实况风险精细化)geoserver地址(<a href="http://47.94.86.249:8080/geoserver/">http://47.94.86.249:8080/geoserver/</a>)</td>
</tr>
<tr>
<td>adcode</td>
<td>string</td>
<td>no</td>
<td></td>
</tr>
<tr>
<td>beginTime</td>
<td>string</td>
<td>no</td>
<td>开始时间</td>
</tr>
<tr>
<td>endTime</td>
<td>string</td>
<td>no</td>
<td>结束时间</td>
</tr>
</tbody>
</table>
<h3>请求头</h3>
<table>
<thead>
<tr>
<th>请求头名称</th>
<th>位置</th>
<th>类型</th>
<th>是否必需</th>
<th>描述</th>
</tr>
</thead>
<tbody>
<tr>
<td>Authorization</td>
<td>header</td>
<td>string</td>
<td>yes</td>
<td>tokenHead,token,返回令牌用于请求 拼接成成tokenHead+空格+token</td>
</tr>
</tbody>
</table>
<p>例:"Bearer eyJzdWIiOiJianhmeHlhZG1pbiIsImNyZWF0ZWQiOjE3MDg1ODM4NDQ4NjIsImV4cCI6MTcwODY4Mzg0NH0"</p>
<h5>返回示例</h5>
<pre><code>{
&quot;msg&quot;: &quot;操作成功&quot;,
&quot;code&quot;: 200,
&quot;data&quot;: [
{
&quot;layerId&quot;: 419226,
&quot;layerName&quot;: &quot;HeiLongJiang20231108000808&quot;,
&quot;layerProvince&quot;: &quot;5&quot;,
&quot;workSpace&quot;: &quot;2&quot;,
&quot;styleName&quot;: null,
&quot;address&quot;: &quot;/HeiLongJiang/GC/gc2023110800.json&quot;,
&quot;storeName&quot;: null,
&quot;layerType&quot;: &quot;gc&quot;,
&quot;updateTime&quot;: &quot;2023-11-07T16:08:09.000+00:00&quot;
},
{
&quot;layerId&quot;: 419496,
&quot;layerName&quot;: &quot;HeiLongJiang20231108011041&quot;,
&quot;layerProvince&quot;: &quot;5&quot;,
&quot;workSpace&quot;: &quot;2&quot;,
&quot;styleName&quot;: null,
&quot;address&quot;: &quot;/HeiLongJiang/GC/gc2023110801.json&quot;,
&quot;storeName&quot;: null,
&quot;layerType&quot;: &quot;gc&quot;,
&quot;updateTime&quot;: &quot;2023-11-07T17:10:41.000+00:00&quot;
}
]
}</code></pre>
<table>
<thead>
<tr>
<th>名称</th>
<th style="text-align: left;">类型</th>
<th>是否必需</th>
<th>描述</th>
</tr>
</thead>
<tbody>
<tr>
<td>»msg</td>
<td style="text-align: left;">string</td>
<td>true</td>
<td>none</td>
</tr>
<tr>
<td>»code</td>
<td style="text-align: left;">integer</td>
<td>true</td>
<td>none</td>
</tr>
<tr>
<td>»data</td>
<td style="text-align: left;">object</td>
<td>true</td>
<td>[{layerName:图层名称,updateTime:报告时间(+0时区,需要+8个小时),layerProvince:工作区}]</td>
</tr>
<tr>
<td>» total</td>
<td style="text-align: left;">integer</td>
<td>true</td>
<td>条数</td>
</tr>
</tbody>
</table>
<h3>访问方式-直接访问</h3>
<p>"<a href="http://101.35.217.133:6720/imgfile"+address">http://101.35.217.133:6720/imgfile"+address</a></p>
<h3>gc、mc类别</h3>
<h3>访问方式-GIS引擎</h3>
<h3>openlayers加载示例</h3>
<pre><code>
var jsonlayer = new ol.layer.Vector({
source: new ol.source.Vector({
url: 'http://101.35.217.133:6720/imgfile'+address,
format: new ol.format.GeoJSON({
dataProjection: 'EPSG:4326'
})
}),
style: new ol.style.Style({
fill: new ol.style.Fill({
color:'rgba(255,255,255,0)',
}),
stroke: new ol.style.Stroke({
color: 'rgba(80,80,80,1)',
width: 1.0
})
}),
zIndex:10
});
</code></pre>
<h3>ml、meml、danger、medanger类别</h3>
<h3>访问方式-GIS引擎</h3>
<h3>openlayers加载示例</h3>
<pre><code>var wmslayer = new Image({
source: new ImageWMS({
ratio: 1,
url: 'http://101.35.217.133:6717/geoserver/' + layerProvince + '/wms',
params: {
&quot;LAYERS&quot;: layerProvince + &quot;:&quot; + layerName,
'FORMAT': &quot;image/png&quot;
}
}),
zIndex: 10
});
区域火险等级评估的结构化数据:&quot;http://101.35.217.133:6720/imgfile&quot;+address name:地名、ml:含水率、danger:等级(1-5级)json文件
网格火险等级评估和网格含水率的结构化数据 :&quot;http://101.35.217.133:6720/imgfile&quot;+address shp压缩包文件
</code></pre>