【发布时间】:2016-11-15 16:56:51
【问题描述】:
我正在编写一个将northing/westing坐标转换为longitude/latitude值的类。我为此使用JCoord 库。
初始化发生在这里:
public ConverterImpl(double northing, double westing) throws IllegalArgumentException {
double easting = 360 - westing;
ll = new OSRef(easting, northing).toLatLng();
ll.toWGS84();
}
以下是北/西坐标:
- "53 59.655N","001 32.300W"
如您所见,当OSRef 类采用double 值时,它不是十进制格式。这就是问题所在。
如何将上述北/西坐标转换成十进制格式?
【问题讨论】:
标签: java geolocation location