DbSpatialServices.GeometryFromBinary 方法
定义
创建基于指定已知二进制值的新 DbGeometry 值。Creates a new DbGeometry value based on the specified well-known binary value.
重载
| GeometryFromBinary(Byte[]) |
创建基于指定已知二进制值的新 DbGeometry 值。Creates a new DbGeometry value based on the specified well-known binary value. |
| GeometryFromBinary(Byte[], Int32) |
创建基于指定已知二进制值和坐标系统标识符 (SRID) 的新 DbGeometry 值。Creates a new DbGeometry value based on the specified well-known binary value and coordinate system identifier (SRID). |
GeometryFromBinary(Byte[])
创建基于指定已知二进制值的新 DbGeometry 值。Creates a new DbGeometry value based on the specified well-known binary value.
public:
abstract System::Data::Spatial::DbGeometry ^ GeometryFromBinary(cli::array <System::Byte> ^ wellKnownBinary);
public abstract System.Data.Spatial.DbGeometry GeometryFromBinary (byte[] wellKnownBinary);
abstract member GeometryFromBinary : byte[] -> System.Data.Spatial.DbGeometry
Public MustOverride Function GeometryFromBinary (wellKnownBinary As Byte()) As DbGeometry
参数
- wellKnownBinary
- Byte[]
包含几何值的知名二进制表示形式的字节数组。A byte array that contains a well-known binary representation of the geometry value.
返回
通过默认的 DbGeometry 坐标系统标识符 (SRID),由知名二进制值定义的新的 DbGeometry 值 DefaultCoordinateSystemId。A new DbGeometry value as defined by the well-known binary value with the default DbGeometry coordinate system identifier (SRID) (DefaultCoordinateSystemId).
例外
wellKnownBinary
适用于
GeometryFromBinary(Byte[], Int32)
创建基于指定已知二进制值和坐标系统标识符 (SRID) 的新 DbGeometry 值。Creates a new DbGeometry value based on the specified well-known binary value and coordinate system identifier (SRID).
public:
abstract System::Data::Spatial::DbGeometry ^ GeometryFromBinary(cli::array <System::Byte> ^ wellKnownBinary, int coordinateSystemId);
public abstract System.Data.Spatial.DbGeometry GeometryFromBinary (byte[] wellKnownBinary, int coordinateSystemId);
abstract member GeometryFromBinary : byte[] * int -> System.Data.Spatial.DbGeometry
Public MustOverride Function GeometryFromBinary (wellKnownBinary As Byte(), coordinateSystemId As Integer) As DbGeometry
参数
- wellKnownBinary
- Byte[]
包含几何值的知名二进制表示形式的字节数组。A byte array that contains a well-known binary representation of the geometry value.
- coordinateSystemId
- Int32
新建 DbGeometry 值应使用的坐标系的标识符。The identifier of the coordinate system that the new DbGeometry value should use.
返回
通过指定坐标系统标识符 (SRID) 由知名二进制值定义的新的 DbGeometry 值 DefaultCoordinateSystemId。A new DbGeometry value as defined by the well-known binary value with the specified coordinate system identifier (SRID) (DefaultCoordinateSystemId).
例外
wellKnownBinary
coordinateSystemId