MATLAB打开geojson,Export to GeoJSON

Traffic Signal Phases in GeoJSON

Most of the information in the GeoJSON files describe the geometry of a scene. The

Phases sections of these files describe the traffic light phases

of signals at each junction.

Consider a junction with three signal phases, with each one containing

green-yellow-red intervals of varying durations. This figure shows such a sample phase

as it appears in the 2D Editor.

e23ce4dece28b855b77e6ba1c011dd3c.png

This GeoJSON snippet corresponds to the first traffic phase. Some of the data for this

phase has been omitted for clarity.

"Phases": [

{

"Intervals": [

{

"BulbStates": [

{

"Id": "{8bedd7ab-7e17-4177-b095-ddca457e6985}",

"On": false,

"SignalId": "{cc65a9c4-f47c-465b-8a8f-ae7c7e2aca50}"

},

.

.

.

],

"GateStates": [

{

"Id": "{3233fba0-a5b6-4f09-a442-2e0ddc07c4c0}",

"State": "Go"

},

.

.

.

],

"Time": 10,

"Type": "Green"

},

{

"BulbStates": [

{

"Id": "{8bedd7ab-7e17-4177-b095-ddca457e6985}",

"On": false,

"SignalId": "{cc65a9c4-f47c-465b-8a8f-ae7c7e2aca50}"

},

.

.

.

],

"GateStates": [

{

"Id": "{3233fba0-a5b6-4f09-a442-2e0ddc07c4c0}",

"State": "Go"

},

.

.

.

],

"Time": 4,

"Type": "Yellow"

},

{

"BulbStates": [

{

"Id": "{8bedd7ab-7e17-4177-b095-ddca457e6985}",

"On": true,

"SignalId": "{cc65a9c4-f47c-465b-8a8f-ae7c7e2aca50}"

},

.

.

.

],

"GateStates": [

{

"Id": "{3233fba0-a5b6-4f09-a442-2e0ddc07c4c0}",

"State": "Stop"

},

.

.

.

],

"Time": 1,

"Type": "Red"

}

]

},

{

"Intervals": [

.

.

.

]

The Time and Type values specify that the first

phase has a green interval that lasts 10 seconds, a yellow interval that lasts 4

seconds, and a red interval that lasts 1 second.

Each BulbStates section lists the unique ID of a traffic light bulb

in the scene. In full GeoJSON files, you can find the bulb specification by searching

for this ID. In the first (green) interval, the first bulb in

BulbStates has an ID of

8bedd7ab-7e17-4177-b095-ddca457e6985 with its

"On" state set to false. In the full GeoJSON

file (not shown here), this bulb is specified as being light red. Therefore, it is

expected that the bulb is off at this phase. In the GeoJSON file snippet, you can see

that the bulb with this ID is also off in the second (yellow) interval but is then on in

the third (red) interval.

Each GateStates section lists the unique ID of a maneuver gate in

the junction and what its state is during each interval. As with the bulbs in the

BulbStates sections, the gates in the

GateStates sections are repeated in each interval, with only the

states differing at each interval.

Though not shown in this GeoJSON snippet, the full GeoJSON file includes two additional

Intervals sections for the two remaining intervals in the

phase.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值