Class RandomGeoGenerator

java.lang.Object
org.elasticsearch.test.geo.RandomGeoGenerator

public class RandomGeoGenerator extends Object
Random geo generation utilities for randomized geo_point type testing does not depend on jts or spatial4j.
  • Constructor Details

    • RandomGeoGenerator

      public RandomGeoGenerator()
  • Method Details

    • randomPoint

      public static void randomPoint(Random r, double[] pt)
    • randomPointIn

      public static void randomPointIn(Random r, double minLon, double minLat, double maxLon, double maxLat, double[] pt)
    • randomPoint

      public static GeoPoint randomPoint(Random r)
    • randomPointIn

      public static GeoPoint randomPointIn(Random r, double minLon, double minLat, double maxLon, double maxLat)