STY (geometry)

STY (geometry)#

Returns the Y-coordinate property of a Point instance.

Syntax#

.STY

Return type#

float

Remarks#

The value of this property will be null if the geometry instance is not a point.

This property is read-only.

Example#

Create a Point instance and use STY to retrieve the Y-coordinate of the instance.

DECLARE @g geometry;
SET @g = geometry::STGeomFromText('POINT(3 8)', 0);
SELECT @g.STY;

See Also#