Package org.bremersee.geojson.model
Class Feature
- java.lang.Object
-
- org.bremersee.geojson.model.Feature
-
- All Implemented Interfaces:
Serializable
@Validated public class Feature extends Object implements Serializable
A Feature object represents a spatially bounded thing.- Author:
- Christian Bremer
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFeature.TypeEnumThe feature type.
-
Constructor Summary
Constructors Constructor Description Feature(String id, BoundingBox bbox, Geometry geometry, Object properties)Instantiates a new feature.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BoundingBoxgetBbox()Get bounding box.GeometrygetGeometry()Get geometry.StringgetId()The identifier of this feature.ObjectgetProperties()The feature properties.@NotNull Feature.TypeEnumgetType()The feature type.voidsetBbox(BoundingBox bbox)Sets bounding box.voidsetGeometry(Geometry geometry)Sets geometry.voidsetId(String id)Sets id.voidsetProperties(Object properties)Sets properties.voidsetType(Feature.TypeEnum type)Sets type.
-
-
-
Constructor Detail
-
Feature
public Feature(String id, BoundingBox bbox, Geometry geometry, Object properties)
Instantiates a new feature.- Parameters:
id- the idbbox- the bboxgeometry- the geometryproperties- the properties
-
-
Method Detail
-
getType
@NotNull public @NotNull Feature.TypeEnum getType()
The feature type.- Returns:
- type type
-
setType
public void setType(Feature.TypeEnum type)
Sets type.- Parameters:
type- the type
-
getId
public String getId()
The identifier of this feature.- Returns:
- id id
-
setId
public void setId(String id)
Sets id.- Parameters:
id- the id
-
getBbox
public BoundingBox getBbox()
Get bounding box.- Returns:
- bbox bbox
-
setBbox
public void setBbox(BoundingBox bbox)
Sets bounding box.- Parameters:
bbox- the bbox
-
getGeometry
public Geometry getGeometry()
Get geometry.- Returns:
- geometry geometry
-
setGeometry
public void setGeometry(Geometry geometry)
Sets geometry.- Parameters:
geometry- the geometry
-
getProperties
public Object getProperties()
The feature properties.- Returns:
- properties properties
-
setProperties
public void setProperties(Object properties)
Sets properties.- Parameters:
properties- the properties
-
-