-
通过欧空局提供的Sentinel Hub服务,注册用户账号并创建一个自定义卫星影像图层。
-
在自定义卫星影像图层中设置期望查询的时间范围、位置和分辨率等参数,然后发送RESTful请求获取到影像数据。
-
通过开源框架或专业软件对获取到的遥感影像数据进行处理、解析和分析,提取出目标区域内的建筑轮廓信息。
以下是一个基于Python语言和sentinelsat库使用ESA提供的Sentinel-2 Level-1C产品服务示例:
from sentinelsat import SentinelAPI, read_geojson, geojson_to_wkt
# 全局变量,需替换为你自己的Sentinel Hub API密钥
API_KEY = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
def get_building_contours(geojson_file, platformname, producttype):
'''获取指定GeoJSON区域内的所有建筑轮廓,并返回(ESA推荐)'''
api = SentinelAPI(API_KEY)
footprint = geojson_to_wkt(read_geojson(geojson_file))
products = api.query(footprint,
platformname=platformname,
producttype=producttype)
for product in products:
# 下载 Sentinel-2 Level-1C 影像文件(以zip格式)