Condividi tramite


Metodo DbSpatialServices.Relate

[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.]

Determina se due valori DbGeometry specificati sono spazialmente correlati in base al pattern di intersezione DE-9IM (Dimensionally Extended Nine-Intersection Model).

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

Sintassi

'Dichiarazione
Public MustOverride Function Relate ( _
    geometryValue As DbGeometry, _
    otherGeometry As DbGeometry, _
    matrix As String _
) As Boolean
'Utilizzo
Dim instance As DbSpatialServices 
Dim geometryValue As DbGeometry 
Dim otherGeometry As DbGeometry 
Dim matrix As String 
Dim returnValue As Boolean 

returnValue = instance.Relate(geometryValue, _
    otherGeometry, matrix)
public abstract bool Relate(
    DbGeometry geometryValue,
    DbGeometry otherGeometry,
    string matrix
)
public:
virtual bool Relate(
    DbGeometry^ geometryValue, 
    DbGeometry^ otherGeometry, 
    String^ matrix
) abstract
abstract Relate : 
        geometryValue:DbGeometry * 
        otherGeometry:DbGeometry * 
        matrix:string -> bool
public abstract function Relate(
    geometryValue : DbGeometry, 
    otherGeometry : DbGeometry, 
    matrix : String
) : boolean

Parametri

  • matrix
    Tipo: System.String
    Stringa che contiene la rappresentazione di testo del pattern di intersezione (DE-9IM) che definisce la relazione.

Valore restituito

Tipo: System.Boolean
true se questo valore geometryValue è correlato ad otherGeometry in base alla matrice del pattern di intersezione specificato. In caso contrario, false.

Eccezioni

Eccezione Condizione
ArgumentNullException

geometryValue, otherGeometry o matrix è Null.

ArgumentException

geometryValue o otherGeometry non è compatibile con l'implementazione spaziale dei servizi.

Vedere anche

Riferimento

DbSpatialServices Classe

Spazio dei nomi System.Data.Entity.Spatial