This function imports an OSS object into a raster object in ApsaraDB for PostgreSQL that uses Ganos.

Syntax

raster ST_ImportFrom(cstring chunkTableName, cstring url);

Parameters

Parameter Description
chunkTableName The chunk table name, which must comply with the table naming rules of ApsaraDB for PostgreSQL.
u​rl The URL of the external OSS object. For more information, see the description of the url parameter in ST_CreateRast.

Description

This function creates a raster object and imports an external OSS object into the raster object.

Examples

Select ST_ImportFrom('chunk_table','OSS://ABCDEFG:1234567890@oss-cn.aliyuncs.com/mybucket/data/4.tif');