public class LatLonFormatCompact extends Object implements LatLonFormat
Constructor and Description |
---|
LatLonFormatCompact(int nDecimals)
Simple constructor.
|
public LatLonFormatCompact(int nDecimals)
nDecimals
- number of decimal places to be shown for each of lat and lon (equivalent
to using formatString "%.[nDecimals]f")public String format(LatLonGeo latLon)
format
in interface LatLonFormat
public LatLonGeo parse(String s) throws LatLonFormatParseException
parse
in interface LatLonFormat
LatLonFormatParseException
public static LatLonGeo parseToLatLonGeo(String s) throws LatLonFormatParseException
LatLonFormatParseException
Copyright © 2013 Metron, Inc.. All rights reserved.