Class MultiPolygon


  • public final class MultiPolygon
    extends Geometry
    A representation of a GeoJSON MultiPolygon.
    Since:
    3.1
    • Constructor Detail

      • MultiPolygon

        public MultiPolygon​(java.util.List<PolygonCoordinates> coordinates)
        Construct an instance.
        Parameters:
        coordinates - the coordinates
      • MultiPolygon

        public MultiPolygon​(@Nullable
                            CoordinateReferenceSystem coordinateReferenceSystem,
                            java.util.List<PolygonCoordinates> coordinates)
        Construct an instance.
        Parameters:
        coordinateReferenceSystem - the coordinate reference system
        coordinates - the coordinates
    • Method Detail

      • getCoordinates

        public java.util.List<PolygonCoordinates> getCoordinates()
        Gets the coordinates.
        Returns:
        the coordinates
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class Geometry
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object