Package org.h2gis.functions.io.gpx.model
Class GPXLine
java.lang.Object
org.h2gis.functions.io.gpx.model.GPXLine
This class giving is used to manage route and track data
- Author:
- Erwan Bocher
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal Object[]Gives access to the route or track's valuesfinal voidsetAttribute(String currentElement, StringBuilder contentBuffer) Set an attribute for a line.final voidsetCmt(StringBuilder contentBuffer) Set the comment of a route or a track.final voidsetDesc(StringBuilder contentBuffer) Set the description of a route or a track.final voidSet extentions of a route or a track to true.final voidsetGeometry(org.locationtech.jts.geom.Geometry geometry) Set the geometry of a route or a track.final voidsetLink(StringBuilder contentBuffer) Set a link to additional information about the route or the track.final voidsetLink(Attributes attributes) Set a link to additional information about the route or the track.final voidsetLinkText(StringBuilder contentBuffer) Set a text of hyperlink given in link.final voidsetName(StringBuilder contentBuffer) Set the name of a route or a track.final voidsetNumber(StringBuilder contentBuffer) Set the GPS number to additional information about the route or the track.final voidsetSrc(StringBuilder contentBuffer) Set the source of data of a route or a track.final voidsetType(StringBuilder contentBuffer) Set the type (classification) of a route or a track.final voidSet an object in corresponding index.
-
Constructor Details
-
GPXLine
public GPXLine(int numberOfValues)
-
-
Method Details
-
setGeometry
public final void setGeometry(org.locationtech.jts.geom.Geometry geometry) Set the geometry of a route or a track.- Parameters:
geometry- a geoetry (linestring or MultiLineString) representing the route or the track
-
setAttribute
Set an attribute for a line. The String currentElement gives the information of which attribute have to be setted. The attribute to set is given by the StringBuilder contentBuffer.- Parameters:
currentElement- a string presenting the text of the current markup.contentBuffer- it contains all informations about the current element.
-
setName
Set the name of a route or a track.- Parameters:
contentBuffer- Contains the information to put in the table
-
setCmt
Set the comment of a route or a track.- Parameters:
contentBuffer- Contains the information to put in the table
-
setDesc
Set the description of a route or a track.- Parameters:
contentBuffer- Contains the information to put in the table
-
setSrc
Set the source of data of a route or a track.- Parameters:
contentBuffer- Contains the information to put in the table
-
setLink
Set a link to additional information about the route or the track.- Parameters:
attributes- The current attributes being parsed
-
setLink
Set a link to additional information about the route or the track.- Parameters:
contentBuffer- Contains the information to put in the table
-
setLinkText
Set a text of hyperlink given in link.- Parameters:
contentBuffer- Contains the information to put in the table
-
setNumber
Set the GPS number to additional information about the route or the track.- Parameters:
contentBuffer- Contains the information to put in the table
-
setType
Set the type (classification) of a route or a track.- Parameters:
contentBuffer- Contains the information to put in the table
-
setExtensions
public final void setExtensions()Set extentions of a route or a track to true. -
getValues
Gives access to the route or track's values- Returns:
- a row containing informations about the route or track
-
setValue
Set an object in corresponding index.- Parameters:
i- the indexvalue- the value to insert
-