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)
                            throws java.io.IOException
        Read from a stream.
        Throws:
        java.io.IOException
    • 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
        Returns:
        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
        Returns:
        GeoPoint, double[][], Line, Line[], Polygon, Polygon[], Rectangle, Object[]
      • equals

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