Condividi tramite


Metodo SqlSpatialFunctions.Reduce (DbGeography, Nullable<Double>)

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

Restituisce l'approssimazione dell'istanza geografica specificata prodotta dall'esecuzione dell'algoritmo Douglas-Peucker sull'istanza con la tolleranza specificata.

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

Sintassi

'Dichiarazione
<SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId := "tolerance")> _
<DbFunctionAttribute("SqlServer", "REDUCE")> _
<SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId := "geographyValue")> _
Public Shared Function Reduce ( _
    geographyValue As DbGeography, _
    tolerance As Nullable(Of Double) _
) As DbGeography
'Utilizzo
Dim geographyValue As DbGeography 
Dim tolerance As Nullable(Of Double)
Dim returnValue As DbGeography 

returnValue = SqlSpatialFunctions.Reduce(geographyValue, _
    tolerance)
[SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "tolerance")]
[DbFunctionAttribute("SqlServer", "REDUCE")]
[SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "geographyValue")]
public static DbGeography Reduce(
    DbGeography geographyValue,
    Nullable<double> tolerance
)
[SuppressMessageAttribute(L"Microsoft.Usage", L"CA1801:ReviewUnusedParameters", MessageId = L"tolerance")]
[DbFunctionAttribute(L"SqlServer", L"REDUCE")]
[SuppressMessageAttribute(L"Microsoft.Usage", L"CA1801:ReviewUnusedParameters", MessageId = L"geographyValue")]
public:
static DbGeography^ Reduce(
    DbGeography^ geographyValue, 
    Nullable<double> tolerance
)
[<SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "tolerance")>]
[<DbFunctionAttribute("SqlServer", "REDUCE")>]
[<SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "geographyValue")>]
static member Reduce : 
        geographyValue:DbGeography * 
        tolerance:Nullable<float> -> DbGeography
public static function Reduce(
    geographyValue : DbGeography, 
    tolerance : Nullable<double>
) : DbGeography

Parametri

  • tolerance
    Tipo: System.Nullable<Double>
    La tolleranza da specificare per l'algoritmo Douglas-Peucker. Deve essere un numero positivo.

Valore restituito

Tipo: System.Data.Entity.Spatial.DbGeography
Restituisce il valore DbGeography.

Vedere anche

Riferimento

SqlSpatialFunctions Classe

Overload Reduce

Spazio dei nomi System.Data.Entity.SqlServer