问题描述
我的问题是如何在哨兵中心设置请求的地图范围。
现在我要做什么:
我使用带有某些过滤器的哨兵中心api成功发出了请求,例如ndvi,moister索引等。
但是现在我想将此过滤器应用于某些绘制的多边形。我在SentinelHub Dashboar中找到了如何做的方法,在那里我手动设置了地图边界,如下图所示:
我单击更改范围,绘制一些多边形,然后单击保存。
之后,它生成了这个脚本:
然后在操场上,我可以看到参数:
最终结果是这样的:
所以我的问题是我如何才能在请求中使用带有可在请求中设置的点的经过精修的数组。
Add geometry parameters in sentinel hub api
但是当我这样做时,它只显示操场上的绘制形状... 多边形与我绘制的多边形相同。
这是我提出的要求:
<LayersControl.BaseLayer name="Test Request to Sentinel Hub API returning image of polygon">
{/* Add layer over drawed polygon
https://forum.sentinel-hub.com/t/extract-an-aoi-from-a-ndvi-wms/589/16 */}
<WMSTileLayer
layers="MOISTURE_INDEX"
format="image/jpeg"
attribution='© <a href="http://www.sentinel-hub.com/" target="_blank">Sentinel Hub</a>'
url="https://services.sentinel-hub.com/ogc/wms/5fbea5fa-d1e4-4d92-b262-d4fc2c853f81"
urlProcessingApi="https://services.sentinel-hub.com/ogc/wms/aeafc74a-c894-440b-a85b-964c7b26e471"
maxcc="20"
minZoom="6"
maxZoom="16"
transparent="1"
type="Multipolygon"
coordinates={polygon}
preset="MOISTURE_INDEX"
time="2020-04-01/2020-10-11 "
/>
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)