我有类似于下面的 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"
}
]
}