ST_summary

更新时间:
复制 MD 格式

Returns a JSON-formatted summary of a pcpatch object, including patch-level metadata and per-dimension statistics.

Syntax

text ST_summary(pcpatch pc);

Parameters

ParameterDescription
pcThe pcpatch object.

Examples

SELECT ST_Summary(pa) FROM patches LIMIT 1;

Output:

{"pcid":1, "npts":9, "srid":4326, "compr":"dimensional","dims":[{"pos":0,"name":"X","size":4,"type":"int32_t","compr":"sigbits","stats":{"min":-126.99,"max":-126.91,"avg":-126.95}},{"pos":1,"name":"Y","size":4,"type":"int32_t","compr":"sigbits","stats":{"min":45.01,"max":45.09,"avg":45.05}},{"pos":2,"name":"Z","size":4,"type":"int32_t","compr":"sigbits","stats":{"min":1,"max":9,"avg":5}},{"pos":3,"name":"Intensity","size":2,"type":"uint16_t","compr":"rle","stats":{"min":0,"max":0,"avg":0}}]}

Output fields

The returned JSON contains the following fields.

Patch-level fields

FieldDescription
pcidThe point cloud schema ID.
nptsThe number of points in the patch.
sridThe spatial reference ID.
comprThe patch-level compression algorithm.
dimsAn array of per-dimension descriptors.

Per-dimension fields (each element of `dims`)

FieldDescription
posThe dimension index (0-based).
nameThe dimension name, for example, X, Y, Z, or Intensity.
sizeThe storage size in bytes.
typeThe data type, for example, int32_t or uint16_t.
comprThe dimension-level compression algorithm.
statsThe statistical summary across all points in the patch, including min, max, and avg values.