共用方式為


SqlSpatialServices.GeographyPointFromText(String, Int32) 方法

定義

根據指定的已知文字值和座標系統識別項 (SRID),建立新的 DbGeography 點值。

public override System.Data.Entity.Spatial.DbGeography GeographyPointFromText(string pointWellKnownText, int coordinateSystemId);
override this.GeographyPointFromText : string * int -> System.Data.Entity.Spatial.DbGeography
Public Overrides Function GeographyPointFromText (pointWellKnownText As String, coordinateSystemId As Integer) As DbGeography

參數

pointWellKnownText
String

包含地理位置值之已知文字表示的字串。

coordinateSystemId
Int32

新的 DbGeography 值應該使用的座標系統的識別項。

傳回

由已知文字值所定義的新 DbGeography 值,其指定的座標系統識別碼 (SRID) ( DefaultCoordinateSystemId ) 。

適用於