Metodo SqlSpatialServices.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.SqlServer
Assembly: EntityFramework.SqlServer (in EntityFramework.SqlServer.dll)
Sintassi
'Dichiarazione
Public Overrides Function Relate ( _
geometryValue As DbGeometry, _
otherGeometry As DbGeometry, _
matrix As String _
) As Boolean
'Utilizzo
Dim instance As SqlSpatialServices
Dim geometryValue As DbGeometry
Dim otherGeometry As DbGeometry
Dim matrix As String
Dim returnValue As Boolean
returnValue = instance.Relate(geometryValue, _
otherGeometry, matrix)
public override bool Relate(
DbGeometry geometryValue,
DbGeometry otherGeometry,
string matrix
)
public:
virtual bool Relate(
DbGeometry^ geometryValue,
DbGeometry^ otherGeometry,
String^ matrix
) override
abstract Relate :
geometryValue:DbGeometry *
otherGeometry:DbGeometry *
matrix:string -> bool
override Relate :
geometryValue:DbGeometry *
otherGeometry:DbGeometry *
matrix:string -> bool
public override function Relate(
geometryValue : DbGeometry,
otherGeometry : DbGeometry,
matrix : String
) : boolean
Parametri
- geometryValue
Tipo: System.Data.Entity.Spatial.DbGeometry
Primo valore geometrico.
- otherGeometry
Tipo: System.Data.Entity.Spatial.DbGeometry
Valore geometrico che deve essere confrontato con il primo valore geometrico ai fini della relazione.
- 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 il valore geometryValue è correlato a otherGeometry in base alla matrice del pattern di intersezione specificato matrix. In caso contrario, false.