Package com.rometools.modules.georss
Class GeoRSSModule
- java.lang.Object
-
- com.rometools.rome.feed.module.ModuleImpl
-
- com.rometools.modules.georss.GeoRSSModule
-
- All Implemented Interfaces:
CopyFrom,Module,Serializable,Cloneable
- Direct Known Subclasses:
GMLModuleImpl,SimpleModuleImpl,W3CGeoModuleImpl
public abstract class GeoRSSModule extends ModuleImpl implements Cloneable
GeoRSSModule is the main georss interface defining the methods to produce and consume georss elements.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected AbstractGeometrygeometrystatic StringGEORSS_GEORSS_URInamespace URI for georss simple: "http://www.georss.org/georss"static StringGEORSS_GML_URInamespace URI for GML georss : "http://www.opengis.net/gml"static StringGEORSS_W3CGEO_URInamespace URI for w3c georss : "http://www.w3.org/2003/01/geo/wgs84_pos#"static org.jdom2.NamespaceGML_NSNamespace for gml georss : xmlns:gml="http://www.opengis.net/gml"static org.jdom2.NamespaceSIMPLE_NSNamespace for georss simple : xmlns:georss="http://www.georss.org/georss"static Stringversionstatic org.jdom2.NamespaceW3CGEO_NSNamespace for w3c georss : xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#"
-
Constructor Summary
Constructors Modifier Constructor Description protectedGeoRSSModule(Class<? extends GeoRSSModule> beanClass, String uri)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectclone()voidcopyFrom(CopyFrom obj)DoublegetElev()returns the elev of georss elementStringgetFeatureNameTag()The Feature Name tag of GeoRSS elementStringgetFeatureTypeTag()The Feature Type tag of GeoRSS elementIntegergetFloor()returns the floor of georss elementAbstractGeometrygetGeometry()returns the geometryPositiongetPosition()Convenience method to return point geometry.DoublegetRadius()returns the radius of georss elementStringgetRelationshipTag()The Relationship tag of GeoRSS elementvoidsetElev(Double elev)Elevation, specified in GeoRSS elements, can be expressed as "elev".voidsetFeatureNameTag(String featureNameTag)Set Feature Name tag of GeoRSS elementvoidsetFeatureTypeTag(String featureTypeTag)Set Feature Type tag of GeoRSS elementvoidsetFloor(Integer floor)Elevation, specified in GeoRSS elements, can be expressed as "floor".voidsetGeometry(AbstractGeometry geometry)Set geometry of georss elementvoidsetPosition(Position pos)Convenience method to set point geometry.voidsetRadius(Double radius)"radius" indicates the size in meters of a radius or buffer around the geometry object, for example, radius of circular area around a point geometry.voidsetRelationshipTag(String relationshipTag)Set Relationship tag of GeoRSS element-
Methods inherited from class com.rometools.rome.feed.module.ModuleImpl
equals, getUri, hashCode, toString
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.rometools.rome.feed.CopyFrom
getInterface
-
-
-
-
Field Detail
-
geometry
protected AbstractGeometry geometry
-
version
public static final String version
- See Also:
- Constant Field Values
-
GEORSS_GEORSS_URI
public static final String GEORSS_GEORSS_URI
namespace URI for georss simple: "http://www.georss.org/georss"- See Also:
- Constant Field Values
-
GEORSS_W3CGEO_URI
public static final String GEORSS_W3CGEO_URI
namespace URI for w3c georss : "http://www.w3.org/2003/01/geo/wgs84_pos#"- See Also:
- Constant Field Values
-
GEORSS_GML_URI
public static final String GEORSS_GML_URI
namespace URI for GML georss : "http://www.opengis.net/gml"- See Also:
- Constant Field Values
-
SIMPLE_NS
public static final org.jdom2.Namespace SIMPLE_NS
Namespace for georss simple : xmlns:georss="http://www.georss.org/georss"
-
W3CGEO_NS
public static final org.jdom2.Namespace W3CGEO_NS
Namespace for w3c georss : xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#"
-
GML_NS
public static final org.jdom2.Namespace GML_NS
Namespace for gml georss : xmlns:gml="http://www.opengis.net/gml"
-
-
Constructor Detail
-
GeoRSSModule
protected GeoRSSModule(Class<? extends GeoRSSModule> beanClass, String uri)
-
-
Method Detail
-
setGeometry
public void setGeometry(AbstractGeometry geometry)
Set geometry of georss element- Parameters:
geometry- geometry
-
getGeometry
public AbstractGeometry getGeometry()
returns the geometry- Returns:
- geometry
-
getFeatureTypeTag
public String getFeatureTypeTag()
The Feature Type tag of GeoRSS element- Returns:
- Feature Type tag
-
setFeatureTypeTag
public void setFeatureTypeTag(String featureTypeTag)
Set Feature Type tag of GeoRSS element- Parameters:
featureTypeTag-
-
getRelationshipTag
public String getRelationshipTag()
The Relationship tag of GeoRSS element- Returns:
- Relationship tag
-
setRelationshipTag
public void setRelationshipTag(String relationshipTag)
Set Relationship tag of GeoRSS element- Parameters:
relationshipTag-
-
getFeatureNameTag
public String getFeatureNameTag()
The Feature Name tag of GeoRSS element- Returns:
- Feature Name tag
-
setFeatureNameTag
public void setFeatureNameTag(String featureNameTag)
Set Feature Name tag of GeoRSS element- Parameters:
featureNameTag-
-
setElev
public void setElev(Double elev)
Elevation, specified in GeoRSS elements, can be expressed as "elev". "elev" is meant to contain "common" GPS elevation readings, i.e. height in meters from the WGS84 ellipsoid, which is a reading that should be easy to get from any GPS device. Set elev of georss element- Parameters:
elev- elev
-
getElev
public Double getElev()
returns the elev of georss element- Returns:
- elev
-
setFloor
public void setFloor(Integer floor)
Elevation, specified in GeoRSS elements, can be expressed as "floor". "floor" is meant to contain the floor number of a building. Set floor of georss element- Parameters:
floor- floor
-
getFloor
public Integer getFloor()
returns the floor of georss element- Returns:
- floor
-
setRadius
public void setRadius(Double radius)
"radius" indicates the size in meters of a radius or buffer around the geometry object, for example, radius of circular area around a point geometry. Set radius of georss element- Parameters:
radius- radius
-
getRadius
public Double getRadius()
returns the radius of georss element- Returns:
- radius
-
getPosition
public Position getPosition()
Convenience method to return point geometry. Returns null if the geometry is non-point.- Returns:
- geometry
-
setPosition
public void setPosition(Position pos)
Convenience method to set point geometry.
-
clone
public Object clone() throws CloneNotSupportedException
- Specified by:
clonein interfaceModule- Overrides:
clonein classModuleImpl- Throws:
CloneNotSupportedException
-
-