Condividi tramite


Metodo SqlSpatialServices.GeometryCollectionFromBinary

[Questa pagina è specifica della versione 6 di Entity Framework. La versione più recente è disponibile come pacchetto NuGet per "Entity Framework". Per ulteriori informazioni su Entity Framework, vedere la pagina msdn.com/data/ef.]

Crea un nuovo valore della raccolta DbGeometry in base al valore WKB e all'identificatore del sistema di coordinate (SRID) specificati.

Spazio dei nomi:  System.Data.Entity.SqlServer
Assembly:  EntityFramework.SqlServer (in EntityFramework.SqlServer.dll)

Sintassi

'Dichiarazione
Public Overrides Function GeometryCollectionFromBinary ( _
    geometryCollectionWellKnownBinary As Byte(), _
    coordinateSystemId As Integer _
) As DbGeometry
'Utilizzo
Dim instance As SqlSpatialServices 
Dim geometryCollectionWellKnownBinary As Byte()
Dim coordinateSystemId As Integer 
Dim returnValue As DbGeometry 

returnValue = instance.GeometryCollectionFromBinary(geometryCollectionWellKnownBinary, _
    coordinateSystemId)
public override DbGeometry GeometryCollectionFromBinary(
    byte[] geometryCollectionWellKnownBinary,
    int coordinateSystemId
)
public:
virtual DbGeometry^ GeometryCollectionFromBinary(
    array<unsigned char>^ geometryCollectionWellKnownBinary, 
    int coordinateSystemId
) override
abstract GeometryCollectionFromBinary : 
        geometryCollectionWellKnownBinary:byte[] * 
        coordinateSystemId:int -> DbGeometry  
override GeometryCollectionFromBinary : 
        geometryCollectionWellKnownBinary:byte[] * 
        coordinateSystemId:int -> DbGeometry
public override function GeometryCollectionFromBinary(
    geometryCollectionWellKnownBinary : byte[], 
    coordinateSystemId : int
) : DbGeometry

Parametri

  • geometryCollectionWellKnownBinary
    Tipo: System.Byte[]
    Matrice di byte che contiene una rappresentazione WKB del valore geometrico.
  • coordinateSystemId
    Tipo: System.Int32
    Identificatore del sistema di coordinate che deve essere utilizzato dal nuovo valore DbGeometry.

Valore restituito

Tipo: System.Data.Entity.Spatial.DbGeometry
Nuovo valore DbGeometry definito dal valore WKB con l'identificatore del sistema di coordinate specificato (DefaultCoordinateSystemId).

Vedere anche

Riferimento

SqlSpatialServices Classe

Spazio dei nomi System.Data.Entity.SqlServer