我现在需要使用azure数据工厂将Azure CosmosDB中的地理空间数据复制到azure数据湖存储中的文本文件 .
cosmos DB中的空间数据如下:
{
"Longitude": "5.2926",
"Latitude": "60.2219",
"Location": {
"type": "Point",
"coordinates": [
5.2926,
60.2219
]
}
}
首先,我尝试通过ADF直接加载“位置”数据,但由于ADF不支持空间数据格式,因此失败了 .
然后我在ADF的数据集中添加结构,将其指定为字符串:
{
"properties": {
"structure": [
{
"name": "Location.type",
"type": "String"
},
{
"name": "Location.coordinates",
"type": "String"
}
]
}
}
管道工作,但Location.coordinates导出为NULL .
显然,ADF无法识别空间数据,并为导出指定NULL .
有人熟悉这种转移吗?或者如何从空间格式转换为字符串?