# SpatialEdmFunctions Class

**.NET Framework (current version)**

Provides an API to construct DbExpressions that invoke spatial realted canonical EDM functions, and, where appropriate, allows that API to be accessed as extension methods on the expression type itself.

**Namespace:**System.Data.Common.CommandTrees.ExpressionBuilder.Spatial

**Assembly:**System.Data.Entity (in System.Data.Entity.dll)

Name | Description | |
---|---|---|

Area(DbExpression) | Creates a DbFunctionExpression that invokes the canonical 'Area' function with the specified argument, which must have an Edm.Geography or Edm.Geometry result type. The result type of the expression is Edm.Double. | |

AsBinary(DbExpression) | Creates a DbFunctionExpression that invokes the canonical 'AsBinary' function with the specified argument, which must have an Edm.Geography or Edm.Geometry result type. The result type of the expression is Edm.Binary. | |

AsGml(DbExpression) | Creates a DbFunctionExpression that invokes the canonical 'AsGml' function with the specified argument, which must have an Edm.Geography or Edm.Geometry result type. The result type of the expression is Edm.String. | |

AsText(DbExpression) | Creates a DbFunctionExpression that invokes the canonical 'AsText' function with the specified argument, which must have an Edm.Geography or Edm.Geometry result type. The result type of the expression is Edm.String. | |

Centroid(DbExpression) | Creates a DbFunctionExpression that invokes the canonical 'Centroid' function with the specified argument, which must have an Edm.Geometry result type. The result type of the expression is Edm.Geometry. | |

CoordinateSystemId(DbExpression) | Creates a DbFunctionExpression that invokes the canonical 'CoordinateSystemId' function with the specified argument, which must have an Edm.Geography or Edm.Geometry result type. The result type of the expression is Edm.Int32. | |

Distance(DbExpression, DbExpression) | Creates a DbFunctionExpression that invokes the canonical 'Distance' function with the specified arguments, which must each have an Edm.Geography or Edm.Geometry result type. The result type of | |

Elevation(DbExpression) | Creates a DbFunctionExpression that invokes the canonical 'Elevation' function with the specified argument, which must have an Edm.Geography or Edm.Geometry result type. The result type of the expression is Edm.Double. | |

EndPoint(DbExpression) | Creates a DbFunctionExpression that invokes the canonical 'EndPoint' function with the specified argument, which must have an Edm.Geography or Edm.Geometry result type. The result type is the same as that of | |

ExteriorRing(DbExpression) | Creates a DbFunctionExpression that invokes the canonical 'ExteriorRing' function with the specified argument, which must have an Edm.Geometry result type. The result type of the expression is Edm.Geometry. | |

GeographyCollectionFromBinary(DbExpression, DbExpression) | Creates a DbFunctionExpression that invokes the canonical 'GeographyCollectionFromBinary' function with the specified arguments. | |

GeographyCollectionFromText(DbExpression, DbExpression) | Creates a DbFunctionExpression that invokes the canonical 'GeographyCollectionFromText' function with the specified arguments. | |

GeographyFromBinary(DbExpression) | Creates a DbFunctionExpression that invokes the canonical 'GeographyFromBinary' function with the specified argument, which must have a binary result type. The result type of the expression is Edm.Geography. | |

GeographyFromBinary(DbExpression, DbExpression) | Creates a DbFunctionExpression that invokes the canonical 'GeographyFromBinary' function with the specified arguments. | |

GeographyFromGml(DbExpression) | Creates a DbFunctionExpression that invokes the canonical 'GeographyFromGml' function with the specified argument, which must have a string result type. The result type of the expression is Edm.Geography. | |

GeographyFromGml(DbExpression, DbExpression) | Creates a DbFunctionExpression that invokes the canonical 'GeographyFromGml' function with the specified arguments. | |

GeographyFromText(DbExpression) | Creates a DbFunctionExpression that invokes the canonical 'GeographyFromText' function with the specified argument, which must have a string result type. The result type of the expression is Edm.Geography. Its value has the default coordinate system id (SRID) of the underlying provider. | |

GeographyFromText(DbExpression, DbExpression) | Creates a DbFunctionExpression that invokes the canonical 'GeographyFromText' function with the specified arguments. | |

GeographyLineFromBinary(DbExpression, DbExpression) | Creates a DbFunctionExpression that invokes the canonical 'GeographyLineFromBinary' function with the specified arguments. | |

GeographyLineFromText(DbExpression, DbExpression) | Creates a DbFunctionExpression that invokes the canonical 'GeographyLineFromText' function with the specified arguments. | |

GeographyMultiLineFromBinary(DbExpression, DbExpression) | Creates a DbFunctionExpression that invokes the canonical 'GeographyMultiLineFromBinary' function with the specified arguments. | |

GeographyMultiLineFromText(DbExpression, DbExpression) | Creates a DbFunctionExpression that invokes the canonical 'GeographyMultiLineFromText' function with the specified arguments. | |

GeographyMultiPointFromBinary(DbExpression, DbExpression) | Creates a DbFunctionExpression that invokes the canonical 'GeographyMultiPointFromBinary' function with the specified arguments. | |

GeographyMultiPointFromText(DbExpression, DbExpression) | Creates a DbFunctionExpression that invokes the canonical 'GeographyMultiPointFromText' function with the specified arguments. | |

GeographyMultiPolygonFromBinary(DbExpression, DbExpression) | Creates a DbFunctionExpression that invokes the canonical 'GeographyMultiPolygonFromBinary' function with the specified arguments. | |

GeographyMultiPolygonFromText(DbExpression, DbExpression) | Creates a DbFunctionExpression that invokes the canonical 'GeographyMultiPolygonFromText' function with the specified arguments. | |

GeographyPointFromBinary(DbExpression, DbExpression) | Creates a DbFunctionExpression that invokes the canonical 'GeographyPointFromBinary' function with the specified arguments. | |

GeographyPointFromText(DbExpression, DbExpression) | Creates a DbFunctionExpression that invokes the canonical 'GeographyPointFromText' function with the specified arguments. | |

GeographyPolygonFromBinary(DbExpression, DbExpression) | Creates a DbFunctionExpression that invokes the canonical 'GeographyPolygonFromBinary' function with the specified arguments. | |

GeographyPolygonFromText(DbExpression, DbExpression) | Creates a DbFunctionExpression that invokes the canonical 'GeographyPolygonFromText' function with the specified arguments. | |

GeometryCollectionFromBinary(DbExpression, DbExpression) | Creates a DbFunctionExpression that invokes the canonical 'GeometryCollectionFromBinary' function with the specified arguments. | |

GeometryCollectionFromText(DbExpression, DbExpression) | Creates a DbFunctionExpression that invokes the canonical 'GeometryCollectionFromText' function with the specified arguments. | |

GeometryFromBinary(DbExpression) | Creates a DbFunctionExpression that invokes the canonical 'GeometryFromBinary' function with the specified argument, which must have a binary result type. The result type of the expression is Edm.Geometry. | |

GeometryFromBinary(DbExpression, DbExpression) | Creates a DbFunctionExpression that invokes the canonical 'GeometryFromBinary' function with the specified arguments. | |

GeometryFromGml(DbExpression) | Creates a DbFunctionExpression that invokes the canonical 'GeometryFromGml' function with the specified argument, which must have a string result type. The result type of the expression is Edm.Geometry. | |

GeometryFromGml(DbExpression, DbExpression) | Creates a DbFunctionExpression that invokes the canonical 'GeometryFromGml' function with the specified arguments. | |

GeometryFromText(DbExpression) | Creates a DbFunctionExpression that invokes the canonical 'GeometryFromText' function with the specified argument, which must have a string result type. The result type of the expression is Edm.Geometry. Its value has the default coordinate system id (SRID) of the underlying provider. | |

GeometryFromText(DbExpression, DbExpression) | Creates a DbFunctionExpression that invokes the canonical 'GeometryFromText' function with the specified arguments. | |

GeometryLineFromBinary(DbExpression, DbExpression) | Creates a DbFunctionExpression that invokes the canonical 'GeometryLineFromBinary' function with the specified arguments. | |

GeometryLineFromText(DbExpression, DbExpression) | Creates a DbFunctionExpression that invokes the canonical 'GeometryLineFromText' function with the specified arguments. | |

GeometryMultiLineFromBinary(DbExpression, DbExpression) | Creates a DbFunctionExpression that invokes the canonical 'GeometryMultiLineFromBinary' function with the specified arguments. | |

GeometryMultiLineFromText(DbExpression, DbExpression) | Creates a DbFunctionExpression that invokes the canonical 'GeometryMultiLineFromText' function with the specified arguments. | |

GeometryMultiPointFromBinary(DbExpression, DbExpression) | Creates a DbFunctionExpression that invokes the canonical 'GeometryMultiPointFromBinary' function with the specified arguments. | |

GeometryMultiPointFromText(DbExpression, DbExpression) | Creates a DbFunctionExpression that invokes the canonical 'GeometryMultiPointFromText' function with the specified arguments. | |

GeometryMultiPolygonFromBinary(DbExpression, DbExpression) | Creates a DbFunctionExpression that invokes the canonical 'GeometryMultiPolygonFromBinary' function with the specified arguments. | |

GeometryMultiPolygonFromText(DbExpression, DbExpression) | Creates a DbFunctionExpression that invokes the canonical 'GeometryMultiPolygonFromText' function with the specified arguments. | |

GeometryPointFromBinary(DbExpression, DbExpression) | Creates a DbFunctionExpression that invokes the canonical 'GeometryPointFromBinary' function with the specified arguments. | |

GeometryPointFromText(DbExpression, DbExpression) | Creates a DbFunctionExpression that invokes the canonical 'GeometryPointFromText' function with the specified arguments. | |

GeometryPolygonFromBinary(DbExpression, DbExpression) | Creates a DbFunctionExpression that invokes the canonical 'GeometryPolygonFromBinary' function with the specified arguments. | |

GeometryPolygonFromText(DbExpression, DbExpression) | Creates a DbFunctionExpression that invokes the canonical 'GeometryPolygonFromText' function with the specified arguments. | |

InteriorRingAt(DbExpression, DbExpression) | Creates a DbFunctionExpression that invokes the canonical 'InteriorRingAt' function with the specified arguments. The first argument must have an Edm.Geometry result type. The second argument must have an integer numeric result types. The result type of the expression is Edm.Geometry. | |

InteriorRingCount(DbExpression) | Creates a DbFunctionExpression that invokes the canonical 'InteriorRingCount' function with the specified argument, which must have an Edm.Geometry result type. The result type of the expression is Edm.Int32. | |

IsClosedSpatial(DbExpression) | Creates a DbFunctionExpression that invokes the canonical 'IsClosedSpatial' function with the specified argument, which must have an Edm.Geography or Edm.Geometry result type. The result type is Edm.Boolean. | |

IsEmptySpatial(DbExpression) | Creates a DbFunctionExpression that invokes the canonical 'IsEmptySpatial' function with the specified argument, which must have an Edm.Geography or Edm.Geometry result type. The result type of the expression is Edm.Boolean. | |

IsRing(DbExpression) | Creates a DbFunctionExpression that invokes the canonical 'IsRing' function with the specified argument, which must have an Edm.Geometry result type. The result type is Edm.Boolean. | |

IsSimpleGeometry(DbExpression) | Creates a DbFunctionExpression that invokes the canonical 'IsSimpleGeometry' function with the specified argument, which must have an Edm.Geometry result type. The result type of the expression is Edm.Boolean. | |

IsValidGeometry(DbExpression) | Creates a DbFunctionExpression that invokes the canonical 'IsValidGeometry' function with the specified argument, which must have an Edm.Geometry result type. The result type of the expression is Edm.Boolean. | |

Latitude(DbExpression) | Creates a DbFunctionExpression that invokes the canonical 'Latitude' function with the specified argument, which must have an Edm.Geography result type. The result type of the expression is Edm.Double. | |

Longitude(DbExpression) | Creates a DbFunctionExpression that invokes the canonical 'Longitude' function with the specified argument, which must have an Edm.Geography result type. The result type of the expression is Edm.Double. | |

Measure(DbExpression) | Creates a DbFunctionExpression that invokes the canonical 'Measure' function with the specified argument, which must have an Edm.Geography or Edm.Geometry result type. The result type of the expression is Edm.Double. | |

PointAt(DbExpression, DbExpression) | Creates a DbFunctionExpression that invokes the canonical 'PointAt' function with the specified arguments. The first argument must have an Edm.Geography or Edm.Geometry result type. The second argument must have an integer numeric result type. The result type of the expression is the same as that of | |

PointCount(DbExpression) | Creates a DbFunctionExpression that invokes the canonical 'PointCount' function with the specified argument, which must have an Edm.Geography or Edm.Geometry result type. The result type of the expression is Edm.Int32. | |

PointOnSurface(DbExpression) | Creates a DbFunctionExpression that invokes the canonical 'PointOnSurface' function with the specified argument, which must have an Edm.Geometry result type. The result type of the expression is Edm.Geometry. | |

SpatialBoundary(DbExpression) | Creates a DbFunctionExpression that invokes the canonical 'SpatialBoundary' function with the specified argument, which must have an Edm.Geometry result type. The result type of the expression is Edm.Geometry. | |

SpatialBuffer(DbExpression, DbExpression) | Creates a DbFunctionExpression that invokes the canonical 'SpatialBuffer' function with the specified arguments, which must have a Edm.Geography or Edm.Geometry and Edm.Double result types. The result type of the expression is Edm.Geometry. | |

SpatialContains(DbExpression, DbExpression) | Creates a DbFunctionExpression that invokes the canonical 'SpatialContains' function with the specified arguments, which must each have an Edm.Geometry result type. The result type of the expression is Edm.Boolean. | |

SpatialConvexHull(DbExpression) | Creates a DbFunctionExpression that invokes the canonical 'SpatialConvexHull' function with the specified argument, which must have an Edm.Geometry result type. The result type of the expression is Edm.Geometry. | |

SpatialCrosses(DbExpression, DbExpression) | Creates a DbFunctionExpression that invokes the canonical 'SpatialCrosses' function with the specified arguments, which must each have an Edm.Geometry result type. The result type of the expression is Edm.Boolean. | |

SpatialDifference(DbExpression, DbExpression) | Creates a DbFunctionExpression that invokes the canonical 'SpatialDifference' function with the specified arguments, which must each have an Edm.Geography or Edm.Geometry result type. The result type of | |

SpatialDimension(DbExpression) | Creates a DbFunctionExpression that invokes the canonical 'SpatialDimension' function with the specified argument, which must have an Edm.Geography or Edm.Geometry result type. The result type of the expression is Edm.Int32. | |

SpatialDisjoint(DbExpression, DbExpression) | Creates a DbFunctionExpression that invokes the canonical 'SpatialDisjoint' function with the specified arguments, which must each have an Edm.Geography or Edm.Geometry result type. The result type of | |

SpatialElementAt(DbExpression, DbExpression) | Creates a DbFunctionExpression that invokes the canonical 'SpatialElementAt' function with the specified arguments. The first argument must have an Edm.Geography or Edm.Geometry result type. The second argument must have an integer numeric result type. The result type of the expression is the same as that of | |

SpatialElementCount(DbExpression) | Creates a DbFunctionExpression that invokes the canonical 'SpatialElementCount' function with the specified argument, which must have an Edm.Geography or Edm.Geometry result type. The result type of the expression is Edm.Int32. | |

SpatialEnvelope(DbExpression) | Creates a DbFunctionExpression that invokes the canonical 'SpatialEnvelope' function with the specified argument, which must have an Edm.Geometry result type. The result type of the expression is Edm.Geometry. | |

SpatialEquals(DbExpression, DbExpression) | Creates a DbFunctionExpression that invokes the canonical 'SpatialEquals' function with the specified arguments, which must each have an Edm.Geography or Edm.Geometry result type. The result type of | |

SpatialIntersection(DbExpression, DbExpression) | Creates a DbFunctionExpression that invokes the canonical 'SpatialIntersection' function with the specified arguments, which must each have an Edm.Geography or Edm.Geometry result type. The result type of | |

SpatialIntersects(DbExpression, DbExpression) | Creates a DbFunctionExpression that invokes the canonical 'SpatialIntersects' function with the specified arguments, which must each have an Edm.Geography or Edm.Geometry result type. The result type of | |

SpatialLength(DbExpression) | Creates a DbFunctionExpression that invokes the canonical 'SpatialLength' function with the specified argument, which must have an Edm.Geography or Edm.Geometry result type. The result type of the expression is Edm.Double. | |

SpatialOverlaps(DbExpression, DbExpression) | Creates a DbFunctionExpression that invokes the canonical 'SpatialOverlaps' function with the specified arguments, which must each have an Edm.Geometry result type. The result type of the expression is Edm.Boolean. | |

SpatialRelate(DbExpression, DbExpression, DbExpression) | Creates a DbFunctionExpression that invokes the canonical 'SpatialRelate' function with the specified arguments, which must have Edm.Geometry and string result types. The result type of the expression is Edm.Boolean. | |

SpatialSymmetricDifference(DbExpression, DbExpression) | Creates a DbFunctionExpression that invokes the canonical 'SpatialSymmetricDifference' function with the specified arguments, which must each have an Edm.Geography or Edm.Geometry result type. The result type of | |

SpatialTouches(DbExpression, DbExpression) | Creates a DbFunctionExpression that invokes the canonical 'SpatialTouches' function with the specified arguments, which must each have an Edm.Geometry result type. The result type of the expression is Edm.Boolean. | |

SpatialTypeName(DbExpression) | Creates a DbFunctionExpression that invokes the canonical 'SpatialTypeName' function with the specified argument, which must have an Edm.Geography or Edm.Geometry result type. The result type of the expression is Edm.String. | |

SpatialUnion(DbExpression, DbExpression) | Creates a DbFunctionExpression that invokes the canonical 'SpatialUnion' function with the specified arguments, which must each have an Edm.Geography or Edm.Geometry result type. The result type of | |

SpatialWithin(DbExpression, DbExpression) | Creates a DbFunctionExpression that invokes the canonical 'SpatialWithin' function with the specified arguments, which must each have an Edm.Geometry result type. The result type of the expression is Edm.Boolean. | |

StartPoint(DbExpression) | Creates a DbFunctionExpression that invokes the canonical 'StartPoint' function with the specified argument, which must have an Edm.Geography or Edm.Geometry result type. The result type is the same as that of | |

XCoordinate(DbExpression) | Creates a DbFunctionExpression that invokes the canonical 'XCoordinate' function with the specified argument, which must have an Edm.Geometry result type. The result type of the expression is Edm.Double. | |

YCoordinate(DbExpression) | Creates a DbFunctionExpression that invokes the canonical 'YCoordinate' function with the specified argument, which must have an Edm.Geometry result type. The result type of the expression is Edm.Double. |

**.NET Framework**

Available since 4.5

Any public static (
**Shared**
in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.