1、设计院增加经纬度推送
This commit is contained in:
parent
f7ef1ce8b6
commit
22bb0f656d
@ -15,9 +15,9 @@ public class XFZData {
|
|||||||
|
|
||||||
private String WorkPointID;
|
private String WorkPointID;
|
||||||
|
|
||||||
private String WorkPointLng = "0";
|
private double WorkPointLng = 0;
|
||||||
|
|
||||||
private String WorkPointLat = "0";
|
private double WorkPointLat = 0;
|
||||||
|
|
||||||
private List<Data> data;
|
private List<Data> data;
|
||||||
|
|
||||||
@ -27,9 +27,9 @@ public class XFZData {
|
|||||||
|
|
||||||
private String Devtype;
|
private String Devtype;
|
||||||
|
|
||||||
private String DevLng = "0";
|
private double DevLng = 0;
|
||||||
|
|
||||||
private String DevLat = "0";
|
private double DevLat = 0;
|
||||||
|
|
||||||
private double x;
|
private double x;
|
||||||
|
|
||||||
@ -43,7 +43,7 @@ public class XFZData {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public Data(String devNum, String devtype, String devLng, String devLat, double x, double y, double z, String dataTime) {
|
public Data(String devNum, String devtype, double devLng, double devLat, double x, double y, double z, String dataTime) {
|
||||||
DevNum = devNum;
|
DevNum = devNum;
|
||||||
Devtype = devtype;
|
Devtype = devtype;
|
||||||
DevLng = devLng;
|
DevLng = devLng;
|
||||||
|
|||||||
@ -101,6 +101,9 @@ public class GXXfzForwarder extends Forwarder{
|
|||||||
data.setX(NumberUtils.scale(locationRecord.getRpose() * 0.001, 5));
|
data.setX(NumberUtils.scale(locationRecord.getRpose() * 0.001, 5));
|
||||||
data.setY(NumberUtils.scale(locationRecord.getRposn() * 0.001, 5));
|
data.setY(NumberUtils.scale(locationRecord.getRposn() * 0.001, 5));
|
||||||
data.setZ(NumberUtils.scale(locationRecord.getRposd() * 0.001, 5));
|
data.setZ(NumberUtils.scale(locationRecord.getRposd() * 0.001, 5));
|
||||||
|
// 经纬度
|
||||||
|
data.setDevLng(locationRecord.getR9250e());
|
||||||
|
data.setDevLat(locationRecord.getR9250n());
|
||||||
sendNum++;
|
sendNum++;
|
||||||
}
|
}
|
||||||
String json = "#" + GsonUtil.toJson(xfzTcpMessage) + "!";
|
String json = "#" + GsonUtil.toJson(xfzTcpMessage) + "!";
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user