Package org.bremersee.geojson
Class GeometryWrapper
- java.lang.Object
-
- org.bremersee.geojson.GeometryWrapper
-
- All Implemented Interfaces:
Serializable,Cloneable
public class GeometryWrapper extends Object implements Serializable, Cloneable
This class wraps a geometry and can be processed by the Jackson JSON processor without registering theGeoJsonObjectMapperModule.The geometry is an instance of the JTS Topology Suite (see http://www.vividsolutions.com).
- Author:
- Christian Bremer
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classGeometryWrapper.DeserializerDeserializer for the GeoJSON geometry wrapper class.protected static classGeometryWrapper.SerializerSerializer for the GeoJSON geometry wrapper class.
-
Constructor Summary
Constructors Constructor Description GeometryWrapper()Default constructor.GeometryWrapper(org.locationtech.jts.geom.Geometry geometry)Constructs a GeoJSON geometry wrapper with the specified geometry.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GeometryWrapperclone()booleanequals(Object obj)org.locationtech.jts.geom.GeometrygetGeometry()Gets the geometry.inthashCode()voidsetGeometry(org.locationtech.jts.geom.Geometry geometry)Sets the geometry.StringtoString()
-
-
-
Method Detail
-
getGeometry
public org.locationtech.jts.geom.Geometry getGeometry()
Gets the geometry.- Returns:
- the geometry
-
setGeometry
public void setGeometry(org.locationtech.jts.geom.Geometry geometry)
Sets the geometry.- Parameters:
geometry- the geometry
-
clone
public GeometryWrapper clone()
-
-