Package org.openstreetmap.josm.io.rtklib
Class RtkLibPosReader
- java.lang.Object
-
- org.openstreetmap.josm.io.rtklib.RtkLibPosReader
-
- All Implemented Interfaces:
IGpxReader
public class RtkLibPosReader extends java.lang.Object implements IGpxReader
Reads a RTKLib Positioning Solution file.See RTKLIB Manual.
- Since:
- 15247
-
-
Field Summary
Fields Modifier and Type Field Description private GpxDatadataprivate static intIDX_AGEprivate static intIDX_DATEprivate static intIDX_HEIGHTprivate static intIDX_LATprivate static intIDX_LONprivate static intIDX_NSprivate static intIDX_Qprivate static intIDX_RATIOprivate static intIDX_SDEprivate static intIDX_SDEUprivate static intIDX_SDNprivate static intIDX_SDNEprivate static intIDX_SDUprivate static intIDX_SDUNprivate static intIDX_TIMEprivate java.io.InputStreamsourceprivate intsuccess
-
Constructor Summary
Constructors Constructor Description RtkLibPosReader(java.io.InputStream source)Constructs a newRtkLibPosReader
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GpxDatagetGpxData()Replies the GPX data.intgetNumberOfCoordinates()Returns the number of coordinates that have been successfully read.booleanparse(boolean tryToFinish)Parse the GPX data.
-
-
-
Field Detail
-
IDX_DATE
private static final int IDX_DATE
- See Also:
- Constant Field Values
-
IDX_TIME
private static final int IDX_TIME
- See Also:
- Constant Field Values
-
IDX_LAT
private static final int IDX_LAT
- See Also:
- Constant Field Values
-
IDX_LON
private static final int IDX_LON
- See Also:
- Constant Field Values
-
IDX_HEIGHT
private static final int IDX_HEIGHT
- See Also:
- Constant Field Values
-
IDX_Q
private static final int IDX_Q
- See Also:
- Constant Field Values
-
IDX_NS
private static final int IDX_NS
- See Also:
- Constant Field Values
-
IDX_SDN
private static final int IDX_SDN
- See Also:
- Constant Field Values
-
IDX_SDE
private static final int IDX_SDE
- See Also:
- Constant Field Values
-
IDX_SDU
private static final int IDX_SDU
- See Also:
- Constant Field Values
-
IDX_SDNE
private static final int IDX_SDNE
- See Also:
- Constant Field Values
-
IDX_SDEU
private static final int IDX_SDEU
- See Also:
- Constant Field Values
-
IDX_SDUN
private static final int IDX_SDUN
- See Also:
- Constant Field Values
-
IDX_AGE
private static final int IDX_AGE
- See Also:
- Constant Field Values
-
IDX_RATIO
private static final int IDX_RATIO
- See Also:
- Constant Field Values
-
source
private final java.io.InputStream source
-
success
private int success
-
-
Constructor Detail
-
RtkLibPosReader
public RtkLibPosReader(java.io.InputStream source) throws java.io.IOException
Constructs a newRtkLibPosReader- Parameters:
source- RTKLib .pos file input stream- Throws:
java.io.IOException- if an I/O error occurs
-
-
Method Detail
-
parse
public boolean parse(boolean tryToFinish) throws org.xml.sax.SAXException, java.io.IOException
Description copied from interface:IGpxReaderParse the GPX data.- Specified by:
parsein interfaceIGpxReader- Parameters:
tryToFinish- true, if the reader should return at least part of the GPX data in case of an error.- Returns:
- true if file was properly parsed, false if there was error during parsing but some data were parsed anyway
- Throws:
org.xml.sax.SAXException- if any SAX parsing error occursjava.io.IOException- if any I/O error occurs
-
getGpxData
public GpxData getGpxData()
Description copied from interface:IGpxReaderReplies the GPX data.- Specified by:
getGpxDatain interfaceIGpxReader- Returns:
- The GPX data
-
getNumberOfCoordinates
public int getNumberOfCoordinates()
Description copied from interface:IGpxReaderReturns the number of coordinates that have been successfully read.- Specified by:
getNumberOfCoordinatesin interfaceIGpxReader- Returns:
- the number of coordinates that have been successfully read
-
-