Class ShapeBuilders
- java.lang.Object
-
- org.elasticsearch.common.geo.builders.ShapeBuilders
-
@Deprecated public class ShapeBuilders extends java.lang.ObjectDeprecated.this class is replaced by each builder's constructor e.g. instead of usingShapeBuilders.newMultiPointusenew MultiPointBuilder()A collection of static methods for creating ShapeBuilders.
-
-
Constructor Summary
Constructors Constructor Description ShapeBuilders()Deprecated.
-
Method Summary
Modifier and Type Method Description static CircleBuildernewCircleBuilder()Deprecated.create a new Circlestatic EnvelopeBuildernewEnvelope(org.locationtech.jts.geom.Coordinate topLeft, org.locationtech.jts.geom.Coordinate bottomRight)Deprecated.create a new rectanglestatic GeometryCollectionBuildernewGeometryCollection()Deprecated.Create a new GeometryCollectionstatic LineStringBuildernewLineString(java.util.List<org.locationtech.jts.geom.Coordinate> list)Deprecated.Create a new lineStringstatic LineStringBuildernewLineString(CoordinatesBuilder coordinates)Deprecated.Create a new lineStringstatic MultiLineStringBuildernewMultiLinestring()Deprecated.Create a new Collection of lineStringsstatic MultiPointBuildernewMultiPoint(java.util.List<org.locationtech.jts.geom.Coordinate> points)Deprecated.Create a new set of pointsstatic MultiPolygonBuildernewMultiPolygon()Deprecated.Create a new Collection of polygonsstatic MultiPolygonBuildernewMultiPolygon(ShapeBuilder.Orientation orientation)Deprecated.Create a new Collection of polygonsstatic PointBuildernewPoint(double longitude, double latitude)Deprecated.Create a new pointstatic PointBuildernewPoint(org.locationtech.jts.geom.Coordinate coordinate)Deprecated.Create a newPointBuilderfrom aCoordinatestatic PolygonBuildernewPolygon(java.util.List<org.locationtech.jts.geom.Coordinate> shell)Deprecated.Create a new PolygonBuilderstatic PolygonBuildernewPolygon(CoordinatesBuilder shell)Deprecated.Create a new PolygonBuilder
-
-
-
Method Detail
-
newPoint
public static PointBuilder newPoint(double longitude, double latitude)
Deprecated.Create a new point- Parameters:
longitude- longitude of the pointlatitude- latitude of the point- Returns:
- a new
PointBuilder
-
newPoint
public static PointBuilder newPoint(org.locationtech.jts.geom.Coordinate coordinate)
Deprecated.Create a newPointBuilderfrom aCoordinate- Parameters:
coordinate- coordinate defining the position of the point- Returns:
- a new
PointBuilder
-
newMultiPoint
public static MultiPointBuilder newMultiPoint(java.util.List<org.locationtech.jts.geom.Coordinate> points)
Deprecated.Create a new set of points- Returns:
- new
MultiPointBuilder
-
newLineString
public static LineStringBuilder newLineString(java.util.List<org.locationtech.jts.geom.Coordinate> list)
Deprecated.Create a new lineString- Returns:
- a new
LineStringBuilder
-
newLineString
public static LineStringBuilder newLineString(CoordinatesBuilder coordinates)
Deprecated.Create a new lineString- Returns:
- a new
LineStringBuilder
-
newMultiLinestring
public static MultiLineStringBuilder newMultiLinestring()
Deprecated.Create a new Collection of lineStrings- Returns:
- a new
MultiLineStringBuilder
-
newPolygon
public static PolygonBuilder newPolygon(java.util.List<org.locationtech.jts.geom.Coordinate> shell)
Deprecated.Create a new PolygonBuilder- Returns:
- a new
PolygonBuilder
-
newPolygon
public static PolygonBuilder newPolygon(CoordinatesBuilder shell)
Deprecated.Create a new PolygonBuilder- Returns:
- a new
PolygonBuilder
-
newMultiPolygon
public static MultiPolygonBuilder newMultiPolygon()
Deprecated.Create a new Collection of polygons- Returns:
- a new
MultiPolygonBuilder
-
newMultiPolygon
public static MultiPolygonBuilder newMultiPolygon(ShapeBuilder.Orientation orientation)
Deprecated.Create a new Collection of polygons- Returns:
- a new
MultiPolygonBuilder
-
newGeometryCollection
public static GeometryCollectionBuilder newGeometryCollection()
Deprecated.Create a new GeometryCollection- Returns:
- a new
GeometryCollectionBuilder
-
newCircleBuilder
public static CircleBuilder newCircleBuilder()
Deprecated.create a new Circle- Returns:
- a new
CircleBuilder
-
newEnvelope
public static EnvelopeBuilder newEnvelope(org.locationtech.jts.geom.Coordinate topLeft, org.locationtech.jts.geom.Coordinate bottomRight)
Deprecated.create a new rectangle- Returns:
- a new
EnvelopeBuilder
-
-