DbSpatialServices.CreateWellKnownValue Method

 

Creates an instance of well known value.

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

NameDescription
System_CAPS_pubmethodCreateWellKnownValue(DbGeography)

Creates an instance of DbGeographyWellKnownValue that represents the specified DbGeography value using one or both of the standard well-known spatial formats.

System_CAPS_pubmethodCreateWellKnownValue(DbGeometry)

Creates an instance of DbGeometryWellKnownValue that represents the specified DbGeometry value using one or both of the standard well-known spatial formats.


DbSpatialServices.CreateWellKnownValue Method (DbGeography)

Creates an instance of DbGeographyWellKnownValue that represents the specified DbGeography value using one or both of the standard well-known spatial formats.

public abstract DbGeographyWellKnownValue CreateWellKnownValue(
	DbGeography geographyValue
)

Parameters

geographyValue
Type: System.Data.Entity.Spatial.DbGeography

The geography value.

Return Value

Type: System.Data.Entity.Spatial.DbGeographyWellKnownValue

The well-known representation of geographyValue, as a new DbGeographyWellKnownValue .

Exception Condition
ArgumentNullException

geographyValue is null.

ArgumentException

geographyValue is not compatible with this spatial services implementation.


DbSpatialServices.CreateWellKnownValue Method (DbGeometry)

Creates an instance of DbGeometryWellKnownValue that represents the specified DbGeometry value using one or both of the standard well-known spatial formats.

public abstract DbGeometryWellKnownValue CreateWellKnownValue(
	DbGeometry geometryValue
)

Parameters

geometryValue
Type: System.Data.Entity.Spatial.DbGeometry

The geometry value.

Return Value

Type: System.Data.Entity.Spatial.DbGeometryWellKnownValue

The well-known representation of geometryValue, as a new DbGeometryWellKnownValue .

Exception Condition
ArgumentNullException

geometryValue is null.

ArgumentException

geometryValue is not compatible with this spatial services implementation.