DbSpatialServices.CreateWellKnownValue Method

Definition

Overloads

CreateWellKnownValue(DbGeography)

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

CreateWellKnownValue(DbGeometry)

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

CreateWellKnownValue(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 System.Data.Entity.Spatial.DbGeographyWellKnownValue CreateWellKnownValue (System.Data.Entity.Spatial.DbGeography geographyValue);
abstract member CreateWellKnownValue : System.Data.Entity.Spatial.DbGeography -> System.Data.Entity.Spatial.DbGeographyWellKnownValue
Public MustOverride Function CreateWellKnownValue (geographyValue As DbGeography) As DbGeographyWellKnownValue

Parameters

geographyValue
DbGeography

The geography value.

Returns

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

Exceptions

geographyValue is null.

geographyValue is not compatible with this spatial services implementation.

Applies to

CreateWellKnownValue(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 System.Data.Entity.Spatial.DbGeometryWellKnownValue CreateWellKnownValue (System.Data.Entity.Spatial.DbGeometry geometryValue);
abstract member CreateWellKnownValue : System.Data.Entity.Spatial.DbGeometry -> System.Data.Entity.Spatial.DbGeometryWellKnownValue
Public MustOverride Function CreateWellKnownValue (geometryValue As DbGeometry) As DbGeometryWellKnownValue

Parameters

geometryValue
DbGeometry

The geometry value.

Returns

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

Exceptions

geometryValue is null.

geometryValue is not compatible with this spatial services implementation.

Applies to