DbGeography Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before itâ€™s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents data in a geodetic (round earth) coordinate system.
public ref class DbGeography
[System.ComponentModel.DataAnnotations.BindableType]
[System.Runtime.Serialization.DataContract]
[System.Serializable]
public class DbGeography
[<System.ComponentModel.DataAnnotations.BindableType>]
[<System.Runtime.Serialization.DataContract>]
[<System.Serializable>]
type DbGeography = class
Public Class DbGeography
 Inheritance

DbGeography
 Attributes
Properties
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 
Gets the identifier associated with the coordinate system. 
DefaultCoordinateSystemId 
Gets the default coordinate system id (SRID) for geography values (WGS 84). 
Dimension 
Gets the dimension of the given DbGeography value or, if the value is a collections, the largest element dimension. 
ElementCount 
Gets the number of elements in this DbGeography value, if it represents a geography collection. 
Elevation 
Gets the elevation (Z coordinate) of this DbGeography value, if it represents a point. 
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 
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 
Gets a nullable Boolean value indicating whether this DbGeography value is empty. 
Latitude 
Gets the Latitude coordinate of this DbGeography value, if it represents a point. 
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 
Gets the Longitude coordinate of this DbGeography value, if it represents a point. 
Measure 
Gets the M (Measure) coordinate of this DbGeography value, if it represents a point. 
PointCount 
Gets the number of points in this DbGeography value, if it represents a linestring or linear ring. 
ProviderValue 
Gets a representation of this DbGeography value that is specific to the underlying provider that constructed it. 
SpatialTypeName 
Gets the spatial type name of the DBGeography. 
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 
Gets or sets a data contract serializable well known representation of this DbGeography value. 
Methods
AsBinary() 
Generates the well known binary representation of this DbGeography value. 
AsGml() 
Generates the Geography Markup Language (GML) representation of this DbGeography value. 
AsText() 
Generates the well known text representation of this DbGeography value. Includes only Longitude and Latitude for points. 
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) 
Computes the difference of this DbGeography value and another DbGeography value. 
Disjoint(DbGeography) 
Determines whether this DbGeography is spatially disjoint from the specified DbGeography argument. 
Distance(DbGeography) 
Computes the distance between the closest points in this DbGeography value and another DbGeography value. 
ElementAt(Int32) 
Returns an element of this DbGeography value from a specific position, if it represents a geography collection. 
Equals(Object) 
Determines whether the specified object is equal to the current object. (Inherited from Object) 
FromBinary(Byte[], Int32) 
Creates a new DbGeography value based on the specified well known binary value and coordinate system identifier (SRID). 
FromBinary(Byte[]) 
Creates a new DbGeography value based on the specified well known binary value. 
FromGml(String, Int32) 
Creates a new DbGeography value based on the specified Geography Markup Language (GML) value and coordinate system identifier (SRID). 
FromGml(String) 
Creates a new DbGeography value based on the specified Geography Markup Language (GML) value. 
FromText(String, Int32) 
Creates a new DbGeography value based on the specified well known text value and coordinate system identifier (SRID). 
FromText(String) 
Creates a new DbGeography value based on the specified well known text value. 
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) 
Creates a new DbGeography collection value based on the specified well known text value and coordinate system identifier (SRID). 
GetHashCode() 
Serves as the default hash function. (Inherited from Object) 
GetType() 
Gets the Type of the current instance. (Inherited from Object) 
Intersection(DbGeography) 
Computes the intersection of this DbGeography value and another DbGeography value. 
Intersects(DbGeography) 
Determines whether this DbGeography value spatially intersects the specified DbGeography argument. 
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) 
Creates a new DbGeography line value based on the specified well known text value and coordinate system identifier (SRID). 
MemberwiseClone() 
Creates a shallow copy of the current Object. (Inherited from Object) 
MultiLineFromBinary(Byte[], Int32) 
Returns the multiline value from a binary value. 
MultiLineFromText(String, Int32) 
Returns the multiline value from a wellknown text value. 
MultiPointFromBinary(Byte[], Int32) 
Returns the multipoint value from a wellknown binary value. 
MultiPointFromText(String, Int32) 
Returns the multipoint value from a wellknown text value. 
MultiPolygonFromBinary(Byte[], Int32) 
Returns the multi polygon value from a wellknown binary value. 
MultiPolygonFromText(String, Int32) 
Returns the multi polygon value from a wellknown text value. 
PointAt(Int32) 
Returns an element of this DbGeography value from a specific position, if it represents a linestring or linear ring. 
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) 
Creates a new DbGeography point value based on the specified well known text value and coordinate system identifier (SRID). 
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) 
Creates a new DbGeography polygon value based on the specified well known text value and coordinate system identifier (SRID). 
SpatialEquals(DbGeography) 
Determines whether this DbGeography is spatially equal to the specified DbGeography argument. 
SymmetricDifference(DbGeography) 
Computes the symmetric difference of this DbGeography value and another DbGeography value. 
ToString() 
Returns a string representation of the geography value. 
Union(DbGeography) 
Computes the union of this DbGeography value and another DbGeography value. 