SqlGeometry.STPointN 메서드

SQL Server 2012

Returns a specified point in a SqlGeometry instance.

네임스페이스:  Microsoft.SqlServer.Types
어셈블리:  Microsoft.SqlServer.Types(Microsoft.SqlServer.Types.dll)

[SqlMethodAttribute(IsDeterministic = true, IsPrecise = true)]
public SqlGeometry STPointN(
	int n
)

매개 변수

n
유형: System.Int32
An int expression between 1 and the number of points in the SqlGeometry instance.

반환 값

유형: Microsoft.SqlServer.Types.SqlGeometry
A SqlGeometry that represents the specified point in the calling instance.

If a SqlGeometry instance is user created, STPointN returns the point specified by expression by ordering the points in the order in which they were originally input.

If a SqlGeometry instance was constructed by the system, STPointN returns the point specified by expression by ordering all the points in the same order they would be output: first by geometry, then by ring within the geometry (if appropriate), and then by point within the ring. This order is deterministic.

If this method is called with a value less than 1, it throws an ArgumentOutOfRangeException.

If this method is called with a value greater than the number of points in the instance, it returns null.

커뮤니티 추가 항목

추가
표시: