プロトコルバッファ (Protobuf) データを軌道データに変換
構文
trajectory ST_TrajFromProtobuf(bytea protobuf);パラメーター
パラメーター | 説明 |
protobuf | Protobufデータ型。 詳細については、「Protobuf definitions」をご参照ください。 |
戻り値
軌道データが返されます。 Protobufデータの解析に失敗した場合、NULLが返されます。
説明
この関数は、Protobufデータを軌道データに変換します。
例
SELECT ST_TrajFromProtobuf(ST_AsProtobuf(st_makeTrajectory('STPOINT'::leaftype, ARRAY[1::float8], ARRAY[2::float8], 4326, ARRAY['2010-01-01 11:30'::timestamp], ARRAY['velocity'], ARRAY[1::int4], NULL, NULL, NULL::anyarray)));
---
st_trajfromprotobuf
---------------------------
{"trajectory":{"version":1,"type":"STPOINT","leafcount":1,"start_time":"2010-01-01 11:30:00","end_time":"2010-01-01 ...