C# Класс Lucene.Net.Spatial.Queries.SpatialArgs

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
DEFAULT_DISTERRPCT double

Открытые методы

Метод Описание
CalcDistanceFromErrPct ( IShape shape, double distErrPct, SpatialContext ctx ) : double

Computes the distance given a shape and the distErrPct. The algorithm is the fraction of the distance from the center of the query shape to its furthest bounding box corner.

ResolveDistErr ( SpatialContext ctx, double defaultDistErrPct ) : double

Gets the error distance that specifies how precise the query shape is. This looks at DistErr, DistErrPct, and defaultDistErrPct.

SpatialArgs ( SpatialOperation operation, IShape shape ) : Spatial4n.Core.Context
ToString ( ) : string
Validate ( ) : void

Check if the arguments make sense -- throw an exception if not

Описание методов

CalcDistanceFromErrPct() публичный статический Метод

Computes the distance given a shape and the distErrPct. The algorithm is the fraction of the distance from the center of the query shape to its furthest bounding box corner.
public static CalcDistanceFromErrPct ( IShape shape, double distErrPct, SpatialContext ctx ) : double
shape IShape Mandatory.
distErrPct double 0 to 0.5
ctx SpatialContext Mandatory
Результат double

ResolveDistErr() публичный Метод

Gets the error distance that specifies how precise the query shape is. This looks at DistErr, DistErrPct, and defaultDistErrPct.
public ResolveDistErr ( SpatialContext ctx, double defaultDistErrPct ) : double
ctx SpatialContext
defaultDistErrPct double 0 to 0.5
Результат double

SpatialArgs() публичный Метод

public SpatialArgs ( SpatialOperation operation, IShape shape ) : Spatial4n.Core.Context
operation SpatialOperation
shape IShape
Результат Spatial4n.Core.Context

ToString() публичный Метод

public ToString ( ) : string
Результат string

Validate() публичный Метод

Check if the arguments make sense -- throw an exception if not
public Validate ( ) : void
Результат void

Описание свойств

DEFAULT_DISTERRPCT публичное статическое свойство

public static double DEFAULT_DISTERRPCT
Результат double