SqlSpatialServices.GeometryPolygonFromBinary 方法
[此頁面專屬於 Entity Framework 第 6 版。最新版本可從 'Entity Framework' NuGet 套件取得。如需 Entity Framework 的詳細資訊,請參閱 msdn.com/data/ef。]
根據指定的已知二進位值和座標系統識別項 (SRID),建立新的 DbGeometry 多邊形值。
命名空間: System.Data.Entity.SqlServer
組件: EntityFramework.SqlServer (在 EntityFramework.SqlServer.dll 中)
語法
'宣告
Public Overrides Function GeometryPolygonFromBinary ( _
polygonWellKnownBinary As Byte(), _
coordinateSystemId As Integer _
) As DbGeometry
'用途
Dim instance As SqlSpatialServices
Dim polygonWellKnownBinary As Byte()
Dim coordinateSystemId As Integer
Dim returnValue As DbGeometry
returnValue = instance.GeometryPolygonFromBinary(polygonWellKnownBinary, _
coordinateSystemId)
public override DbGeometry GeometryPolygonFromBinary(
byte[] polygonWellKnownBinary,
int coordinateSystemId
)
public:
virtual DbGeometry^ GeometryPolygonFromBinary(
array<unsigned char>^ polygonWellKnownBinary,
int coordinateSystemId
) override
abstract GeometryPolygonFromBinary :
polygonWellKnownBinary:byte[] *
coordinateSystemId:int -> DbGeometry
override GeometryPolygonFromBinary :
polygonWellKnownBinary:byte[] *
coordinateSystemId:int -> DbGeometry
public override function GeometryPolygonFromBinary(
polygonWellKnownBinary : byte[],
coordinateSystemId : int
) : DbGeometry
參數
- polygonWellKnownBinary
類型:System.Byte[]
包含幾何值的已知二進位表示法的位元組陣列。
- coordinateSystemId
類型:System.Int32
新的 DbGeometry 值應該使用的座標系統的識別項。
傳回值
類型:System.Data.Entity.Spatial.DbGeometry
新的 DbGeometry 值,由具有指定的座標系統識別項 (SRID) (DefaultCoordinateSystemId) 的已知二進位值所定義。