Export (0) Print
Expand All

DbSpatialServices Class

.NET Framework 4.5

Represents a provider-independent service API for geospatial (Geometry/Geography) type support.

System.Object
  System.Data.Spatial.DbSpatialServices

Namespace:  System.Data.Spatial
Assembly:  System.Data.Entity (in System.Data.Entity.dll)

[<AbstractClass>]
[<SerializableAttribute>]
type DbSpatialServices =  class end

The DbSpatialServices type exposes the following members.

  NameDescription
Protected methodDbSpatialServicesInitializes a new instance of the DbSpatialServices class.
Top

  NameDescription
Public propertyStatic memberDefaultGets the default services for the DbSpatialServices.
Top

  NameDescription
Public methodAsBinary(DbGeography)Gets the well-known binary representation of the given DbGeography value.
Public methodAsBinary(DbGeometry)Gets the well-known binary representation of the given DbGeometry value.
Public methodAsGml(DbGeography)Generates the Geography Markup Language (GML) representation of this DbGeography value.
Public methodAsGml(DbGeometry)Generates the Geography Markup Language (GML) representation of this DbGeometry value.
Public methodAsText(DbGeography)Gets the well-known text representation of the given DbGeography value. This value should include only the Longitude and Latitude of points.
Public methodAsText(DbGeometry)Gets the well-known text representation of the given DbGeometry value, including only X and Y coordinates for points.
Public methodAsTextIncludingElevationAndMeasure(DbGeography)Returns a text representation of DbSpatialServices with elevation and measure.
Public methodAsTextIncludingElevationAndMeasure(DbGeometry)Returns a text representation of DbSpatialServices with elevation and measure.
Public methodBuffer(DbGeography, Double)Creates a geography value representing all points less than or equal to distance from the given DbGeography value.
Public methodBuffer(DbGeometry, Double)Creates a geometry value representing all points less than or equal to distance from the given DbGeometry value.
Public methodContainsDetermines whether one DbGeometry value spatially contains the other.
Protected methodStatic memberCreateGeography This method is intended for use by derived implementations of GeographyFromProviderValue after suitable validation of the specified provider value to ensure it is suitable for use with the derived implementation.
Protected methodStatic memberCreateGeometryThis method is intended for use by derived implementations of GeometryFromProviderValue after suitable validation of the specified provider value to ensure it is suitable for use with the derived implementation.
Public methodCreateProviderValue(DbGeographyWellKnownValue)Creates a provider-specific value compatible with this spatial services implementation based on the specified well-known DbGeography representation.
Public methodCreateProviderValue(DbGeometryWellKnownValue)Creates a provider-specific value compatible with this spatial services implementation based on the specified well-known DbGeometry representation.
Public methodCreateWellKnownValue(DbGeography)Creates an instance of DbGeographyWellKnownValue that represents the specified DbGeography value using one or both of the standard well-known spatial formats.
Public methodCreateWellKnownValue(DbGeometry)Creates an instance of DbGeometryWellKnownValue that represents the specified DbGeometry value using one or both of the standard well-known spatial formats.
Public methodCrossesDetermines whether the two given DbGeometry values spatially cross.
Public methodDifference(DbGeography, DbGeography)Computes the difference of two DbGeography values.
Public methodDifference(DbGeometry, DbGeometry)Computes the difference between two DbGeometry values.
Public methodDisjoint(DbGeography, DbGeography)Determines whether the two given DbGeography values are spatially disjoint.
Public methodDisjoint(DbGeometry, DbGeometry)Determines whether the two given DbGeometry values are spatially disjoint.
Public methodDistance(DbGeography, DbGeography)Computes the distance between the closest points in two DbGeography values.
Public methodDistance(DbGeometry, DbGeometry)Computes the distance between the closest points in two DbGeometry values.
Public methodElementAt(DbGeography, Int32)Returns an element of the given DbGeography value, if it represents a geography collection.
Public methodElementAt(DbGeometry, Int32)Returns an element of the given DbGeometry value, if it represents a geometry collection.
Public methodEquals(Object)Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGeographyCollectionFromBinaryCreates a new DbGeography collection value based on the specified well-known binary value and coordinate system identifier (SRID).
Public methodGeographyCollectionFromTextCreates a new DbGeography collection value based on the specified well-known text value and coordinate system identifier (SRID).
Public methodGeographyFromBinary(Byte[])Creates a new DbGeography value based on the specified well-known binary value.
Public methodGeographyFromBinary(Byte[], Int32)Creates a new DbGeography value based on the specified well-known binary value and coordinate system identifier (SRID).
Public methodGeographyFromGml(String)Creates a new DbGeography value based on the specified Geography Markup Language (GML) value.
Public methodGeographyFromGml(String, Int32)Creates a new DbGeography value based on the specified Geography Markup Language (GML) value and coordinate system identifier (SRID).
Public methodGeographyFromProviderValueCreates a new DbGeography value based on a provider-specific value that is compatible with this spatial services implementation.
Public methodGeographyFromText(String)Creates a new DbGeography value based on the specified well-known text value.
Public methodGeographyFromText(String, Int32)Creates a new DbGeography value based on the specified well-known text value and coordinate system identifier (SRID).
Public methodGeographyLineFromBinaryCreates a new DbGeography line value based on the specified well-known binary value and coordinate system identifier (SRID).
Public methodGeographyLineFromTextCreates a new DbGeography line value based on the specified well-known text value and coordinate system identifier (SRID).
Public methodGeographyMultiLineFromBinaryCreates a new DbGeography multiline value based on the specified well-known binary value and coordinate system identifier.
Public methodGeographyMultiLineFromTextCreates a new DbGeography multiline value based on the specified well-known text value and coordinate system identifier.
Public methodGeographyMultiPointFromBinaryCreates a new DbGeography multipoint value based on the specified well-known binary value and coordinate system identifier.
Public methodGeographyMultiPointFromTextCreates a new DbGeography multipoint value based on the specified well-known text value and coordinate system identifier.
Public methodGeographyMultiPolygonFromBinaryCreates a new DbGeography multi polygon value based on the specified well-known binary value and coordinate system identifier.
Public methodGeographyMultiPolygonFromTextCreates a new DbGeography multi polygon value based on the specified well-known text value and coordinate system identifier.
Public methodGeographyPointFromBinaryCreates a new DbGeography point value based on the specified well-known binary value and coordinate system identifier (SRID).
Public methodGeographyPointFromTextCreates a new DbGeography point value based on the specified well-known text value and coordinate system identifier (SRID).
Public methodGeographyPolygonFromBinaryCreates a new DbGeography polygon value based on the specified well-known binary value and coordinate system identifier (SRID).
Public methodGeographyPolygonFromTextCreates a new DbGeography polygon value based on the specified well-known text value and coordinate system identifier (SRID).
Public methodGeometryCollectionFromBinaryCreates a new DbGeometry collection value based on the specified well-known binary value and coordinate system identifier (SRID).
Public methodGeometryCollectionFromTextCreates a new DbGeometry collection value based on the specified well-known text value and coordinate system identifier (SRID).
Public methodGeometryFromBinary(Byte[])Creates a new DbGeometry value based on the specified well-known binary value.
Public methodGeometryFromBinary(Byte[], Int32)Creates a new DbGeometry value based on the specified well-known binary value and coordinate system identifier (SRID).
Public methodGeometryFromGml(String)Creates a new DbGeometry value based on the specified Geography Markup Language (GML) value.
Public methodGeometryFromGml(String, Int32)Creates a new DbGeometry value based on the specified Geography Markup Language (GML) value and coordinate system identifier (SRID).
Public methodGeometryFromProviderValueCreates a new DbGeometry value based on a provider-specific value that is compatible with this spatial services implementation.
Public methodGeometryFromText(String)Creates a new DbGeometry value based on the specified well-known text value.
Public methodGeometryFromText(String, Int32)Creates a new DbGeometry value based on the specified well-known text value and coordinate system identifier (SRID).
Public methodGeometryLineFromBinaryCreates a new DbGeometry line value based on the specified well-known binary value and coordinate system identifier (SRID).
Public methodGeometryLineFromTextCreates a new DbGeometry line value based on the specified well-known text value and coordinate system identifier (SRID).
Public methodGeometryMultiLineFromBinaryCreates a new DbGeometry multiline value based on the specified well-known binary value and coordinate system identifier.
Public methodGeometryMultiLineFromTextCreates a new DbGeometry multiline value based on the specified well-known text value and coordinate system identifier.
Public methodGeometryMultiPointFromBinaryCreates a new DbGeometry multipoint value based on the specified well-known binary value and coordinate system identifier.
Public methodGeometryMultiPointFromTextCreates a new DbGeometry multipoint value based on the specified well-known text value and coordinate system identifier.
Public methodGeometryMultiPolygonFromBinaryCreates a new DbGeometry multi polygon value based on the specified well-known binary value and coordinate system identifier.
Public methodGeometryMultiPolygonFromTextCreates a new DbGeometry multi polygon value based on the specified well-known text value and coordinate system identifier.
Public methodGeometryPointFromBinaryCreates a new DbGeometry point value based on the specified well-known binary value and coordinate system identifier (SRID).
Public methodGeometryPointFromTextCreates a new DbGeometry point value based on the specified well-known text value and coordinate system identifier (SRID).
Public methodGeometryPolygonFromBinaryCreates a new DbGeometry polygon value based on the specified well-known binary value and coordinate system identifier (SRID).
Public methodGeometryPolygonFromTextCreates a new DbGeometry polygon value based on the specified well-known text value and coordinate system identifier (SRID).
Public methodGetArea(DbGeography) Returns a nullable double value that indicates the area of the given DbGeography value, which may be null if the value does not represent a surface.
Public methodGetArea(DbGeometry)Returns a nullable double value that indicates the area of the given DbGeometry value, which may be null if the value does not represent a surface.
Public methodGetBoundaryReturns a nullable double value that indicates the boundary of the given DbGeography value.
Public methodGetCentroid Returns a DbGeometry value that represents the centroid of the given DbGeometry value, which may be null if the value does not represent a surface.
Public methodGetConvexHullReturns a nullable double value that indicates the convex hull of the given DbGeography value.
Public methodGetCoordinateSystemId(DbGeography)Returns the coordinate system identifier of the given DbGeography value.
Public methodGetCoordinateSystemId(DbGeometry)Returns the coordinate system identifier of the given DbGeometry value.
Public methodGetDimension(DbGeography)Gets the dimension of the given DbGeography value or, if the value is a collections, the largest element dimension.
Public methodGetDimension(DbGeometry)Gets the dimension of the given DbGeometry value or, if the value is a collections, the largest element dimension.
Public methodGetElementCount(DbGeography) Returns the number of elements in the given DbGeography value, if it represents a geography collection.
Public methodGetElementCount(DbGeometry)Returns the number of elements in the given DbGeometry value, if it represents a geometry collection.
Public methodGetElevation(DbGeography) Returns the elevation (Z coordinate) of the given DbGeography value, if it represents a point.
Public methodGetElevation(DbGeometry)Returns the elevation (Z) of the given DbGeometry value, if it represents a point.
Public methodGetEndPoint(DbGeography) Returns a DbGeography value that represents the end point of the given DbGeography value, which may be null if the value does not represent a curve.
Public methodGetEndPoint(DbGeometry)Returns a DbGeometry value that represents the end point of the given DbGeometry value, which may be null if the value does not represent a curve.
Public methodGetEnvelopeGets the envelope (minimum bounding box) of the given DbGeometry value, as a geometry value.
Public methodGetExteriorRingReturns a DbGeometry value that represents the exterior ring of the given DbGeometry value, which may be null if the value does not represent a polygon.
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetInteriorRingCount Returns the number of interior rings in the given DbGeometry value, if it represents a polygon.
Public methodGetIsClosed(DbGeography) Returns a nullable Boolean value that whether the given DbGeography value is closed, which may be null if the value does not represent a curve.
Public methodGetIsClosed(DbGeometry)Returns a nullable Boolean value that whether the given DbGeometry value is closed, which may be null if the value does not represent a curve.
Public methodGetIsEmpty(DbGeography)Returns a nullable Boolean value that whether the given DbGeography value is empty.
Public methodGetIsEmpty(DbGeometry)Returns a nullable Boolean value that whether the given DbGeometry value is empty.
Public methodGetIsRingReturns a nullable Boolean value that whether the given DbGeometry value is a ring, which may be null if the value does not represent a curve.
Public methodGetIsSimpleReturns a nullable Boolean value that whether the given DbGeometry value is simple.
Public methodGetIsValidReturns a nullable Boolean value that whether the given DbGeometry value is valid.
Public methodGetLatitude Returns the Latitude coordinate of the given DbGeography value, if it represents a point.
Public methodGetLength(DbGeography)Returns a nullable double value that indicates the length of the given DbGeography value, which may be null if the value does not represent a curve.
Public methodGetLength(DbGeometry)Returns a nullable double value that indicates the length of the given DbGeometry value, which may be null if the value does not represent a curve.
Public methodGetLongitudeReturns the Longitude coordinate of the given DbGeography value, if it represents a point.
Public methodGetMeasure(DbGeography)Returns the M (Measure) coordinate of the given DbGeography value, if it represents a point.
Public methodGetMeasure(DbGeometry)Returns the M (Measure) coordinate of the given DbGeometry value, if it represents a point.
Public methodGetPointCount(DbGeography)Returns the number of points in the given DbGeography value, if it represents a linestring or linear ring.
Public methodGetPointCount(DbGeometry)Returns the number of points in the given DbGeometry value, if it represents a linestring or linear ring.
Public methodGetPointOnSurfaceReturns a DbGeometry value that represents a point on the surface of the given DbGeometry value, which may be null if the value does not represent a surface.
Public methodGetSpatialTypeName(DbGeography)Returns a value that indicates the spatial type name of the given DbGeography value.
Public methodGetSpatialTypeName(DbGeometry)Returns a value that indicates the spatial type name of the given DbGeometry value.
Public methodGetStartPoint(DbGeography)Returns a DbGeography value that represents the start point of the given DbGeography value, which may be null if the value does not represent a curve.
Public methodGetStartPoint(DbGeometry)Returns a DbGeometry value that represents the start point of the given DbGeometry value, which may be null if the value does not represent a curve.
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodGetXCoordinateReturns the X coordinate of the given DbGeometry value, if it represents a point.
Public methodGetYCoordinateReturns the Y coordinate of the given DbGeometry value, if it represents a point.
Public methodInteriorRingAtReturns an interior ring from the given DbGeometry value, if it represents a polygon.
Public methodIntersection(DbGeography, DbGeography)Computes the intersection of two DbGeography values.
Public methodIntersection(DbGeometry, DbGeometry)Computes the intersection of two DbGeometry values.
Public methodIntersects(DbGeography, DbGeography)Determines whether the two given DbGeography values spatially intersect.
Public methodIntersects(DbGeometry, DbGeometry)Determines whether the two given DbGeometry values spatially intersect.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodOverlapsDetermines whether the two given DbGeometry values spatially overlap.
Public methodPointAt(DbGeography, Int32)Returns a point element of the given DbGeography value, if it represents a linestring or linear ring.
Public methodPointAt(DbGeometry, Int32)Returns a point element of the given DbGeometry value, if it represents a linestring or linear ring.
Public methodRelateDetermines whether the two given DbGeometry values are spatially related according to the given Dimensionally Extended Nine-Intersection Model (DE-9IM) intersection pattern.
Public methodSpatialEquals(DbGeography, DbGeography)Determines whether the two given DbGeography values are spatially equal.
Public methodSpatialEquals(DbGeometry, DbGeometry)Determines whether the two given DbGeometry values are spatially equal.
Public methodSymmetricDifference(DbGeography, DbGeography)Computes the symmetric difference of two DbGeography values.
Public methodSymmetricDifference(DbGeometry, DbGeometry)Computes the symmetric difference between two DbGeometry values.
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Public methodTouchesDetermines whether the two given DbGeometry values spatially touch.
Public methodUnion(DbGeography, DbGeography)Computes the union of two DbGeography values.
Public methodUnion(DbGeometry, DbGeometry)Computes the union of two DbGeometry values.
Public methodWithinDetermines whether one DbGeometry value is spatially within the other.
Top

.NET Framework

Supported in: 4.5.2, 4.5.1, 4.5

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show:
© 2014 Microsoft