C# Class Lucene.Net.Spatial.Queries.SpatialArgs

显示文件 Open project: apache/lucenenet Class Usage Examples

Public Properties

Property Type Description
DEFAULT_DISTERRPCT double

Public Methods

Method Description
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

Method Details

CalcDistanceFromErrPct() public static method

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
return double

ResolveDistErr() public method

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
return double

SpatialArgs() public method

public SpatialArgs ( SpatialOperation operation, IShape shape ) : Spatial4n.Core.Context
operation SpatialOperation
shape IShape
return Spatial4n.Core.Context

ToString() public method

public ToString ( ) : string
return string

Validate() public method

Check if the arguments make sense -- throw an exception if not
public Validate ( ) : void
return void

Property Details

DEFAULT_DISTERRPCT public_oe static_oe property

public static double DEFAULT_DISTERRPCT
return double