共用方式為


SqlSpatialServices.GeographyFromText 方法

定義

多載

GeographyFromText(String)

根據指定的已知文字值,建立新的 DbGeography 值。

GeographyFromText(String, Int32)

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

GeographyFromText(String)

根據指定的已知文字值,建立新的 DbGeography 值。

public override System.Data.Entity.Spatial.DbGeography GeographyFromText (string wellKnownText);
override this.GeographyFromText : string -> System.Data.Entity.Spatial.DbGeography
Public Overrides Function GeographyFromText (wellKnownText As String) As DbGeography

參數

wellKnownText
String

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

傳回

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

適用於

GeographyFromText(String, Int32)

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

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

參數

wellKnownText
String

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

coordinateSystemId
Int32

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

傳回

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

適用於