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 class
Feature.TypeEnum
The 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 BoundingBox
getBbox()
Get bounding box.Geometry
getGeometry()
Get geometry.String
getId()
The identifier of this feature.Object
getProperties()
The feature properties.@NotNull Feature.TypeEnum
getType()
The feature type.void
setBbox(BoundingBox bbox)
Sets bounding box.void
setGeometry(Geometry geometry)
Sets geometry.void
setId(String id)
Sets id.void
setProperties(Object properties)
Sets properties.void
setType(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
-
-