Class AbstractGeoJsonFeatureCollection<F extends AbstractGeoJsonFeature>

  • Type Parameters:
    F - the feature type parameter
    Direct Known Subclasses:
    GeoJsonFeatureCollection

    public abstract class AbstractGeoJsonFeatureCollection<F extends AbstractGeoJsonFeature>
    extends org.bremersee.common.model.UnknownAware
    A GeoJSON object with the type FeatureCollection is a feature collection object (see rfc7946 section 3.3).
    Author:
    Christian Bremer
    • Constructor Detail

      • AbstractGeoJsonFeatureCollection

        protected AbstractGeoJsonFeatureCollection()
        Instantiates a new abstract geo json feature collection.
    • Method Detail

      • getFeatures

        public List<F> getFeatures()
        Return the features of this collection.
        Returns:
        the features of this collection
      • setFeatures

        public void setFeatures​(List<F> features)
        Set the faetures of this collection.
        Parameters:
        features - the feature
      • getBbox

        public double[] getBbox()
        Return the bounding box of the GeoJSON object or null if there is no such object (see Bounding Box).
        Returns:
        the bounding box
      • setBbox

        public void setBbox​(double[] bbox)
        Set the bounding box of the GeoJSON object.
        Parameters:
        bbox - the bounding box to set
      • equals

        public boolean equals​(Object o)
        Overrides:
        equals in class org.bremersee.common.model.UnknownAware
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class org.bremersee.common.model.UnknownAware
      • toString

        public String toString()
        Overrides:
        toString in class org.bremersee.common.model.UnknownAware