ST_GeometryN(INT) method

Returns the nth geometry in the geometry collection.

Syntax

geomcollection-expression.ST_GeometryN(INT n)

Parameters

Returns

ST_Geometry Returns the nth geometry in the geometry collection.

Examples

Standards

SQL/MM (ISO/IEC 13249-3: 2006) 9.1.5