Package org.openstreetmap.josm.io.rtklib
Class RtkLibPosReader
java.lang.Object
org.openstreetmap.josm.io.rtklib.RtkLibPosReader
- All Implemented Interfaces:
IGpxReader
Reads a RTKLib Positioning Solution file.
See RTKLIB Manual.
- Since:
- 15247
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate GpxDataprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate final InputStreamprivate int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReplies the GPX data.intReturns the number of coordinates that have been successfully read.booleanparse(boolean tryToFinish) Parse the GPX data.
-
Field Details
-
IDX_DATE
- See Also:
-
IDX_TIME
- See Also:
-
IDX_LAT
- See Also:
-
IDX_LON
- See Also:
-
IDX_HEIGHT
- See Also:
-
IDX_Q
- See Also:
-
IDX_NS
- See Also:
-
IDX_SDN
- See Also:
-
IDX_SDE
- See Also:
-
IDX_SDU
- See Also:
-
IDX_SDNE
- See Also:
-
IDX_SDEU
- See Also:
-
IDX_SDUN
- See Also:
-
IDX_AGE
- See Also:
-
IDX_RATIO
- See Also:
-
source
-
data
-
success
-
-
Constructor Details
-
RtkLibPosReader
Constructs a newRtkLibPosReader- Parameters:
source- RTKLib .pos file input stream- Throws:
IOException- if an I/O error occurs
-
-
Method Details
-
parse
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:
SAXException- if any SAX parsing error occursIOException- if any I/O error occurs
-
getGpxData
Description copied from interface:IGpxReaderReplies the GPX data.- Specified by:
getGpxDatain interfaceIGpxReader- Returns:
- The GPX data
-
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
-