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 GpxData
data
private static int
IDX_AGE
private static int
IDX_DATE
private static int
IDX_HEIGHT
private static int
IDX_LAT
private static int
IDX_LON
private static int
IDX_NS
private static int
IDX_Q
private static int
IDX_RATIO
private static int
IDX_SDE
private static int
IDX_SDEU
private static int
IDX_SDN
private static int
IDX_SDNE
private static int
IDX_SDU
private static int
IDX_SDUN
private static int
IDX_TIME
private java.io.InputStream
source
private int
success
-
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 GpxData
getGpxData()
Replies the GPX data.int
getNumberOfCoordinates()
Returns the number of coordinates that have been successfully read.boolean
parse(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:IGpxReader
Parse the GPX data.- Specified by:
parse
in 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:IGpxReader
Replies the GPX data.- Specified by:
getGpxData
in interfaceIGpxReader
- Returns:
- The GPX data
-
getNumberOfCoordinates
public int getNumberOfCoordinates()
Description copied from interface:IGpxReader
Returns the number of coordinates that have been successfully read.- Specified by:
getNumberOfCoordinates
in interfaceIGpxReader
- Returns:
- the number of coordinates that have been successfully read
-
-