Commit 8aaa888e authored by yangshuxing's avatar yangshuxing

Merge remote-tracking branch 'origin/master'

parents 5b4ac7f2 2f675b12
...@@ -14,8 +14,8 @@ public class GpsTransform { ...@@ -14,8 +14,8 @@ public class GpsTransform {
public static List<PlaceMark> placeMarker2Baidu(List<PlaceMark> placeMarkList) { public static List<PlaceMark> placeMarker2Baidu(List<PlaceMark> placeMarkList) {
for (PlaceMark pm : placeMarkList) { for (PlaceMark pm : placeMarkList) {
Point bdPoint = gpsToBD(pm.getLatitude(), pm.getLongitude()); Point bdPoint = gpsToBD(pm.getLatitude(), pm.getLongitude());
pm.setBaiduLat(bdPoint.getLat()); pm.setLatitude(bdPoint.getLat());
pm.setBaiduLng(bdPoint.getLon()); pm.setLongitude(bdPoint.getLon());
} }
return placeMarkList; return placeMarkList;
} }
...@@ -26,8 +26,8 @@ public class GpsTransform { ...@@ -26,8 +26,8 @@ public class GpsTransform {
public static List<TracePoint> tracePoint2Baidu(List<TracePoint> tracePointList) { public static List<TracePoint> tracePoint2Baidu(List<TracePoint> tracePointList) {
for (TracePoint tp : tracePointList) { for (TracePoint tp : tracePointList) {
Point bdPoint = gpsToBD(tp.getLatitude(), tp.getLongitude()); Point bdPoint = gpsToBD(tp.getLatitude(), tp.getLongitude());
tp.setBaiduLat(bdPoint.getLat()); tp.setLatitude(bdPoint.getLat());
tp.setBaiduLng(bdPoint.getLon()); tp.setLongitude(bdPoint.getLon());
} }
return tracePointList; return tracePointList;
} }
...@@ -38,8 +38,8 @@ public class GpsTransform { ...@@ -38,8 +38,8 @@ public class GpsTransform {
public static List<PlaceMark> placeMarker2Mar(List<PlaceMark> placeMarkList) { public static List<PlaceMark> placeMarker2Mar(List<PlaceMark> placeMarkList) {
for (PlaceMark pm : placeMarkList) { for (PlaceMark pm : placeMarkList) {
Point marPoint = gpsToMar(pm.getLatitude(), pm.getLongitude()); Point marPoint = gpsToMar(pm.getLatitude(), pm.getLongitude());
pm.setMarLat(marPoint.getLat()); pm.setLatitude(marPoint.getLat());
pm.setMarLng(marPoint.getLon()); pm.setLongitude(marPoint.getLon());
} }
return placeMarkList; return placeMarkList;
} }
...@@ -50,8 +50,8 @@ public class GpsTransform { ...@@ -50,8 +50,8 @@ public class GpsTransform {
public static List<TracePoint> tracePoint2Mar(List<TracePoint> tracePointList) { public static List<TracePoint> tracePoint2Mar(List<TracePoint> tracePointList) {
for (TracePoint tp : tracePointList) { for (TracePoint tp : tracePointList) {
Point marPoint = gpsToMar(tp.getLatitude(), tp.getLongitude()); Point marPoint = gpsToMar(tp.getLatitude(), tp.getLongitude());
tp.setMarLat(marPoint.getLat()); tp.setLatitude(marPoint.getLat());
tp.setMarLng(marPoint.getLon()); tp.setLongitude(marPoint.getLon());
} }
return tracePointList; return tracePointList;
} }
......
...@@ -80,6 +80,7 @@ public class GpxParserUtil { ...@@ -80,6 +80,7 @@ public class GpxParserUtil {
} }
// 轨迹点转换火星坐标系,本系统小程序使用的火星坐标系 // 轨迹点转换火星坐标系,本系统小程序使用的火星坐标系
route.setTracePoint(GpsTransform.tracePoint2Mar(route.getTracePoint())); route.setTracePoint(GpsTransform.tracePoint2Mar(route.getTracePoint()));
// 路标转化为火星坐标系,本系统小程序使用的火星坐标系 // 路标转化为火星坐标系,本系统小程序使用的火星坐标系
route.setPlaceMark(GpsTransform.placeMarker2Mar(route.getPlaceMark())); route.setPlaceMark(GpsTransform.placeMarker2Mar(route.getPlaceMark()));
} catch (Exception e) { } catch (Exception e) {
......
...@@ -16,18 +16,6 @@ public class PlaceMark { ...@@ -16,18 +16,6 @@ public class PlaceMark {
// 纬度 // 纬度
private double longitude; private double longitude;
// 百度坐标系经度
private double baiduLat;
// 百度坐标系纬度
private double baiduLng;
//火星坐标系的经度
private double marLat;
//火星坐标系的维度
private double marLng;
// 海拔 // 海拔
private double altitude; private double altitude;
...@@ -58,21 +46,6 @@ public class PlaceMark { ...@@ -58,21 +46,6 @@ public class PlaceMark {
this.longitude = longitude; this.longitude = longitude;
} }
public double getBaiduLat() {
return baiduLat;
}
public void setBaiduLat(double baiduLat) {
this.baiduLat = baiduLat;
}
public double getBaiduLng() {
return baiduLng;
}
public void setBaiduLng(double baiduLng) {
this.baiduLng = baiduLng;
}
public double getAltitude() { public double getAltitude() {
return altitude; return altitude;
...@@ -90,19 +63,4 @@ public class PlaceMark { ...@@ -90,19 +63,4 @@ public class PlaceMark {
this.type = type; this.type = type;
} }
public double getMarLat() {
return marLat;
}
public void setMarLat(double marLat) {
this.marLat = marLat;
}
public double getMarLng() {
return marLng;
}
public void setMarLng(double marLng) {
this.marLng = marLng;
}
} }
spring.profiles.active=test spring.profiles.active=dev
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment