Class FeatureCollection

    • Constructor Detail

      • FeatureCollection

        public FeatureCollection()
        Constructor
      • FeatureCollection

        public FeatureCollection​(Feature feature)
        Constructor
        Parameters:
        feature - feature
      • FeatureCollection

        public FeatureCollection​(Collection<Feature> features)
        Constructor
        Parameters:
        features - collection of features
    • Method Detail

      • getFeatures

        public List<Feature> getFeatures()
        Get the features
        Returns:
        collection of features
      • setFeatures

        public void setFeatures​(Collection<Feature> features)
        Set the features
        Parameters:
        features - collection of features
      • addFeature

        public void addFeature​(Feature feature)
        Add a feature
        Parameters:
        feature - feature
      • addFeatures

        public void addFeatures​(Collection<Feature> features)
        Add the features
        Parameters:
        features - collection of features
      • numFeatures

        public int numFeatures()
        Get the number of features
        Returns:
        feature count
      • getFeature

        public Feature getFeature​(int i)
        Get the feature at the index
        Parameters:
        i - index
        Returns:
        feature
      • getGeometryType

        public GeometryType getGeometryType()
        Get the geometry type
        Returns:
        geometry type
        Since:
        3.0.0
      • getPropertiesMap

        public Map<String,​String> getPropertiesMap()
        Get the properties map
        Returns:
        properties map
      • getType

        public String getType()
        Get the GeoJSON object type
        Specified by:
        getType in class GeoJsonObject
        Returns:
        GeoJSON object type