SpatialEdmFunctions.GeometryPolygonFromText 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
建立 DbFunctionExpression 一個,並呼叫標準的「GeometryPolygonFromText」函式,並包含指定的參數。
polygonWellKnownText 必須有字串結果型別,而 coordinateSystemId 必須有整數數值結果型別。 表達式的結果類型為Edm.Geometry。
public:
static System::Data::Common::CommandTrees::DbFunctionExpression ^ GeometryPolygonFromText(System::Data::Common::CommandTrees::DbExpression ^ polygonWellKnownText, System::Data::Common::CommandTrees::DbExpression ^ coordinateSystemId);
public static System.Data.Common.CommandTrees.DbFunctionExpression GeometryPolygonFromText(System.Data.Common.CommandTrees.DbExpression polygonWellKnownText, System.Data.Common.CommandTrees.DbExpression coordinateSystemId);
static member GeometryPolygonFromText : System.Data.Common.CommandTrees.DbExpression * System.Data.Common.CommandTrees.DbExpression -> System.Data.Common.CommandTrees.DbFunctionExpression
Public Function GeometryPolygonFromText (polygonWellKnownText As DbExpression, coordinateSystemId As DbExpression) As DbFunctionExpression
參數
- polygonWellKnownText
- DbExpression
一個表達式,提供眾所周知的幾何多邊形值的文字表示。
- coordinateSystemId
- DbExpression
一個表示式,提供幾何多邊形值座標系的座標系 ID(SRID)。
傳回
一個新的 DbFunctionExpression,根據指定的值回傳新的幾何多邊形值。
例外狀況
polygonWellKnownText
coordinateSystemId
polygonWellKnownText
coordinateSystemId