Metodo SqlSpatialServices.Distance (DbGeometry, DbGeometry)
[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.]
Calcola la distanza tra i punti più vicini in due valori DbGeometry.
Spazio dei nomi: System.Data.Entity.SqlServer
Assembly: EntityFramework.SqlServer (in EntityFramework.SqlServer.dll)
Sintassi
'Dichiarazione
Public Overrides Function Distance ( _
geometryValue As DbGeometry, _
otherGeometry As DbGeometry _
) As Double
'Utilizzo
Dim instance As SqlSpatialServices
Dim geometryValue As DbGeometry
Dim otherGeometry As DbGeometry
Dim returnValue As Double
returnValue = instance.Distance(geometryValue, _
otherGeometry)
public override double Distance(
DbGeometry geometryValue,
DbGeometry otherGeometry
)
public:
virtual double Distance(
DbGeometry^ geometryValue,
DbGeometry^ otherGeometry
) override
abstract Distance :
geometryValue:DbGeometry *
otherGeometry:DbGeometry -> float
override Distance :
geometryValue:DbGeometry *
otherGeometry:DbGeometry -> float
public override function Distance(
geometryValue : DbGeometry,
otherGeometry : DbGeometry
) : double
Parametri
- geometryValue
Tipo: System.Data.Entity.Spatial.DbGeometry
Primo valore geografico.
- otherGeometry
Tipo: System.Data.Entity.Spatial.DbGeometry
Secondo valore geografico.
Valore restituito
Tipo: System.Double
Valore Double che specifica la distanza tra i due punti più vicini in geographyValue e otherGeography.