DbGeometry DbGeometry DbGeometry DbGeometry Class

Definition

Provides a base class for objects that define geometric shapes.

public ref class DbGeometry
[System.ComponentModel.DataAnnotations.BindableType]
[System.Runtime.Serialization.DataContract]
[System.Serializable]
public class DbGeometry
type DbGeometry = class
Public Class DbGeometry
Inheritance
DbGeometryDbGeometryDbGeometryDbGeometry
Attributes

Properties

Area Area Area Area

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.

Boundary Boundary Boundary Boundary

Gets the boundary of the DbGeometry objects.

Centroid Centroid Centroid Centroid

Gets the DbGeometry value that represents the centroid of this DbGeometry value, which may be null if this value does not represent a surface.

ConvexHull ConvexHull ConvexHull ConvexHull

Gets the convex hull of this DbGeometry value as another DbGeometry value.

CoordinateSystemId CoordinateSystemId CoordinateSystemId CoordinateSystemId

Gets the coordinate system identifier of the DbGeometry object.

DefaultCoordinateSystemId DefaultCoordinateSystemId DefaultCoordinateSystemId DefaultCoordinateSystemId

Gets the default coordinate system id (SRID) for geometry values.

Dimension Dimension Dimension Dimension

Gets the dimension of the given DbGeometry value or, if the value is a collection, the dimension of its largest element.

ElementCount ElementCount ElementCount ElementCount

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>

Elevation Elevation Elevation Elevation

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>

EndPoint EndPoint EndPoint EndPoint

Gets a DbGeometry value representing the start point of this value, which may be null if this DbGeometry value does not represent a curve.

Envelope Envelope Envelope Envelope

Gets the envelope (minimum bounding box) of this DbGeometry value, as a geometry value.

ExteriorRing ExteriorRing ExteriorRing ExteriorRing

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.

InteriorRingCount InteriorRingCount InteriorRingCount InteriorRingCount

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>

IsClosed IsClosed IsClosed IsClosed

Gets a nullable Boolean value indicating whether this DbGeometry value is closed, which may be null if this value does not represent a curve.

IsEmpty IsEmpty IsEmpty IsEmpty

Gets a nullable Boolean value indicating whether this DbGeometry value is empty, which may be null if this value does not represent a curve.

IsRing IsRing IsRing IsRing

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.

IsSimple IsSimple IsSimple IsSimple

Gets a nullable Boolean value indicating whether this DbGeometry value is simple.

IsValid IsValid IsValid IsValid

Gets a nullable Boolean value indicating whether this DbGeometry value is valid.

Length Length Length Length

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.

Measure Measure Measure Measure

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>

PointCount PointCount PointCount PointCount

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>

PointOnSurface PointOnSurface PointOnSurface PointOnSurface

Gets a point on the surface of this DbGeometry value, which may be null if this value does not represent a surface.

ProviderValue ProviderValue ProviderValue ProviderValue

Gets a representation of this DbGeometry value that is specific to the underlying provider that constructed it.

SpatialTypeName SpatialTypeName SpatialTypeName SpatialTypeName

Gets a spatial type name representation of this DbGeometry value.

StartPoint StartPoint StartPoint StartPoint

Gets a DbGeometry value representing the start point of this value, which may be null if this DbGeometry value does not represent a curve.

WellKnownValue WellKnownValue WellKnownValue WellKnownValue

Gets or sets a data contract serializable well known representation of this DbGeometry value.

XCoordinate XCoordinate XCoordinate XCoordinate

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>

YCoordinate YCoordinate YCoordinate YCoordinate

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>

Methods

AsBinary() AsBinary() AsBinary() AsBinary()

Generates the well known binary representation of this DbGeometry value.

AsGml() AsGml() AsGml() AsGml()

Generates the Geography Markup Language (GML) representation of this DbGeometry value.

AsText() AsText() AsText() AsText()

Generates the well known text representation of this DbGeometry value. Includes only X and Y coordinates for points.

Buffer(Nullable<Double>) Buffer(Nullable<Double>) Buffer(Nullable<Double>) Buffer(Nullable<Double>)

Returns 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.

Contains(DbGeometry) Contains(DbGeometry) Contains(DbGeometry) Contains(DbGeometry)

Determines whether this DbGeometry value spatially contains the specified DbGeometry argument.

Crosses(DbGeometry) Crosses(DbGeometry) Crosses(DbGeometry) Crosses(DbGeometry)

Determines whether this DbGeometry value spatially crosses the specified DbGeometry argument.

Difference(DbGeometry) Difference(DbGeometry) Difference(DbGeometry) Difference(DbGeometry)

Computes the difference between this DbGeometry value and another DbGeometry value.

Disjoint(DbGeometry) Disjoint(DbGeometry) Disjoint(DbGeometry) Disjoint(DbGeometry)

Determines whether this DbGeometry is spatially disjoint from the specified DbGeometry argument.

Distance(DbGeometry) Distance(DbGeometry) Distance(DbGeometry) Distance(DbGeometry)

Computes the distance between the closest points in this DbGeometry value and another DbGeometry value.

ElementAt(Int32) ElementAt(Int32) ElementAt(Int32) ElementAt(Int32)

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>

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
FromBinary(Byte[]) FromBinary(Byte[]) FromBinary(Byte[]) FromBinary(Byte[])

Creates a new DbGeometry value based on the specified well known binary value.

FromBinary(Byte[], Int32) FromBinary(Byte[], Int32) FromBinary(Byte[], Int32) FromBinary(Byte[], Int32)

Creates a new DbGeometry value based on the specified well known binary value and coordinate system identifier (SRID).

FromGml(String) FromGml(String) FromGml(String) FromGml(String)

Creates a new DbGeometry value based on the specified Geography Markup Language (GML) value.

FromGml(String, Int32) FromGml(String, Int32) FromGml(String, Int32) FromGml(String, Int32)

Creates a new DbGeometry value based on the specified Geography Markup Language (GML) value and coordinate system identifier (SRID).

FromText(String) FromText(String) FromText(String) FromText(String)

Creates a new DbGeometry value based on the specified well known text value.

FromText(String, Int32) FromText(String, Int32) FromText(String, Int32) FromText(String, Int32)

Creates a new DbGeometry value based on the specified well known text value and coordinate system identifier (SRID).

GeometryCollectionFromBinary(Byte[], Int32) GeometryCollectionFromBinary(Byte[], Int32) GeometryCollectionFromBinary(Byte[], Int32) GeometryCollectionFromBinary(Byte[], Int32)

Creates a new DbGeometry collection value based on the specified well known binary value and coordinate system identifier (SRID).

GeometryCollectionFromText(String, Int32) GeometryCollectionFromText(String, Int32) GeometryCollectionFromText(String, Int32) GeometryCollectionFromText(String, Int32)

Creates a new DbGeometry collection value based on the specified well known text value and coordinate system identifier (SRID).

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
InteriorRingAt(Int32) InteriorRingAt(Int32) InteriorRingAt(Int32) InteriorRingAt(Int32)

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>

Intersection(DbGeometry) Intersection(DbGeometry) Intersection(DbGeometry) Intersection(DbGeometry)

Computes the intersection of this DbGeometry value and another DbGeometry value.

Intersects(DbGeometry) Intersects(DbGeometry) Intersects(DbGeometry) Intersects(DbGeometry)

Determines whether this DbGeometry value spatially intersects the specified DbGeometry argument.

LineFromBinary(Byte[], Int32) LineFromBinary(Byte[], Int32) LineFromBinary(Byte[], Int32) LineFromBinary(Byte[], Int32)

Creates a new DbGeometry line value based on the specified well known binary value and coordinate system identifier (SRID).

LineFromText(String, Int32) LineFromText(String, Int32) LineFromText(String, Int32) LineFromText(String, Int32)

Creates a new DbGeometry line value based on the specified well known text value and coordinate system identifier (SRID).

MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
MultiLineFromBinary(Byte[], Int32) MultiLineFromBinary(Byte[], Int32) MultiLineFromBinary(Byte[], Int32) MultiLineFromBinary(Byte[], Int32)

Returns the multiline value from a binary value.

MultiLineFromText(String, Int32) MultiLineFromText(String, Int32) MultiLineFromText(String, Int32) MultiLineFromText(String, Int32)

Returns the multiline value from a well-known text value.

MultiPointFromBinary(Byte[], Int32) MultiPointFromBinary(Byte[], Int32) MultiPointFromBinary(Byte[], Int32) MultiPointFromBinary(Byte[], Int32)

Returns the multipoint value from a well-known binary value.

MultiPointFromText(String, Int32) MultiPointFromText(String, Int32) MultiPointFromText(String, Int32) MultiPointFromText(String, Int32)

Returns the multipoint value from a well-known text value.

MultiPolygonFromBinary(Byte[], Int32) MultiPolygonFromBinary(Byte[], Int32) MultiPolygonFromBinary(Byte[], Int32) MultiPolygonFromBinary(Byte[], Int32)

Returns the multi polygon value from a well-known binary value.

MultiPolygonFromText(String, Int32) MultiPolygonFromText(String, Int32) MultiPolygonFromText(String, Int32) MultiPolygonFromText(String, Int32)

Returns the multi polygon value from a well-known binary value.

Overlaps(DbGeometry) Overlaps(DbGeometry) Overlaps(DbGeometry) Overlaps(DbGeometry)

Determines whether this DbGeometry value spatially overlaps the specified DbGeometry argument.

PointAt(Int32) PointAt(Int32) PointAt(Int32) PointAt(Int32)

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>

PointFromBinary(Byte[], Int32) PointFromBinary(Byte[], Int32) PointFromBinary(Byte[], Int32) PointFromBinary(Byte[], Int32)

Creates a new DbGeometry point value based on the specified well known binary value and coordinate system identifier (SRID).

PointFromText(String, Int32) PointFromText(String, Int32) PointFromText(String, Int32) PointFromText(String, Int32)

Creates a new DbGeometry point value based on the specified well known text value and coordinate system identifier (SRID).

PolygonFromBinary(Byte[], Int32) PolygonFromBinary(Byte[], Int32) PolygonFromBinary(Byte[], Int32) PolygonFromBinary(Byte[], Int32)

Creates a new DbGeometry polygon value based on the specified well known binary value and coordinate system identifier (SRID).

PolygonFromText(String, Int32) PolygonFromText(String, Int32) PolygonFromText(String, Int32) PolygonFromText(String, Int32)

Creates a new DbGeometry polygon value based on the specified well known text value and coordinate system identifier (SRID).

Relate(DbGeometry, String) Relate(DbGeometry, String) Relate(DbGeometry, String) Relate(DbGeometry, String)

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.

SpatialEquals(DbGeometry) SpatialEquals(DbGeometry) SpatialEquals(DbGeometry) SpatialEquals(DbGeometry)

Determines whether this DbGeometry is spatially equal to the specified DbGeometry argument.

SymmetricDifference(DbGeometry) SymmetricDifference(DbGeometry) SymmetricDifference(DbGeometry) SymmetricDifference(DbGeometry)

Computes the symmetric difference between this DbGeometry value and another DbGeometry value.

ToString() ToString() ToString() ToString()

Returns a string representation of the geometry value.

Touches(DbGeometry) Touches(DbGeometry) Touches(DbGeometry) Touches(DbGeometry)

Determines whether this DbGeometry value spatially touches the specified DbGeometry argument.

Union(DbGeometry) Union(DbGeometry) Union(DbGeometry) Union(DbGeometry)

Computes the union of this DbGeometry value and another DbGeometry value.

Within(DbGeometry) Within(DbGeometry) Within(DbGeometry) Within(DbGeometry)

Determines whether this DbGeometry value is spatially within the specified DbGeometry argument.

Applies to