All Products
Search
Document Center

:ST_TrajFromProtobuf

Last Updated:Jun 25, 2025

Mengonversi data Protocol Buffers (Protobuf) menjadi data trajektori.

Sintaksis

trajectory ST_TrajFromProtobuf(bytea protobuf);

Parameter

Parameter

Deskripsi

protobuf

Tipe data Protobuf. Untuk informasi lebih lanjut, lihat .

Nilai Pengembalian

Mengembalikan data trajektori. Jika data Protobuf gagal diuraikan, nilai NULL dikembalikan.

Deskripsi

Fungsi ini digunakan untuk mengonversi data Protobuf menjadi data trajektori.

Contoh

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 ...