Share via


DbGeometry.FromBinary Method

Definition

Overloads

FromBinary(Byte[])

Creates a new DbGeometry value based on the specified well known binary value.

FromBinary(Byte[], Int32)

Creates a new DbGeometry value based on the specified well known binary value and coordinate system identifier (SRID).

FromBinary(Byte[])

Creates a new DbGeometry value based on the specified well known binary value.

public static System.Data.Entity.Spatial.DbGeometry FromBinary (byte[] wellKnownBinary);
static member FromBinary : byte[] -> System.Data.Entity.Spatial.DbGeometry
Public Shared Function FromBinary (wellKnownBinary As Byte()) As DbGeometry

Parameters

wellKnownBinary
Byte[]

A byte array that contains a well known binary representation of the geometry value.

Returns

A new DbGeometry value as defined by the well known binary value with the default geometry coordinate system identifier ( DefaultCoordinateSystemId ).

Exceptions

wellKnownBinary

Applies to

FromBinary(Byte[], Int32)

Creates a new DbGeometry value based on the specified well known binary value and coordinate system identifier (SRID).

public static System.Data.Entity.Spatial.DbGeometry FromBinary (byte[] wellKnownBinary, int coordinateSystemId);
static member FromBinary : byte[] * int -> System.Data.Entity.Spatial.DbGeometry
Public Shared Function FromBinary (wellKnownBinary As Byte(), coordinateSystemId As Integer) As DbGeometry

Parameters

wellKnownBinary
Byte[]

A byte array that contains a well known binary representation of the geometry value.

coordinateSystemId
Int32

The identifier of the coordinate system that the new DbGeometry value should use.

Returns

A new DbGeometry value as defined by the well known binary value with the specified coordinate system identifier.

Exceptions

wellKnownBinary

coordinateSystemId

Applies to