|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gbif.occurrencestore.utils.parse.geospatial.GeospatialParseUtils
public class GeospatialParseUtils
Utilities for assisting in the parsing of latitude and longitude strings into Decimals, the handling of depth and altitude ranges
| Method Summary | |
|---|---|
static ParseResult<LongPrecisionStatus> |
parseAltitude(String minimum,
String maximum,
String precisionAsString)
Attempts to parse the depth information provided, and return the altitude in meters. |
static ParseResult<LongPrecisionStatus> |
parseDepth(String minimum,
String maximum,
String precisionAsString)
Attempts to parse the depth information provided, and return the depth in centimetres. |
static ParseResult<LatLngStatus> |
parseLatLng(String latitude,
String longitude)
This parses string representations of latitude and longitude values. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static ParseResult<LatLngStatus> parseLatLng(String latitude,
String longitude)
GeospatialIssue.
When the ParseResult.STATUS is either SUCCESS or FAIL the payload will always be non-null and the
LatLngStatus.getIssue() method should return any issues there were. In case the issue is ERROR the payload
will
usually be null.
latitude - The verbatim latitudelongitude - The verbatim longitude
public static ParseResult<LongPrecisionStatus> parseDepth(String minimum,
String maximum,
String precisionAsString)
minimum - verbatim minimum depthmaximum - verbatim maximum depthprecisionAsString - verbatim precision
public static ParseResult<LongPrecisionStatus> parseAltitude(String minimum,
String maximum,
String precisionAsString)
minimum - verbatim minimum altitudemaximum - verbatim maximum altitudeprecisionAsString - verbatim precision
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||