Package org.bremersee.geojson.model
Class Geometry
- java.lang.Object
-
- org.bremersee.geojson.model.Geometry
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
GeometryCollection,LineString,MultiLineString,MultiPoint,MultiPolygon,Point,Polygon
@Validated public abstract class Geometry extends Object implements Serializable
GeoJSON Geometry.- Author:
- Christian Bremer
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGeometry.TypeEnumThe geometry type.
-
Constructor Summary
Constructors Constructor Description Geometry(BoundingBox bbox)Instantiates a new geometry.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BoundingBoxgetBbox()Get bounding box.@NotNull Geometry.TypeEnumgetType()The geometry type.voidsetBbox(BoundingBox bbox)Sets bbox.voidsetType(Geometry.TypeEnum type)Sets type.
-
-
-
Constructor Detail
-
Geometry
public Geometry(BoundingBox bbox)
Instantiates a new geometry.- Parameters:
bbox- the bbox
-
-
Method Detail
-
getType
@NotNull public @NotNull Geometry.TypeEnum getType()
The geometry type.- Returns:
- type type
-
setType
public void setType(Geometry.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 bbox.- Parameters:
bbox- the bbox
-
-