Orion是否支持GeoJSON格式?

时间:2017-10-10 09:04:50

标签: fiware fiware-orion

我正在尝试使用GeoJSON创建一个实体位置:

{
 "id": "1234",
 "name": "test",
 "type": "TestDevice",

   "location": {
    "value": {
      "type": "Point",
      "coordinates": [2.186447514, 41.3763726, 143.148]
    },
    "type": "geo:json"
  }
}

但是我收到了这个错误:

{
    "error": "BadRequest",
    "description": "attribute must be a JSON object, unless keyValues option is used"
}

Orion支持GeoJSON吗?

我在码头上使用猎户座:

 "version": "1.8.0-next"

谢谢和最好的问候

1 个答案:

答案 0 :(得分:1)

这不是geo:json支持的问题 它是导致此问题的属性名称。它应该如下:

{
 "id": "1234",
 "name": {
    "value": "test",
    "type": "String"
  },
 "type": "TestDevice",

   "location": {
    "value": {
      "type": "Point",
      "coordinates": [2.186447514, 41.3763726, 143.148]
    },
    "type": "geo:json"
  }
}