SQL Server 2008 Books Online (October 2009)
GeometryCollection

A GeometryCollection is a collection of zero or more geometry or geography instances. A GeometryCollection can be empty.

Examples

The following example instantiates a geometry GeometryCollection with Z values in SRID 1 containing a Point instance and a Polygon instance.

DECLARE @g geometry;
SET @g = geometry::STGeomCollFromText('GEOMETRYCOLLECTION(POINT(3 3 1), POLYGON((0 0 2, 1 10 3, 1 0 4, 0 0 2)))', 1);
See Also

Concepts

Designing and Implementing Spatial Storage (Database Engine)

Help and Information

Getting SQL Server 2008 Assistance
Tags :


Page view tracker