Example usage for org.apache.lucene.spatial.query SpatialArgs calcDistanceFromErrPct

List of usage examples for org.apache.lucene.spatial.query SpatialArgs calcDistanceFromErrPct

Introduction

In this page you can find the example usage for org.apache.lucene.spatial.query SpatialArgs calcDistanceFromErrPct.

Prototype

public static double calcDistanceFromErrPct(Shape shape, double distErrPct, SpatialContext ctx) 

Source Link

Document

Computes the distance given a shape and the distErrPct .

Usage

From source file:org.apache.blur.analysis.type.spatial.lucene.PrefixTreeStrategy.java

License:Apache License

@Override
public Field[] createIndexableFields(Shape shape) {
    double distErr = SpatialArgs.calcDistanceFromErrPct(shape, distErrPct, ctx);
    return createIndexableFields(shape, distErr);
}