Examples of SinusoidalProjector


Examples of org.apache.lucene.spatial.tier.projections.SinusoidalProjector

      String stringValue = GeoHashUtils.encode(lat, lng);

      addField(doc, key + "`latr", Math.toRadians(lat));
      addField(doc, key + "`lngr", Math.toRadians(lng));

      IProjector projector = new SinusoidalProjector();
      for (int tier = MIN_TIER; tier <= MAX_TIER; tier++) {
        CartesianTierPlotter ctp = new CartesianTierPlotter(tier,
            projector, key + "`tier_");
        addField(doc, key + "`tier_" + tier, ctp.getTierBoxId(lat, lng));
      }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.