共用方式為


DbSpatialServices.GeographyPointFromText(String, Int32) 方法

定義

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

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

參數

pointWellKnownText
String

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

coordinateSystemId
Int32

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

傳回

以指定的座標系統識別碼所定義的新 DbGeography 值, (SRID) ( DefaultCoordinateSystemId ) 。

適用於