Export (0) Print
Expand All

DbGeometry Class

.NET Framework 4.5

Provides a base class for objects that define geometric shapes.

System.Object
  System.Data.Spatial.DbGeometry

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

[SerializableAttribute]
[DataContractAttribute]
[BindableTypeAttribute]
public class DbGeometry

The DbGeometry type exposes the following members.

  NameDescription
Public propertyArea Gets a nullable double value that indicates the area of this DbGeometry value, which may be null if this value does not represent a surface.
Public propertyBoundaryGets the boundary of the DbGeometry objects.
Public propertyCentroid Gets the DbGeometry value that represents the centroid of this DbGeometry value, which may be null if this value does not represent a surface.
Public propertyConvexHull Gets the convex hull of this DbGeometry value as another DbGeometry value.
Public propertyCoordinateSystemIdGets the coordinate system identifier of the DbGeometry object.
Public propertyStatic memberDefaultCoordinateSystemId Gets the default coordinate system id (SRID) for geometry values.
Public propertyDimension Gets the dimension of the given DbGeometry value or, if the value is a collection, the dimension of its largest element.
Public propertyElementCount Gets the number of elements in this DbGeometry value, if it represents a geometry collection. <returns>The number of elements in this geometry value, if it represents a collection of other geometry values; otherwise null.</returns>
Public propertyElevation Gets the elevation (Z coordinate) of this DbGeometry value, if it represents a point. <returns>The elevation (Z coordinate) of this geometry value, if it represents a point; otherwise null.</returns>
Public propertyEndPoint Gets a DbGeometry value representing the start point of this value, which may be null if this DbGeometry value does not represent a curve.
Public propertyEnvelope Gets the envelope (minimum bounding box) of this DbGeometry value, as a geometry value.
Public propertyExteriorRing Gets the DbGeometry value that represents the exterior ring of this DbGeometry value, which may be null if this value does not represent a polygon.
Public propertyInteriorRingCount Gets the number of interior rings in this DbGeometry value, if it represents a polygon. <returns>The number of elements in this geometry value, if it represents a polygon; otherwise null.</returns>
Public propertyIsClosed Gets a nullable Boolean value indicating whether this DbGeometry value is closed, which may be null if this value does not represent a curve.
Public propertyIsEmptyGets a nullable Boolean value indicating whether this DbGeometry value is empty, which may be null if this value does not represent a curve.
Public propertyIsRing Gets a nullable Boolean value indicating whether this DbGeometry value is a ring, which may be null if this value does not represent a curve.
Public propertyIsSimpleGets a nullable Boolean value indicating whether this DbGeometry value is simple.
Public propertyIsValidGets a nullable Boolean value indicating whether this DbGeometry value is valid.
Public propertyLength Gets a nullable double value that indicates the length of this DbGeometry value, which may be null if this value does not represent a curve.
Public propertyMeasure Gets the Measure (M coordinate) of this DbGeometry value, if it represents a point. <returns>The Measure (M coordinate) value of this geometry value, if it represents a point; otherwise null.</returns>
Public propertyPointCount Gets the number of points in this DbGeometry value, if it represents a linestring or linear ring. <returns>The number of elements in this geometry value, if it represents a linestring or linear ring; otherwise null.</returns>
Public propertyPointOnSurface Gets a point on the surface of this DbGeometry value, which may be null if this value does not represent a surface.
Public propertyProviderValue Gets a representation of this DbGeometry value that is specific to the underlying provider that constructed it.
Public propertySpatialTypeNameGets a spatial type name representation of this DbGeometry value.
Public propertyStartPoint Gets a DbGeometry value representing the start point of this value, which may be null if this DbGeometry value does not represent a curve.
Public propertyWellKnownValue Gets or sets a data contract serializable well known representation of this DbGeometry value.
Public propertyXCoordinate Gets the X coordinate of this DbGeometry value, if it represents a point. <returns>The X coordinate value of this geometry value, if it represents a point; otherwise null.</returns>
Public propertyYCoordinate Gets the Y coordinate of this DbGeometry value, if it represents a point. <returns>The Y coordinate value of this geometry value, if it represents a point; otherwise null.</returns>
Top

  NameDescription
Public methodAsBinary Generates the well known binary representation of this DbGeometry value.
Public methodAsGml Generates the Geography Markup Language (GML) representation of this DbGeometry value.
Public methodAsText Generates the well known text representation of this DbGeometry value. Includes only X and Y coordinates for points.
Public methodBufferReturns a geometry object that represents the union of all points whose distance from a geometry instance is less than or equal to a specified value.
Public methodContains Determines whether this DbGeometry value spatially contains the specified DbGeometry argument.
Public methodCrosses Determines whether this DbGeometry value spatially crosses the specified DbGeometry argument.
Public methodDifference Computes the difference between this DbGeometry value and another DbGeometry value.
Public methodDisjoint Determines whether this DbGeometry is spatially disjoint from the specified DbGeometry argument.
Public methodDistance Computes the distance between the closest points in this DbGeometry value and another DbGeometry value.
Public methodElementAt Returns an element of this DbGeometry value from a specific position, if it represents a geometry collection. <param name="index">The position within this geometry value from which the element should be taken.</param><returns>The element in this geometry value at the specified position, if it represents a collection of other geometry values; otherwise null.</returns>
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 methodStatic memberFromBinary(Byte[]) Creates a new DbGeometry value based on the specified well known binary value.
Public methodStatic memberFromBinary(Byte[], Int32) Creates a new DbGeometry value based on the specified well known binary value and coordinate system identifier (SRID).
Public methodStatic memberFromGml(String) Creates a new DbGeometry value based on the specified Geography Markup Language (GML) value.
Public methodStatic memberFromGml(String, Int32) Creates a new DbGeometry value based on the specified Geography Markup Language (GML) value and coordinate system identifier (SRID).
Public methodStatic memberFromText(String) Creates a new DbGeometry value based on the specified well known text value.
Public methodStatic memberFromText(String, Int32) Creates a new DbGeometry value based on the specified well known text value and coordinate system identifier (SRID).
Public methodStatic memberGeometryCollectionFromBinary Creates a new DbGeometry collection value based on the specified well known binary value and coordinate system identifier (SRID).
Public methodStatic memberGeometryCollectionFromText Creates a new DbGeometry collection value based on the specified well known text value and coordinate system identifier (SRID).
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodInteriorRingAt Returns an interior ring from this DbGeometry value at a specific position, if it represents a polygon. <param name="index">The position within this geometry value from which the interior ring should be taken.</param><returns>The interior ring in this geometry value at the specified position, if it represents a polygon; otherwise null.</returns>
Public methodIntersection Computes the intersection of this DbGeometry value and another DbGeometry value.
Public methodIntersects Determines whether this DbGeometry value spatially intersects the specified DbGeometry argument.
Public methodStatic memberLineFromBinary Creates a new DbGeometry line value based on the specified well known binary value and coordinate system identifier (SRID).
Public methodStatic memberLineFromText Creates a new DbGeometry line value based on the specified well known text value and coordinate system identifier (SRID).
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodStatic memberMultiLineFromBinaryReturns the multiline value from a binary value.
Public methodStatic memberMultiLineFromTextReturns the multiline value from a well-known text value.
Public methodStatic memberMultiPointFromBinaryReturns the multipoint value from a well-known binary value.
Public methodStatic memberMultiPointFromTextReturns the multipoint value from a well-known text value.
Public methodStatic memberMultiPolygonFromBinaryReturns the multi polygon value from a well-known binary value.
Public methodStatic memberMultiPolygonFromTextReturns the multi polygon value from a well-known binary value.
Public methodOverlaps Determines whether this DbGeometry value spatially overlaps the specified DbGeometry argument.
Public methodPointAt Returns an element of this DbGeometry value from a specific position, if it represents a linestring or linear ring. <param name="index">The position within this geometry value from which the element should be taken.</param><returns>The element in this geometry value at the specified position, if it represents a linestring or linear ring; otherwise null.</returns>
Public methodStatic memberPointFromBinary Creates a new DbGeometry point value based on the specified well known binary value and coordinate system identifier (SRID).
Public methodStatic memberPointFromText Creates a new DbGeometry point value based on the specified well known text value and coordinate system identifier (SRID).
Public methodStatic memberPolygonFromBinary Creates a new DbGeometry polygon value based on the specified well known binary value and coordinate system identifier (SRID).
Public methodStatic memberPolygonFromText Creates a new DbGeometry polygon value based on the specified well known text value and coordinate system identifier (SRID).
Public methodRelate Determines whether this DbGeometry value spatially relates to the specified DbGeometry argument according to the given Dimensionally Extended Nine-Intersection Model (DE-9IM) intersection pattern.
Public methodSpatialEquals Determines whether this DbGeometry is spatially equal to the specified DbGeometry argument.
Public methodSymmetricDifference Computes the symmetric difference between this DbGeometry value and another DbGeometry value.
Public methodToString Returns a string representation of the geometry value. (Overrides Object.ToString().)
Public methodTouches Determines whether this DbGeometry value spatially touches the specified DbGeometry argument.
Public methodUnion Computes the union of this DbGeometry value and another DbGeometry value.
Public methodWithin Determines whether this DbGeometry value is spatially within the specified DbGeometry argument.
Top

.NET Framework

Supported in: 4.5.3

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