This function computes the average values of all the attribute dimensions for all the pcpoint objects in a pcpatch object and returns a new pcpoint object whose attribute dimensions are set to these average values.
Syntax
pcpoint ST_patchAvg(pcpatch pc);
Parameters
Parameter | Description |
---|---|
pc | The pcpatch object. |
Examples
SELECT ST_AsText(ST_PatchAvg(pa)) FROM patches WHERE id = 7;
-------------------------------------
{"pcid":1,"pt":[-126.46,45.54,54.5,5]}