public class DMSCoordinateFormat extends AbstractCoordinateFormat
Modifier and Type | Field and Description |
---|---|
private static java.text.DecimalFormat |
DMS_MINUTE_FORMATTER |
private static java.text.DecimalFormat |
DMS_SECOND_FORMATTER |
private static java.lang.String |
DMS00 |
private static java.lang.String |
DMS60 |
static DMSCoordinateFormat |
INSTANCE
The unique instance.
|
cDdFormatter, displayName, EAST, id, NORTH, SOUTH, WEST
Modifier | Constructor and Description |
---|---|
protected |
DMSCoordinateFormat() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
degreesMinutesSeconds(double pCoordinate)
Replies the coordinate in degrees/minutes/seconds format
|
java.lang.String |
latToString(ILatLon ll)
Convert latitude to string.
|
java.lang.String |
lonToString(ILatLon ll)
Convert longitude to string.
|
getDisplayName, getId, newUnlocalizedDecimalFormat, toString
private static final java.text.DecimalFormat DMS_MINUTE_FORMATTER
private static final java.text.DecimalFormat DMS_SECOND_FORMATTER
private static final java.lang.String DMS60
private static final java.lang.String DMS00
public static final DMSCoordinateFormat INSTANCE
protected DMSCoordinateFormat()
public java.lang.String latToString(ILatLon ll)
ICoordinateFormat
ll
- the coordinatepublic java.lang.String lonToString(ILatLon ll)
ICoordinateFormat
ll
- the coordinatepublic static java.lang.String degreesMinutesSeconds(double pCoordinate)
pCoordinate
- The coordinate to convert