Class LatLonShape

    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private LatLonShape()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static Field[] createIndexableFields​(java.lang.String fieldName, double lat, double lon)
      create indexable fields for point geometry
      static Field[] createIndexableFields​(java.lang.String fieldName, Line line)
      create indexable fields for line geometry
      static Field[] createIndexableFields​(java.lang.String fieldName, Polygon polygon)
      create indexable fields for polygon geometry
      static Query newBoxQuery​(java.lang.String field, ShapeField.QueryRelation queryRelation, double minLatitude, double maxLatitude, double minLongitude, double maxLongitude)
      create a query to find all indexed geo shapes that intersect a defined bounding box
      static Query newLineQuery​(java.lang.String field, ShapeField.QueryRelation queryRelation, Line... lines)
      create a query to find all indexed geo shapes that intersect a provided linestring (or array of linestrings) note: does not support dateline crossing
      static Query newPolygonQuery​(java.lang.String field, ShapeField.QueryRelation queryRelation, Polygon... polygons)
      create a query to find all indexed geo shapes that intersect a provided polygon (or array of polygons) note: does not support dateline crossing
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • LatLonShape

        private LatLonShape()
    • Method Detail

      • createIndexableFields

        public static Field[] createIndexableFields​(java.lang.String fieldName,
                                                    Polygon polygon)
        create indexable fields for polygon geometry
      • createIndexableFields

        public static Field[] createIndexableFields​(java.lang.String fieldName,
                                                    Line line)
        create indexable fields for line geometry
      • createIndexableFields

        public static Field[] createIndexableFields​(java.lang.String fieldName,
                                                    double lat,
                                                    double lon)
        create indexable fields for point geometry
      • newBoxQuery

        public static Query newBoxQuery​(java.lang.String field,
                                        ShapeField.QueryRelation queryRelation,
                                        double minLatitude,
                                        double maxLatitude,
                                        double minLongitude,
                                        double maxLongitude)
        create a query to find all indexed geo shapes that intersect a defined bounding box
      • newLineQuery

        public static Query newLineQuery​(java.lang.String field,
                                         ShapeField.QueryRelation queryRelation,
                                         Line... lines)
        create a query to find all indexed geo shapes that intersect a provided linestring (or array of linestrings) note: does not support dateline crossing
      • newPolygonQuery

        public static Query newPolygonQuery​(java.lang.String field,
                                            ShapeField.QueryRelation queryRelation,
                                            Polygon... polygons)
        create a query to find all indexed geo shapes that intersect a provided polygon (or array of polygons) note: does not support dateline crossing