diff --git a/renren-admin/src/main/java/io/renren/modules/monitor/controller/Controller.java b/renren-admin/src/main/java/io/renren/modules/monitor/controller/Controller.java index a5aeb400..c92f5fcf 100644 --- a/renren-admin/src/main/java/io/renren/modules/monitor/controller/Controller.java +++ b/renren-admin/src/main/java/io/renren/modules/monitor/controller/Controller.java @@ -600,20 +600,21 @@ public class Controller { queryMap.replace("pageNum", (pageNum - 1) * pageSize); queryMap.replace("pageSize", pageSize); } - if (StringUtils.isNotBlank(queryMap.get("gpsY").toString())) { - String gpsY = queryMap.get("gpsY").toString(); - String gpsX = queryMap.get("gpsX").toString(); - if (gpsY.length() > 15) { - gpsY = gpsY.substring(0, gpsY.length() - 1); - } - if (gpsX.length() > 15) { - gpsX = gpsX.substring(0, gpsX.length() - 1); - } - double[] gps84 = CGS2000ToWGS84(Double.parseDouble(gpsY), Double.parseDouble(gpsX)); - queryMap.replace("gpsY", String.valueOf(gps84[0])); - queryMap.replace("gpsX", String.valueOf(gps84[1])); - - } + //cgcs2000转为wgs84坐标 + //if (StringUtils.isNotBlank(queryMap.get("gpsY").toString())) { + // String gpsY = queryMap.get("gpsY").toString(); + // String gpsX = queryMap.get("gpsX").toString(); + // if (gpsY.length() > 15) { + // gpsY = gpsY.substring(0, gpsY.length() - 1); + // } + // if (gpsX.length() > 15) { + // gpsX = gpsX.substring(0, gpsX.length() - 1); + // } + // double[] gps84 = CGS2000ToWGS84(Double.parseDouble(gpsY), Double.parseDouble(gpsX)); + // queryMap.replace("gpsY", String.valueOf(gps84[0])); + // queryMap.replace("gpsX", String.valueOf(gps84[1])); + // + //} List list1 = null; if (null != labelCodes && labelCodes.length > 0) { list1 = Arrays.asList(labelCodes);