刮擦在线地图

时间:2020-10-29 09:16:44

标签: r web-scraping geospatial

我正在尝试找到一种方法,可以从以下网站抓取保护区的空间多边形:http://datazone.birdlife.org/site/factsheet/adamello-brenta-iba-italy/map。但是,我还没有弄清楚该怎么做。是否有人建议如何开始该过程?可能在R或QGIS环境中。

1 个答案:

答案 0 :(得分:0)

该服务器提供了WFS access以及WMS,因此您只需使用以下网址即可下载数据:

http://birdlaa8.miniserver.com:8080/geoserver/wfs?SERVICE=WFS&REQUEST=GetFeature&VERSION=2.0.0&TYPENAMES=birdlife_dz:IbaMapGlobal_POL_wm_20200930_selected&TYPENAME=birdlife_dz:IbaMapGlobal_POL_wm_20200930_selected

您可以选择以下任何一种输出格式:

<ows:Parameter name="outputFormat">
<ows:Value>text/xml; subtype=gml/3.1.1</ows:Value>
<ows:Value>GML2</ows:Value>
<ows:Value>KML</ows:Value>
<ows:Value>SHAPE-ZIP</ows:Value>
<ows:Value>application/gml+xml; version=3.2</ows:Value>
<ows:Value>application/json</ows:Value>
<ows:Value>application/vnd.google-earth.kml xml</ows:Value>
<ows:Value>application/vnd.google-earth.kml+xml</ows:Value>
<ows:Value>csv</ows:Value>
<ows:Value>gml3</ows:Value>
<ows:Value>gml32</ows:Value>
<ows:Value>json</ows:Value>
<ows:Value>text/xml; subtype=gml/2.1.2</ows:Value>
<ows:Value>text/xml; subtype=gml/3.2</ows:Value>
</ows:Parameter>
</ows:Operation>

通过在网址末尾添加&outputformat=csv