Package org.h2gis.functions.io.osm
Class OSMElement
java.lang.Object
org.h2gis.functions.io.osm.OSMElement
- Direct Known Subclasses:
NodeOSMElement,WayOSMElement
A class to manage all common element properties.
- Author:
- Erwan Bocher
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanintlonggetID()The id of the elementgetName()getTags()longgetUID()getUser()The userintbooleanvoidsetChangeset(String changeset) voidSet an id to the elementvoidvoidsetTimestamp(String OSMtime) voidvoidvoidsetVersion(String version) voidsetVisible(String visible)
-
Constructor Details
-
OSMElement
public OSMElement()
-
-
Method Details
-
getID
public long getID()The id of the element- Returns:
-
setId
Set an id to the element- Parameters:
id-
-
getUser
The user- Returns:
-
setUser
-
getUID
public long getUID() -
setUid
-
getName
- Returns:
- The way name (extracted from tag)
-
setName
- Parameters:
name- Way name
-
getVisible
public boolean getVisible()- Returns:
-
setVisible
-
getVersion
public int getVersion()- Returns:
-
setVersion
-
getChangeSet
public int getChangeSet()- Returns:
-
setChangeset
-
getTimeStamp
- Returns:
-
setTimestamp
- Throws:
SAXException
-
addTag
- Parameters:
key-value-- Returns:
- True if the tag should be inserted in the tag table.
-
getTags
-