Package org.n52.series.db.beans
Class GeometryEntity
- java.lang.Object
-
- org.n52.series.db.beans.GeometryEntity
-
- All Implemented Interfaces:
Serializable
public class GeometryEntity extends Object implements Serializable
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringPROPERTY_ALTstatic StringPROPERTY_GEOMETRYstatic StringPROPERTY_LATstatic StringPROPERTY_LONstatic StringPROPERTY_SRID
-
Constructor Summary
Constructors Constructor Description GeometryEntity()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GeometryEntitycopy(GeometryEntity entity)voidexpand(GeometryEntity entity)DoublegetAlt()org.locationtech.jts.geom.GeometrygetGeometry()Returns theGeometryor creates aGeometrywith the given srid in case of geometry has been set via lat/lon.org.locationtech.jts.geom.GeometryFactorygetGeometryFactory()DoublegetLat()DoublegetLon()intgetSrid()booleanisEmpty()booleanisSetGeometry()booleanisSetLonLat()voidsetAlt(Double alt)voidsetGeometry(org.locationtech.jts.geom.Geometry geometry)voidsetGeometryFactory(org.locationtech.jts.geom.GeometryFactory geometryFactory)voidsetLat(Double lat)voidsetLon(Double lon)GeometryEntitysetSrid(int srid)StringtoString()voidunion(GeometryEntity entity)
-
-
-
Field Detail
-
PROPERTY_GEOMETRY
public static final String PROPERTY_GEOMETRY
- See Also:
- Constant Field Values
-
PROPERTY_LAT
public static final String PROPERTY_LAT
- See Also:
- Constant Field Values
-
PROPERTY_LON
public static final String PROPERTY_LON
- See Also:
- Constant Field Values
-
PROPERTY_ALT
public static final String PROPERTY_ALT
- See Also:
- Constant Field Values
-
PROPERTY_SRID
public static final String PROPERTY_SRID
- See Also:
- Constant Field Values
-
-
Method Detail
-
isSetGeometry
public boolean isSetGeometry()
-
setGeometry
public void setGeometry(org.locationtech.jts.geom.Geometry geometry)
-
getGeometry
public org.locationtech.jts.geom.Geometry getGeometry()
Returns theGeometryor creates aGeometrywith the given srid in case of geometry has been set via lat/lon.- Returns:
- the geometry or a created geometry (with given srid)
-
isSetLonLat
public boolean isSetLonLat()
-
getLon
public Double getLon()
-
setLon
public void setLon(Double lon)
-
getLat
public Double getLat()
-
setLat
public void setLat(Double lat)
-
getAlt
public Double getAlt()
-
setAlt
public void setAlt(Double alt)
-
getSrid
public int getSrid()
-
setSrid
public GeometryEntity setSrid(int srid)
-
isEmpty
public boolean isEmpty()
-
getGeometryFactory
public org.locationtech.jts.geom.GeometryFactory getGeometryFactory()
-
setGeometryFactory
public void setGeometryFactory(org.locationtech.jts.geom.GeometryFactory geometryFactory)
-
union
public void union(GeometryEntity entity)
-
expand
public void expand(GeometryEntity entity)
-
copy
public GeometryEntity copy(GeometryEntity entity)
-
-