Export (0) Print
Expand All

DbGeography Class

.NET Framework 4.5

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

System.Object
  System.Data.Spatial.DbGeography

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

[SerializableAttribute]
[BindableTypeAttribute]
[DataContractAttribute]
public class DbGeography

The DbGeography type exposes the following members.

  NameDescription
Public propertyArea 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.
Public propertyCoordinateSystemIdGets the identifier associated with the coordinate system.
Public propertyStatic memberDefaultCoordinateSystemId Gets the default coordinate system id (SRID) for geography values (WGS 84).
Public propertyDimension Gets the dimension of the given DbGeography value or, if the value is a collections, the largest element dimension.
Public propertyElementCount 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>
Public propertyElevation 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>
Public propertyEndPoint Gets a DbGeography value representing the start point of this value, which may be null if this DbGeography value does not represent a curve.
Public propertyIsClosed Gets a nullable Boolean value indicating whether this DbGeography value is closed, which may be null if this value does not represent a curve.
Public propertyIsEmptyGets a nullable Boolean value indicating whether this DbGeography value is empty.
Public propertyLatitude 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>
Public propertyLength 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.
Public propertyLongitude 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>
Public propertyMeasure 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>
Public propertyPointCount 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>
Public propertyProviderValue Gets a representation of this DbGeography value that is specific to the underlying provider that constructed it.
Public propertySpatialTypeNameGets the spatial type name of the DBGeography.
Public propertyStartPoint Gets a DbGeography value representing the start point of this value, which may be null if this DbGeography value does not represent a curve.
Public propertyWellKnownValue Gets or sets a data contract serializable well known representation of this DbGeography value.
Top

  NameDescription
Public methodAsBinary Generates the well known binary representation of this DbGeography value.
Public methodAsGml Generates the Geography Markup Language (GML) representation of this DbGeography value.
Public methodAsText Generates the well known text representation of this DbGeography value. Includes only Longitude and Latitude for points.
Public methodBufferReturns 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.
Public methodDifference Computes the difference of this DbGeography value and another DbGeography value.
Public methodDisjoint Determines whether this DbGeography is spatially disjoint from the specified DbGeography argument.
Public methodDistance Computes the distance between the closest points in this DbGeography value and another DbGeography value.
Public methodElementAt 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>
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 DbGeography value based on the specified well known binary value.
Public methodStatic memberFromBinary(Byte[], Int32) Creates a new DbGeography value based on the specified well known binary value and coordinate system identifier (SRID).
Public methodStatic memberFromGml(String) Creates a new DbGeography value based on the specified Geography Markup Language (GML) value.
Public methodStatic memberFromGml(String, Int32) Creates a new DbGeography value based on the specified Geography Markup Language (GML) value and coordinate system identifier (SRID).
Public methodStatic memberFromText(String) Creates a new DbGeography value based on the specified well known text value.
Public methodStatic memberFromText(String, Int32) Creates a new DbGeography value based on the specified well known text value and coordinate system identifier (SRID).
Public methodStatic memberGeographyCollectionFromBinary Creates a new DbGeography collection value based on the specified well known binary value and coordinate system identifier (SRID).
Public methodStatic memberGeographyCollectionFromText Creates a new DbGeography 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 methodIntersection Computes the intersection of this DbGeography value and another DbGeography value.
Public methodIntersects Determines whether this DbGeography value spatially intersects the specified DbGeography argument.
Public methodStatic memberLineFromBinary Creates a new DbGeography line value based on the specified well known binary value and coordinate system identifier (SRID).
Public methodStatic memberLineFromText Creates a new DbGeography 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 text value.
Public methodPointAt 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>
Public methodStatic memberPointFromBinary Creates a new DbGeography point value based on the specified well known binary value and coordinate system identifier (SRID).
Public methodStatic memberPointFromText Creates a new DbGeography point value based on the specified well known text value and coordinate system identifier (SRID).
Public methodStatic memberPolygonFromBinary Creates a new DbGeography polygon value based on the specified well known binary value and coordinate system identifier (SRID).
Public methodStatic memberPolygonFromText Creates a new DbGeography polygon value based on the specified well known text value and coordinate system identifier (SRID).
Public methodSpatialEquals Determines whether this DbGeography is spatially equal to the specified DbGeography argument.
Public methodSymmetricDifference Computes the symmetric difference of this DbGeography value and another DbGeography value.
Public methodToString Returns a string representation of the geography value. (Overrides Object.ToString().)
Public methodUnion Computes the union of this DbGeography value and another DbGeography value.
Top

.NET Framework

Supported in: 4.6, 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