DbSpatialServices.GeographyPolygonFromText(String, Int32) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
根據指定的知名文字值與座標系統識別碼(SRID)建立新的 DbGeography 多邊形值。
public:
abstract System::Data::Spatial::DbGeography ^ GeographyPolygonFromText(System::String ^ polygonWellKnownText, int coordinateSystemId);
public abstract System.Data.Spatial.DbGeography GeographyPolygonFromText(string polygonWellKnownText, int coordinateSystemId);
abstract member GeographyPolygonFromText : string * int -> System.Data.Spatial.DbGeography
Public MustOverride Function GeographyPolygonFromText (polygonWellKnownText As String, coordinateSystemId As Integer) As DbGeography
參數
- polygonWellKnownText
- String
一個包含地理值已知文字表示的字串。
- coordinateSystemId
- Int32
新值應使用的座標系統 DbGeography 識別碼。
傳回
DbGeography由已知文字值定義的新值,並附上指定的座標系統識別碼(SRID)(DefaultCoordinateSystemId)。
例外狀況
polygonWellKnownText
coordinateSystemId