数据介绍
名称:Field Boundaries for Agriculture (fiboa)
说明:这个项目我们已经在6月13日的推文中介绍过,但是这几个月的时间fiboa项目增补了很多数据,因此再发一次。
数据 | 全球农田边界数据项目fiboa介绍, 本地及GEE使用实测, 可转为Shapefile格式
项目主页:https://fiboa.org
GITHUB:https://github.com/fiboa
Field Boundaries for Agriculture (fiboa) 项目旨在全球范围内以统一格式公开田地边界数据。
fiboa 规范是田地边界计划的首个项目,其目标是推动学术界、商业行业、非政府组织和政府之间的合作,采用通用的数据架构,并利用人工智能和地球观测数据创建全球农业田地边界数据集。fiboa 让开发者和数据消费者可以专注于创新,而不必纠结于数据架构和不同来源的映射问题。
欢迎关注我们公众号的GitHub, 总结了很多数据集资源,目前正在建设完善中:
https://github.com/rsdler/Agriculture-Remote-Sensing-Dataset
数据列表(6月13日)
数据列表(最新)
本地使用
-
下载
通过这里下载 https://github.com/fiboa/data
2. 转换数据格式
数据下载下来后是parquet格式,首先通过fiboa官方工具转换为geojson,再转为Esri Shapefile格式。
(1)转为geojson
Python 建议至少为3.9版本,因为要求geopandas版本至少为0.14
pip install geopandas
pip install fiboa-cli
转换格式:
fiboa create-geojson test.parquet -o ./new
new 为自己定义的输出文件夹的名字
(2)转为
Esri Shapefile
import geopandas as gpd
import pandas as pd
geo_df = gpd.read_file("D:/farm2/Feldbloecke/features.json")
for col in geo_df.columns:
if pd.api.types.is_datetime64_any_dtype(geo_df[col]):
geo_df[col] = geo_df[col].astype(str)
geo_df.to_file("D:/farm2/Feldbloecke/Feldbloecke_2024.shp")
3. ArcGIS Pro中查看结果
GEE使用
GEE部分现在有上面数据列表中的uk_fields
var uk_fields = ee.FeatureCollection("projects/sat-io/open-datasets/UK-FIELDS");
Map.centerObject(uk_fields.first(),12)
var empty = ee.Image().byte();
var outline = empty.paint({
featureCollection: uk_fields,
color: 'random',
width: 3
});
Map.addLayer(outline.randomVisualizer(), {opacity:0.8}, 'UK Fields')
Map.setOptions("SATELLITE")
代码:https://code.earthengine.google.com/?scriptPath=users/sat-io/awesome-gee-catalog-examples:agriculture-vegetation-forestry/FIBOA-UK-FIELDS
数据集引用:Bancroft, S., & Wilkins, J. (2024). UKFields (1.0.0) [Data set]. Zenodo. https://doi.org/10.5281/zenodo.11110206