This function transforms a pcpatch object based on a new schema and returns a new pcpatch object.

Syntax

pcpatch ST_transform(pcpatch pc, integer pcid, float8 def default 0.0);

Parameters

Parameter Description
pc The pcpatch object.
pcid The ID of the new schema, which comes from the pointcloud_formats table.
def The specified value. Attribute dimensions that exist in the new schema but not in the old schema are set to this value. The default value is 0.0.

Description

Different from the ST_setPcid function, the ST_transform function returns a new pcpatch object based on the different dimension interpretations, scales, or offsets in the new schema.

Examples

update patches set pa=ST_transform(pa, 2, 0.0);
--------------------------------------
(1 rows)