Package org.bremersee.geojson.model
Class FeatureCollection
- java.lang.Object
-
- org.bremersee.geojson.model.FeatureCollection
-
- All Implemented Interfaces:
Serializable
@Validated public class FeatureCollection extends Object implements Serializable
A collection of features.- Author:
- Christian Bremer
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
FeatureCollection.TypeEnum
The feature collection type.
-
Constructor Summary
Constructors Constructor Description FeatureCollection(BoundingBox bbox, List<Feature> features)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BoundingBox
getBbox()
Get bounding box.List<Feature>
getFeatures()
Get features.@NotNull FeatureCollection.TypeEnum
getType()
The feature collection type.void
setBbox(BoundingBox bbox)
Sets bounding box.void
setFeatures(List<Feature> features)
Sets features.void
setType(FeatureCollection.TypeEnum type)
Sets type.
-
-
-
Constructor Detail
-
FeatureCollection
public FeatureCollection(BoundingBox bbox, List<Feature> features)
-
-
Method Detail
-
getType
@NotNull public @NotNull FeatureCollection.TypeEnum getType()
The feature collection type.- Returns:
- type type
-
setType
public void setType(FeatureCollection.TypeEnum type)
Sets type.- Parameters:
type
- the type
-
getBbox
public BoundingBox getBbox()
Get bounding box.- Returns:
- bbox bbox
-
setBbox
public void setBbox(BoundingBox bbox)
Sets bounding box.- Parameters:
bbox
- the bbox
-
-