SpatialEdmFunctions.GeometryPolygonFromText Metod
Definition
Viktigt
En del information gäller för förhandsversionen av en produkt och kan komma att ändras avsevärt innan produkten blir allmänt tillgänglig. Microsoft lämnar inga garantier, uttryckliga eller underförstådda, avseende informationen som visas här.
Skapar en DbFunctionExpression som anropar den kanoniska funktionen GeometryPolygonFromText 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.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
Parametrar
- polygonWellKnownText
- DbExpression
Ett uttryck som ger den välkända textrepresentationen av geometripolygonvärdet.
- coordinateSystemId
- DbExpression
Ett uttryck som tillhandahåller koordinatsystem-ID (SRID) för geometripolygonvärdets koordinatsystem.
Returer
En ny DbFunctionExpression som returnerar ett nytt geometripolygonvärde baserat på de angivna värdena.
Undantag
polygonWellKnownText
coordinateSystemId
polygonWellKnownText
coordinateSystemId