SqlGeography.Parse 메서드

SQL Server 2012

Returns a SqlGeography instance from an Open Geospatial Consortium (OGC) Well-Known Text (WKT) representation.

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

[SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)]
public static SqlGeography Parse(
	SqlString s
)

매개 변수

s
유형: System.Data.SqlTypes.SqlString
The WKT representation of the SqlGeography instance you wish to return.

반환 값

유형: Microsoft.SqlServer.Types.SqlGeography
A SqlGeography value constructed from the specified WKT representation.

The Parse method is equivalent to STGeomFromText except that it assumes a spatial reference ID (SRID) of 4326 as a parameter. The input may carry optional Z (elevation) and M (measure) values.

커뮤니티 추가 항목

추가
표시: