全部產品
Search
文件中心

PolarDB:ST_ImportGLB

更新時間:Jul 06, 2024

將glb檔案匯入到資料庫中。

文法

  • 文法一:

    boolean ST_ImportGLB(text table_name, text url,  text id, text options default '{}');
  • 文法二:

    boolean ST_ImportGLB(text table_name, bytea content,  text id, text options default '{}');

參數

參數名稱

描述

table_name

glb表名及其拆分表首碼。

url

如果glb檔案儲存體在OSS等Object Storage Service服務中,使用此參數。更多資訊,請參見Object Storage Service服務路徑

id

glb唯一標識。

content

如果通過二進位方式提供glb檔案,使用此參數,與參數url任選其一即可。

options

匯入選項:

  • schema

  • flip_y_z

  • split_meshgeom

  • split_texture

  • sfmesh_column

  • gltf_id_column

描述

將glb檔案匯入到資料庫中。

使用方法和options參數與ST_ImportGLTF函數一致。

樣本

SELECT ST_ImportGLB('test_glb', 'OSS://<ak>:<ak_secret>@oss-cn-beijing-internal.aliyuncs.com/mybucket/path_to_glb.glb', 'my_glb');

---------
t