sick of the horribly ugly formatting in this file. My eyes just can't take it anymore!

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@934860 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Grant Ingersoll 2010-04-16 13:15:34 +00:00
parent ea9cc21c5d
commit 5a10e41aa8
1 changed files with 80 additions and 83 deletions

View File

@ -17,16 +17,16 @@
package org.apache.lucene.spatial.tier;
import java.math.BigDecimal;
import java.math.RoundingMode;
import org.apache.lucene.search.Filter;
import org.apache.lucene.spatial.geometry.FloatLatLng;
import org.apache.lucene.spatial.geometry.LatLng;
import org.apache.lucene.spatial.geometry.shape.LLRect;
import org.apache.lucene.spatial.tier.projections.CartesianTierPlotter;
import org.apache.lucene.spatial.tier.projections.IProjector;
import org.apache.lucene.spatial.tier.projections.SinusoidalProjector;
import org.apache.lucene.spatial.geometry.LatLng;
import org.apache.lucene.spatial.geometry.FloatLatLng;
import org.apache.lucene.spatial.geometry.shape.LLRect;
import java.math.BigDecimal;
import java.math.RoundingMode;
/**
@ -46,8 +46,8 @@ public class CartesianPolyFilterBuilder {
private final String tierPrefix;
private int minTier;
private int maxTier;
/**
*
* @param tierPrefix The prefix for the name of the fields containing the tier info
* @param minTierIndexed The minimum tier level indexed
* @param maxTierIndexed The maximum tier level indexed
@ -58,8 +58,7 @@ public class CartesianPolyFilterBuilder {
this.maxTier = maxTierIndexed;
}
public Shape getBoxShape(double latitude, double longitude, double miles)
{
public Shape getBoxShape(double latitude, double longitude, double miles) {
if (miles < MILES_FLOOR) {
miles = MILES_FLOOR;
}
@ -127,8 +126,7 @@ public class CartesianPolyFilterBuilder {
return shape;
}
public Shape getShapeLoop(Shape shape, CartesianTierPlotter ctp, double latX, double longX, double latY, double longY)
{
public Shape getShapeLoop(Shape shape, CartesianTierPlotter ctp, double latX, double longX, double latY, double longY) {
//System.err.println("getShapeLoop:"+latY+"," + longY);
//System.err.println("getShapeLoop:"+latX+"," + longX);
@ -176,8 +174,7 @@ public class CartesianPolyFilterBuilder {
return shape;
}
public Filter getBoundingArea(double latitude, double longitude, double miles)
{
public Filter getBoundingArea(double latitude, double longitude, double miles) {
Shape shape = getBoxShape(latitude, longitude, miles);
return new CartesianShapeFilter(shape, shape.getTierId());
}