问题描述
我有与下面类似的DTDL模型。我可以将Json用作字符串并存储lat,long值。但是,
如何使用对象存储纬度较长的位置。
{
"@id": "dtmi:DigitalTwins:BasicInfra;2","@type": "Interface","displayName": "BasicInfra interface model","@context": "dtmi:dtdl:context;2","contents": [
{
"@type": "Property","name": "name","schema": "string"
},{
"@type": "Property","name": "location","description": "polygon/polyLine Format Location","schema": {
"@type": "Object","fields": [
{
"name": "x","schema": "double"
},{
"name": "y","schema": "double"
}
]
}
},{
"@type": "Relationship","name": "contains"
}
]
}
解决方法
感谢您发布此问题。
我们收到了Microsoft产品团队的回复。
目前,我们不支持属性中的数组。
请关注Azure Digital Twins updates,blogs,and announcements,以获取有关即将推出的功能的最新信息。还有Product Updates page。