Package org.apache.lucene.spatial.geometry.shape

Examples of org.apache.lucene.spatial.geometry.shape.Rectangle


  public Shape getBoxShape(double latitude, double longitude, double miles)
  { 
    if (miles < MILES_FLOOR) {
      miles = MILES_FLOOR;
    }
    Rectangle box = DistanceUtils.getInstance().getBoundary(latitude, longitude, miles);
    double latY = box.getMaxPoint().getY();//box.getY();
    double latX = box.getMinPoint().getY() ; //box.getMaxY();
   
    double longY = box.getMaxPoint().getX(); ///box.getX();
    double longX = box.getMinPoint().getX();//box.getMaxX();
   
    CartesianTierPlotter ctp = new CartesianTierPlotter(2, projector,tierPrefix);
    int bestFit = ctp.bestFit(miles);
   
    log.info("Best Fit is : " + bestFit);
View Full Code Here

TOP

Related Classes of org.apache.lucene.spatial.geometry.shape.Rectangle

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.