SpatialEdmFunctions.GeographyPolygonFromText Metod

Definition

Skapar en DbFunctionExpression som anropar den kanoniska funktionen GeographyPolygonFromText med de angivna argumenten. polygonWellKnownText måste ha en strängresultattyp, medan coordinateSystemId måste ha en numerisk resultattyp för heltal. Resultattypen för uttrycket är Edm.Geography.

public:
 static System::Data::Common::CommandTrees::DbFunctionExpression ^ GeographyPolygonFromText(System::Data::Common::CommandTrees::DbExpression ^ polygonWellKnownText, System::Data::Common::CommandTrees::DbExpression ^ coordinateSystemId);
public static System.Data.Common.CommandTrees.DbFunctionExpression GeographyPolygonFromText(System.Data.Common.CommandTrees.DbExpression polygonWellKnownText, System.Data.Common.CommandTrees.DbExpression coordinateSystemId);
static member GeographyPolygonFromText : System.Data.Common.CommandTrees.DbExpression * System.Data.Common.CommandTrees.DbExpression -> System.Data.Common.CommandTrees.DbFunctionExpression
Public Function GeographyPolygonFromText (polygonWellKnownText As DbExpression, coordinateSystemId As DbExpression) As DbFunctionExpression

Parametrar

polygonWellKnownText
DbExpression

Ett uttryck som ger den välkända textrepresentationen av geografins polygonvärde.

coordinateSystemId
DbExpression

Ett uttryck som tillhandahåller koordinatsystem-ID (SRID) för det geografiska polygonvärdets koordinatsystem.

Returer

En ny DbFunctionExpression som returnerar ett nytt geografipolygonvärde baserat på de angivna värdena.

Undantag

polygonWellKnownText coordinateSystemId

polygonWellKnownText coordinateSystemId

Gäller för