Package org.h2gis.functions.io.gpx.model
Class GPXPoint
java.lang.Object
org.h2gis.functions.io.gpx.model.GPXPoint
This class gives bvalues for every types of points (waypoint, routepoint
and trackpoint).
- Author:
- Erwan Bocher
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclearValues(int valuesCount) This method is used to create a new array of valuesfinal Object[]Gives access to the point's valuesfinal voidsetAgeofdgpsdata(StringBuilder contentBuffer) Set number of seconds since last DGPS update for a point.final voidsetAttribute(String currentElement, StringBuilder contentBuffer) Set an attribute for a point.final voidsetCmt(StringBuilder contentBuffer) Set the comment of a point.final voidsetDesc(StringBuilder contentBuffer) Set the description of a point.final voidsetDgpsid(StringBuilder contentBuffer) Set ID of DGPS station used in differential correction for a point.final voidsetElevation(StringBuilder contentBuffer) Set the elevation (in meters) of a point.final voidSet extentions of a point to true.final voidsetFix(StringBuilder contentBuffer) Set the type of GPX fix used for a point.final voidsetGeoidheight(StringBuilder contentBuffer) Set the height (in meters) of geoid (mean sea level) above WGS84 earth ellipsoid of a point.final voidsetHdop(StringBuilder contentBuffer) Set the horizontal dilution of precision of a point.final voidsetLink(StringBuilder contentBuffer) Set a link to additional information about the point.final voidsetLink(Attributes attributes) Set a link to additional information about the point.final voidsetLinkText(StringBuilder contentBuffer) Set a text of hyperlink given in link.final voidsetMagvar(StringBuilder contentBuffer) Set the Magnetic variation (in degrees) of a point.final voidsetName(StringBuilder contentBuffer) Set the name of a point.final voidsetPdop(StringBuilder contentBuffer) Set the position dilution of precision of a point.final voidsetSat(StringBuilder contentBuffer) Set the number of satellites used to calculate the GPX fix for a point.final voidsetSrc(StringBuilder contentBuffer) Set the source of data of a point.final voidsetSym(StringBuilder contentBuffer) Set the GPS symbol name of a point.final voidsetTime(StringBuilder contentBuffer) Creation/modification timestamp for element.final voidsetType(StringBuilder contentBuffer) Set the type (classification) of a point.final voidSet a Value in corresponding index.final voidsetVdop(StringBuilder contentBuffer) Set the vertical dilution of precision of a point.
-
Constructor Details
-
GPXPoint
public GPXPoint(int numberOfValues)
-
-
Method Details
-
clearValues
public void clearValues(int valuesCount) This method is used to create a new array of values- Parameters:
valuesCount-
-
setAttribute
Set an attribute for a point. 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.
-
setElevation
Set the elevation (in meters) of a point.- Parameters:
contentBuffer- Contains the information to put in the table
-
setTime
Creation/modification timestamp for element. Date and time in are in Univeral Coordinated Time (UTC), not local time! Conforms to ISO 8601 specification for date/time representation. Fractional seconds are allowed for millisecond timing in tracklogs.- Parameters:
contentBuffer- Contains the information to put in the table
-
setMagvar
Set the Magnetic variation (in degrees) of a point.- Parameters:
contentBuffer- Contains the information to put in the table
-
setGeoidheight
Set the height (in meters) of geoid (mean sea level) above WGS84 earth ellipsoid of a point.- Parameters:
contentBuffer- Contains the information to put in the table
-
setName
Set the name of a point.- Parameters:
contentBuffer- Contains the information to put in the table
-
setCmt
Set the comment of a point.- Parameters:
contentBuffer- Contains the information to put in the table
-
setDesc
Set the description of a point.- Parameters:
contentBuffer- Contains the information to put in the table
-
setSrc
Set the source of data of a point.- Parameters:
contentBuffer- Contains the information to put in the table
-
setLink
Set a link to additional information about the point.- Parameters:
attributes- The current attributes being parsed
-
setLink
Set a link to additional information about the point.- 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
-
setSym
Set the GPS symbol name of a point.- Parameters:
contentBuffer- Contains the information to put in the table
-
setType
Set the type (classification) of a point.- Parameters:
contentBuffer- Contains the information to put in the table
-
setFix
Set the type of GPX fix used for a point.- Parameters:
contentBuffer- Contains the information to put in the table
-
setSat
Set the number of satellites used to calculate the GPX fix for a point.- Parameters:
contentBuffer- Contains the information to put in the table
-
setHdop
Set the horizontal dilution of precision of a point.- Parameters:
contentBuffer- Contains the information to put in the table
-
setVdop
Set the vertical dilution of precision of a point.- Parameters:
contentBuffer- Contains the information to put in the table
-
setPdop
Set the position dilution of precision of a point.- Parameters:
contentBuffer- Contains the information to put in the table
-
setAgeofdgpsdata
Set number of seconds since last DGPS update for a point.- Parameters:
contentBuffer- Contains the information to put in the table
-
setDgpsid
Set ID of DGPS station used in differential correction for a point.- Parameters:
contentBuffer- Contains the information to put in the table
-
setExtensions
public final void setExtensions()Set extentions of a point to true. -
getValues
Gives access to the point's values- Returns:
- a row containing informations about the point
-
setValue
Set a Value in corresponding index. It is used to set the corresponding id.- Parameters:
i- the indexvalue- the value to insert
-