Class MultiPolygonBuilder

    • Constructor Detail

      • MultiPolygonBuilder

        public MultiPolygonBuilder()
        Build a MultiPolygonBuilder with RIGHT orientation.
      • MultiPolygonBuilder

        public MultiPolygonBuilder​(ShapeBuilder.Orientation orientation)
        Build a MultiPolygonBuilder with an arbitrary orientation.
      • MultiPolygonBuilder

        public MultiPolygonBuilder​(StreamInput in)
        Read from a stream.
    • Method Detail

      • polygons

        public java.util.List<PolygonBuilder> polygons()
        get the list of polygons
      • buildS4J

        public org.locationtech.spatial4j.shape.Shape buildS4J()
        Description copied from class: ShapeBuilder
        Create a new Shape from this builder. Since calling this method could change the defined shape. (by inserting new coordinates or change the position of points) the builder looses its validity. So this method should only be called once on a builder
        Specified by:
        buildS4J in class ShapeBuilder
        new Shape defined by the builder
      • buildLucene

        public java.lang.Object buildLucene()
        Description copied from class: ShapeBuilder
        build lucene geometry.
        Specified by:
        buildLucene in class ShapeBuilder
        GeoPoint, double[][], Line, Line[], Polygon, Polygon[], Rectangle, Object[]
      • equals

        public boolean equals​(java.lang.Object obj)
        equals in class ShapeBuilder