Edit

Share via


DbSpatialServices.CreateWellKnownValue Method

Definition

Creates an instance of the well-known value.

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::Spatial::DbGeographyWellKnownValue ^ CreateWellKnownValue(System::Data::Spatial::DbGeography ^ geographyValue);
public abstract System.Data.Spatial.DbGeographyWellKnownValue CreateWellKnownValue (System.Data.Spatial.DbGeography geographyValue);
abstract member CreateWellKnownValue : System.Data.Spatial.DbGeography -> System.Data.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

geographyValue

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::Spatial::DbGeometryWellKnownValue ^ CreateWellKnownValue(System::Data::Spatial::DbGeometry ^ geometryValue);
public abstract System.Data.Spatial.DbGeometryWellKnownValue CreateWellKnownValue (System.Data.Spatial.DbGeometry geometryValue);
abstract member CreateWellKnownValue : System.Data.Spatial.DbGeometry -> System.Data.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

geometryValue

Applies to