Class GeometryCollection


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

      • GeometryCollection

        public GeometryCollection​(<? extends Geometry> geometries)
        Construct an instance with the given list of Geometry objects
        Parameters:
        geometries - the list of Geometry objects
      • GeometryCollection

        public GeometryCollection​(@Nullable
                                  CoordinateReferenceSystem coordinateReferenceSystem,
                                  <? extends Geometry> geometries)
        Construct an instance with the given list of Geometry objects
        Parameters:
        coordinateReferenceSystem - the coordinate reference system
        geometries - the list of Geometry objects
    • Method Detail

      • getGeometries

        public <? extends Geometry> getGeometries()
        Gets the list of Geometry objects in this collection.
        Returns:
        the list
      • equals

        public boolean equals​( o)
        Overrides:
        equals in class Geometry
      • toString

        public  toString()
        Overrides:
         in class