public class GeometryEntity extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
PROPERTY_GEOMETRY |
| Constructor and Description |
|---|
GeometryEntity() |
| Modifier and Type | Method and Description |
|---|---|
Double |
getAlt() |
com.vividsolutions.jts.geom.Geometry |
getGeometry()
Returns the
Geometry. |
com.vividsolutions.jts.geom.Geometry |
getGeometry(String srid)
Returns the
Geometry or creates a Geometry with the given srid in case of geometry has
been set via lat/lon. |
Double |
getLat() |
Double |
getLon() |
boolean |
isEmpty() |
boolean |
isSetGeometry() |
boolean |
isSetLonLat() |
void |
setAlt(Double alt) |
GeometryEntity |
setGeometry(com.vividsolutions.jts.geom.Geometry geometry) |
void |
setLat(Double lat) |
void |
setLon(Double lon) |
String |
toString() |
public static final String PROPERTY_GEOMETRY
public boolean isSetGeometry()
public GeometryEntity setGeometry(com.vividsolutions.jts.geom.Geometry geometry)
public com.vividsolutions.jts.geom.Geometry getGeometry()
Geometry. Expects that a geometry with a valid SRID is available. Otherwise use
getGeometry(String) to obtain a geometry with spatial reference.public com.vividsolutions.jts.geom.Geometry getGeometry(String srid)
Geometry or creates a Geometry with the given srid in case of geometry has
been set via lat/lon.srid - the spatial referencepublic boolean isSetLonLat()
public Double getLon()
public void setLon(Double lon)
public Double getLat()
public void setLat(Double lat)
public Double getAlt()
public void setAlt(Double alt)
public boolean isEmpty()
Copyright © 2015–2017 52°North Initiative for Geospatial Open Source Software GmbH. All rights reserved.