0

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

1 回答 1

0

感谢您发布这个问题。

我们得到了微软产品团队的回复。

目前,我们不支持属性中的数组。

请关注Azure 数字孪生更新、博客和公告,以获取有关即将推出的功能的最新信息。还有产品更新页面

于 2020-10-28T21:22:00.880 回答