#
DbGeography
DbGeography
DbGeography
Class

## Definition

Represents data in a geodetic (round earth) coordinate system.

```
[System.Runtime.Serialization.DataContract]
[System.Serializable]
public class DbGeography
```

`type DbGeography = class`

`Public Class DbGeography`

- Inheritance

- Attributes

## Properties

Area Area Area |
Gets a nullable double value that indicates the area of this DbGeography value, which may be null if this value does not represent a surface. |

CoordinateSystemId CoordinateSystemId CoordinateSystemId |
Gets the identifier associated with the coordinate system. |

DefaultCoordinateSystemId DefaultCoordinateSystemId DefaultCoordinateSystemId |
Gets the default coordinate system id (SRID) for geography values (WGS 84) |

Dimension Dimension Dimension |
Gets the dimension of the given DbGeography value or, if the value is a collections, the largest element dimension. |

ElementCount ElementCount ElementCount |
Gets the number of elements in this DbGeography value, if it represents a geography collection. <returns>The number of elements in this geography value, if it represents a collection of other geography values; otherwise null.</returns> |

Elevation Elevation Elevation |
Gets the elevation (Z coordinate) of this DbGeography value, if it represents a point. <returns>The elevation (Z coordinate) value of this geography value, if it represents a point; otherwise null.</returns> |

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

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

IsEmpty IsEmpty IsEmpty |
Gets a nullable Boolean value indicating whether this DbGeography value is empty. |

Latitude Latitude Latitude |
Gets the Latitude coordinate of this DbGeography value, if it represents a point. <returns>The Latitude coordinate value of this geography value, if it represents a point; otherwise null.</returns> |

Length Length Length |
Gets a nullable double value that indicates the length of this DbGeography value, which may be null if this value does not represent a curve. |

Longitude Longitude Longitude |
Gets the Longitude coordinate of this DbGeography value, if it represents a point. <returns>The Longitude coordinate value of this geography value, if it represents a point; otherwise null.</returns> |

Measure Measure Measure |
Gets the M (Measure) coordinate of this DbGeography value, if it represents a point. <returns>The M (Measure) coordinate value of this geography value, if it represents a point; otherwise null.</returns> |

PointCount PointCount PointCount |
Gets the number of points in this DbGeography value, if it represents a linestring or linear ring. <returns>The number of elements in this geography value, if it represents a linestring or linear ring; otherwise null.</returns> |

Provider Provider Provider |
Gets the spatial provider that will be used for operations on this spatial type. |

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

SpatialTypeName SpatialTypeName SpatialTypeName |
Gets the spatial type name of the DBGeography. |

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

WellKnownValue WellKnownValue WellKnownValue |
Gets or sets a data contract serializable well known representation of this DbGeography value. |

## Methods

AsBinary() AsBinary() AsBinary() |
Generates the well known binary representation of this DbGeography value. |

AsGml() AsGml() AsGml() |
Generates the Geography Markup Language (GML) representation of this DbGeography value. |

AsText() AsText() AsText() |
Generates the well known text representation of this DbGeography value. Includes only Longitude and Latitude for points. |

Buffer(Nullable<Double>) Buffer(Nullable<Double>) Buffer(Nullable<Double>) |
Returns a geography object that represents the union of all points whose distance from a geography instance is less than or equal to a specified value. |

Difference(DbGeography) Difference(DbGeography) Difference(DbGeography) |
Computes the difference of this DbGeography value and another DbGeography value. |

Disjoint(DbGeography) Disjoint(DbGeography) Disjoint(DbGeography) |
Determines whether this DbGeography is spatially disjoint from the specified DbGeography argument. |

Distance(DbGeography) Distance(DbGeography) Distance(DbGeography) |
Computes the distance between the closest points in this DbGeography value and another DbGeography value. |

ElementAt(Int32) ElementAt(Int32) ElementAt(Int32) |
Returns an element of this DbGeography value from a specific position, if it represents a geography collection. <param name="index">The position within this geography value from which the element should be taken.</param><returns>The element in this geography value at the specified position, if it represents a collection of other geography values; otherwise null.</returns> |

FromBinary(Byte[]) FromBinary(Byte[]) FromBinary(Byte[]) |
Creates a new DbGeography value based on the specified well known binary value. |

FromBinary(Byte[], Int32) FromBinary(Byte[], Int32) FromBinary(Byte[], Int32) |
Creates a new DbGeography value based on the specified well known binary value and coordinate system identifier (SRID). |

FromGml(String) FromGml(String) FromGml(String) |
Creates a new DbGeography value based on the specified Geography Markup Language (GML) value. |

FromGml(String, Int32) FromGml(String, Int32) FromGml(String, Int32) |
Creates a new DbGeography value based on the specified Geography Markup Language (GML) value and coordinate system identifier (SRID). |

FromText(String) FromText(String) FromText(String) |
Creates a new DbGeography value based on the specified well known text value. |

FromText(String, Int32) FromText(String, Int32) FromText(String, Int32) |
Creates a new DbGeography value based on the specified well known text value and coordinate system identifier (SRID). |

GeographyCollectionFromBinary(Byte[], Int32) GeographyCollectionFromBinary(Byte[], Int32) GeographyCollectionFromBinary(Byte[], Int32) |
Creates a new DbGeography collection value based on the specified well known binary value and coordinate system identifier (SRID). |

GeographyCollectionFromText(String, Int32) GeographyCollectionFromText(String, Int32) GeographyCollectionFromText(String, Int32) |
Creates a new DbGeography collection value based on the specified well known text value and coordinate system identifier (SRID). |

Intersection(DbGeography) Intersection(DbGeography) Intersection(DbGeography) |
Computes the intersection of this DbGeography value and another DbGeography value. |

Intersects(DbGeography) Intersects(DbGeography) Intersects(DbGeography) |
Determines whether this DbGeography value spatially intersects the specified DbGeography argument. |

LineFromBinary(Byte[], Int32) LineFromBinary(Byte[], Int32) LineFromBinary(Byte[], Int32) |
Creates a new DbGeography line value based on the specified well known binary value and coordinate system identifier (SRID). |

LineFromText(String, Int32) LineFromText(String, Int32) LineFromText(String, Int32) |
Creates a new DbGeography line value based on the specified well known text value and coordinate system identifier (SRID). |

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) |
Returns the multiline value from a well-known text value. |

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) |
Returns the multipoint value from a well-known text value. |

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) |
Returns the multi polygon value from a well-known text value. |

PointAt(Int32) PointAt(Int32) PointAt(Int32) |
Returns an element of this DbGeography value from a specific position, if it represents a linestring or linear ring. <param name="index">The position within this geography value from which the element should be taken.</param><returns>The element in this geography 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) |
Creates a new DbGeography point value based on the specified well known binary value and coordinate system identifier (SRID). |

PointFromText(String, Int32) PointFromText(String, Int32) PointFromText(String, Int32) |
Creates a new DbGeography point value based on the specified well known text value and coordinate system identifier (SRID). |

PolygonFromBinary(Byte[], Int32) PolygonFromBinary(Byte[], Int32) PolygonFromBinary(Byte[], Int32) |
Creates a new DbGeography polygon value based on the specified well known binary value and coordinate system identifier (SRID). |

PolygonFromText(String, Int32) PolygonFromText(String, Int32) PolygonFromText(String, Int32) |
Creates a new DbGeography polygon value based on the specified well known text value and coordinate system identifier (SRID). |

SpatialEquals(DbGeography) SpatialEquals(DbGeography) SpatialEquals(DbGeography) |
Determines whether this DbGeography is spatially equal to the specified DbGeography argument. |

SymmetricDifference(DbGeography) SymmetricDifference(DbGeography) SymmetricDifference(DbGeography) |
Computes the symmetric difference of this DbGeography value and another DbGeography value. |

ToString() ToString() ToString() |
Returns a string representation of the geography value. |

Union(DbGeography) Union(DbGeography) Union(DbGeography) |
Computes the union of this DbGeography value and another DbGeography value. |

## Applies to

## Feedback

Loading feedback...