我正在尝试使用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"
谢谢和最好的问候
答案 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"
}
}