語言

DbSpatialServices.GeographyFromText 方法

定義

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

多載

名稱 Description
GeographyFromText(String)

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

GeographyFromText(String, Int32)

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

GeographyFromText(String)

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

public:
 abstract System::Data::Spatial::DbGeography ^ GeographyFromText(System::String ^ wellKnownText);
public abstract System.Data.Spatial.DbGeography GeographyFromText(string wellKnownText);
abstract member GeographyFromText : string -> System.Data.Spatial.DbGeography
Public MustOverride Function GeographyFromText (wellKnownText As String) As DbGeography

參數

wellKnownText
String

一個包含地理值已知文字表示的字串。

傳回

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

例外狀況

wellKnownText

適用於

GeographyFromText(String, Int32)

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

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

參數

wellKnownText
String

一個包含地理值已知文字表示的字串。

coordinateSystemId
Int32

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

傳回

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

例外狀況

wellKnownText

coordinateSystemId

適用於