C# 클래스 Lucene.Net.Spatial.Queries.SpatialArgs

파일 보기 프로젝트 열기: apache/lucenenet 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
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