add test code
This commit is contained in:
102
modules/mogo-module-adas/src/main/assets/testFile.txt
Normal file
102
modules/mogo-module-adas/src/main/assets/testFile.txt
Normal file
@@ -0,0 +1,102 @@
|
||||
{lat=26.820175208327566,lon=112.57748204198309},
|
||||
{lat=26.82009891465042,lon=112.57735739748664},
|
||||
{lat=26.820022750763542,lon=112.57723266155585},
|
||||
{lat=26.81994655656347,lon=112.57710795477944},
|
||||
{lat=26.81987031666393,lon=112.57698328267305},
|
||||
{lat=26.819793988171348,lon=112.57685866945901},
|
||||
{lat=26.819717530408877,lon=112.57673414980971},
|
||||
{lat=26.819635079638967,lon=112.57661462149986},
|
||||
{lat=26.819532022659132,lon=112.5765234581422},
|
||||
{lat=26.819488197195188,lon=112.5764835085963},
|
||||
{lat=26.81947053563866,lon=112.57645743645142},
|
||||
{lat=26.81945285740347,lon=112.5764313389555},
|
||||
{lat=26.81941584428336,lon=112.57637074918446},
|
||||
{lat=26.819355855639404,lon=112.57626774620917},
|
||||
{lat=26.8193352833325,lon=112.57623094969783},
|
||||
{lat=26.819315738575742,lon=112.57619587959701},
|
||||
{lat=26.81929619389902,lon=112.5761608096667},
|
||||
{lat=26.819276064037396,lon=112.5761245744324},
|
||||
{lat=26.819221654527443,lon=112.5760208132482},
|
||||
{lat=26.819153675938914,lon=112.5758903945585},
|
||||
{lat=26.8190859083974,lon=112.57576035026403},
|
||||
{lat=26.81904791926707,lon=112.57568644394968},
|
||||
{lat=26.819047477540156,lon=112.57568591545105},
|
||||
{lat=26.819047035811135,lon=112.57568538694994},
|
||||
{lat=26.819046594080046,lon=112.57568485844635},
|
||||
{lat=26.81902999052958,lon=112.57568137976324},
|
||||
{lat=26.818966668056316,lon=112.57572279587626},
|
||||
{lat=26.81896660310204,lon=112.57572518130716},
|
||||
{lat=26.81896683258833,lon=112.57572606581252},
|
||||
{lat=26.81896706207354,lon=112.57572695031374},
|
||||
{lat=26.818971211272444,lon=112.57573544393973},
|
||||
{lat=26.819027657144368,lon=112.57584589447032},
|
||||
{lat=26.819095546341085,lon=112.57597644303986},
|
||||
{lat=26.8191650468231,lon=112.57610591408428},
|
||||
{lat=26.819236806047,lon=112.5762338575302},
|
||||
{lat=26.819310184480436,lon=112.57636063880027},
|
||||
{lat=26.819384451187933,lon=112.5764867800095},
|
||||
{lat=26.819460642360763,lon=112.57661149583805},
|
||||
{lat=26.819536878267925,lon=112.57673619431976},
|
||||
{lat=26.819613220428206,lon=112.57686079387894},
|
||||
{lat=26.819689146973122,lon=112.57698570087358},
|
||||
{lat=26.819765257290772,lon=112.57711047564952},
|
||||
{lat=26.81984156841068,lon=112.57723510283108},
|
||||
{lat=26.819916608456698,lon=112.57735767331373},
|
||||
{lat=26.819990868286688,lon=112.57747918205983},
|
||||
{lat=26.82006704845146,lon=112.57760363217366},
|
||||
{lat=26.820142688927376,lon=112.57772676391022},
|
||||
{lat=26.820220480866162,lon=112.57784947830805},
|
||||
{lat=26.82029609426984,lon=112.57797111160743},
|
||||
{lat=26.820372540342063,lon=112.57809575812311},
|
||||
{lat=26.820449035279513,lon=112.57822036992494},
|
||||
{lat=26.82052479395364,lon=112.5783432083879},
|
||||
{lat=26.820600741070034,lon=112.57846626552721},
|
||||
{lat=26.820676451505513,lon=112.57858892597905},
|
||||
{lat=26.820750627333855,lon=112.57870908764811},
|
||||
{lat=26.820788099971104,lon=112.57876896886103},
|
||||
{lat=26.82079340880141,lon=112.57877600898784},
|
||||
{lat=26.82079871765643,lon=112.57878304914836},
|
||||
{lat=26.820804096213536,lon=112.57879017489086},
|
||||
{lat=26.820866626548845,lon=112.5788587003478},
|
||||
{lat=26.820983640738305,lon=112.57893123552938},
|
||||
{lat=26.82111632395692,lon=112.57893777257203},
|
||||
{lat=26.82117204164965,lon=112.57891747212024},
|
||||
{lat=26.821184743761496,lon=112.57890962148315},
|
||||
{lat=26.821197445813166,lon=112.57890177088103},
|
||||
{lat=26.821210607045213,lon=112.57889357476125},
|
||||
{lat=26.821290516628242,lon=112.57883467623317},
|
||||
{lat=26.82140278979742,lon=112.57875048180252},
|
||||
{lat=26.821515292745254,lon=112.57866667791178},
|
||||
{lat=26.821628395747688,lon=112.5785838835907},
|
||||
{lat=26.82174189376551,lon=112.57850175198458},
|
||||
{lat=26.82185566968843,lon=112.57842010282002},
|
||||
{lat=26.82196987298559,lon=112.57833919555353},
|
||||
{lat=26.822083935682734,lon=112.5782580474171},
|
||||
{lat=26.822198178890964,lon=112.57817722472228},
|
||||
{lat=26.82231299206679,lon=112.5780973993899},
|
||||
{lat=26.822427661696032,lon=112.57801732090307},
|
||||
{lat=26.82254293064344,lon=112.57793832470455},
|
||||
{lat=26.822658717481524,lon=112.57786026718888},
|
||||
{lat=26.822774624402133,lon=112.57778243034805},
|
||||
{lat=26.82289066838358,lon=112.57770484656757},
|
||||
{lat=26.823007036027615,lon=112.57762787191734},
|
||||
{lat=26.823123797760537,lon=112.57755163699323},
|
||||
{lat=26.82324089700492,lon=112.57747604255579},
|
||||
{lat=26.823355874237176,lon=112.57740187937155},
|
||||
{lat=26.823470001455,lon=112.57732986163221},
|
||||
{lat=26.82358841433288,lon=112.57725688653507},
|
||||
{lat=26.823706827172103,lon=112.5771839112856},
|
||||
{lat=26.82382523997266,lon=112.57711093588388},
|
||||
{lat=26.823943652734542,lon=112.57703796032986},
|
||||
{lat=26.824062065457753,lon=112.57696498462354},
|
||||
{lat=26.824180478142292,lon=112.57689200876496},
|
||||
{lat=26.82429889078817,lon=112.57681903275407},
|
||||
{lat=26.824416715403633,lon=112.5767464980989},
|
||||
{lat=26.824533859020413,lon=112.57667699873441},
|
||||
{lat=26.824651399274774,lon=112.57660868246823},
|
||||
{lat=26.824762900762973,lon=112.57658692553045},
|
||||
{lat=26.824968687097577,lon=112.57656763804074},
|
||||
{lat=26.825104150528567,lon=112.57650684107888},
|
||||
{lat=26.82522465989416,lon=112.57643823074989},
|
||||
{lat=26.825345659446693,lon=112.57637072881484},
|
||||
{lat=26.8255763298452,lon=112.57624421893341},
|
||||
@@ -51,6 +51,8 @@ public class AdasAutoPilotManager implements IMogoOnMessageListener<AdasAutoPilo
|
||||
private MogoLocation mogoLocation;
|
||||
private IDispatchResultListener dispatchResultListener;
|
||||
private AdasAutoPilotLocReceiverBean receiverBean;
|
||||
private List<MogoLatLng> latLngList;
|
||||
private boolean drawLine;
|
||||
|
||||
private AdasAutoPilotManager() {
|
||||
|
||||
@@ -88,6 +90,10 @@ public class AdasAutoPilotManager implements IMogoOnMessageListener<AdasAutoPilo
|
||||
AdasEventManager.getInstance().addEventListener(this);
|
||||
dispatchRemindDialog = new DispatchRemindDialog(context);
|
||||
dispatchRemindDialog.addIDispatchRemindListener(this);
|
||||
if (lineOverlayManager == null) {
|
||||
lineOverlayManager = new LineOverlayManager(mContext);
|
||||
lineOverlayManager.setIAdasLineOverlayListener(() -> drawLine = false);
|
||||
}
|
||||
}
|
||||
|
||||
public void addIDispatchResult(IDispatchResultListener listener) {
|
||||
@@ -125,15 +131,15 @@ public class AdasAutoPilotManager implements IMogoOnMessageListener<AdasAutoPilo
|
||||
|
||||
@Override
|
||||
public void autopilotRoute(AutopilotRoute autopilotRoute) {
|
||||
AdasServiceModel.getInstance().uploadAutopilotRoute(autopilotRoute.getModels());
|
||||
if (lineOverlayManager == null) {
|
||||
lineOverlayManager = new LineOverlayManager(mContext);
|
||||
if (autopilotRoute == null || autopilotRoute.getModels() == null || autopilotRoute.getModels().size() == 0) {
|
||||
return;
|
||||
}
|
||||
List<MogoLatLng> latLngList = new ArrayList<>();
|
||||
AdasServiceModel.getInstance().uploadAutopilotRoute(autopilotRoute.getModels());
|
||||
latLngList = new ArrayList<>();
|
||||
for (AutopilotRoute.RouteModels routeModel : autopilotRoute.getModels()) {
|
||||
latLngList.add(new MogoLatLng(routeModel.getLat(), routeModel.getLon()));
|
||||
}
|
||||
lineOverlayManager.draw(mogoLocation, latLngList);
|
||||
drawLine = true;
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -141,7 +147,7 @@ public class AdasAutoPilotManager implements IMogoOnMessageListener<AdasAutoPilo
|
||||
AdasServiceModel.getInstance().dispatchResultUpload(DISPATCH_RESULT_AFFIRM, new IDispatch() {
|
||||
@Override
|
||||
public void onSuccess() {
|
||||
Logger.d(TAG,"");
|
||||
Logger.d(TAG, "");
|
||||
if (dispatchResultListener != null) {
|
||||
DispatchResult dispatchResult = new DispatchResult(
|
||||
new StartLatLon(mogoLocation.getLatitude(), mogoLocation.getLongitude()),
|
||||
@@ -187,6 +193,9 @@ public class AdasAutoPilotManager implements IMogoOnMessageListener<AdasAutoPilo
|
||||
loc.setBearing(location.getBearing());
|
||||
loc.setProvider(location.getProvider());
|
||||
mogoLocation = loc;
|
||||
if (drawLine) {
|
||||
lineOverlayManager.draw(mogoLocation, latLngList);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -203,9 +212,9 @@ public class AdasAutoPilotManager implements IMogoOnMessageListener<AdasAutoPilo
|
||||
}
|
||||
|
||||
public void test() {
|
||||
Logger.d(TAG,"test to trigger mock autopilot");
|
||||
Logger.d(TAG, "test to trigger mock autopilot");
|
||||
AdasAutoPilotLocReceiverBean adasAutoPilotLocReceiverBean = new AdasAutoPilotLocReceiverBean(
|
||||
"1",12.12,13.13,"测试数据",System.currentTimeMillis());
|
||||
"1", 26.825571122, 112.5762410415, "测试数据", System.currentTimeMillis());
|
||||
this.receiverBean = adasAutoPilotLocReceiverBean;
|
||||
dispatchRemindDialog.showDialog(adasAutoPilotLocReceiverBean.getPoiAddress());
|
||||
}
|
||||
|
||||
@@ -10,12 +10,14 @@ import com.mogo.map.overlay.MogoPolylineOptions;
|
||||
import com.mogo.module.common.MogoApisHandler;
|
||||
import com.mogo.module.common.utils.LocationUtils;
|
||||
import com.mogo.utils.ColorUtils;
|
||||
import com.mogo.utils.logger.Logger;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
public class LineOverlayManager {
|
||||
|
||||
private static final String TAG = "LineOverlayManager";
|
||||
private IMogoPolyline mMoGoPolyline;
|
||||
// 连接线参数
|
||||
private MogoPolylineOptions mPolylineOptions;
|
||||
@@ -28,6 +30,8 @@ public class LineOverlayManager {
|
||||
|
||||
private Context mContext;
|
||||
|
||||
private IAdasLineOverlayListener lineOverlayListener;
|
||||
|
||||
public LineOverlayManager(Context context) {
|
||||
mPolylineOptions = new MogoPolylineOptions();
|
||||
// 绘制路径集合
|
||||
@@ -38,29 +42,41 @@ public class LineOverlayManager {
|
||||
mogoOverlayManager = MogoApisHandler.getInstance().getApis().getMapServiceApi().getOverlayManager(mContext);
|
||||
}
|
||||
|
||||
public void setIAdasLineOverlayListener(IAdasLineOverlayListener listener){
|
||||
this.lineOverlayListener = listener;
|
||||
}
|
||||
|
||||
/**
|
||||
* 绘制最优路线
|
||||
*
|
||||
* @param polylinePoint 要绘制的经纬度度集合
|
||||
*/
|
||||
public void draw(MogoLocation carLocal, List<MogoLatLng> polylinePoint) {
|
||||
Logger.d(TAG,"ready to draw");
|
||||
if (mMoGoPolyline != null) {
|
||||
mMoGoPolyline.remove();
|
||||
mPolylinePointList.clear();
|
||||
mPolylineColors.clear();
|
||||
}
|
||||
if (polylinePoint != null) {
|
||||
Logger.d(TAG,"draw");
|
||||
// 将当前车辆位置放进去
|
||||
mPolylinePointList.add(new MogoLatLng(carLocal.getLatitude(), carLocal.getLongitude()));
|
||||
// 过滤后台推送的推荐路线集合
|
||||
for (MogoLatLng polyline : polylinePoint) {
|
||||
//需要剔除已经行驶过的经纬度,这里需要比对推荐路线集合中的点是否在当前车辆行驶方向前面如果不在则抛弃
|
||||
if (LocationUtils.isPointOnCarFront(carLocal, polyline)) {
|
||||
// if (LocationUtils.isPointOnCarFront(carLocal, polyline)) {
|
||||
mPolylinePointList.add(polyline);
|
||||
}
|
||||
// }
|
||||
}
|
||||
if(mPolylinePointList.size() < 2 && lineOverlayListener != null){
|
||||
Logger.d(TAG,"finish line");
|
||||
lineOverlayListener.finishLine();
|
||||
}
|
||||
Logger.d(TAG,"point list size : " + mPolylinePointList.size());
|
||||
mPolylineColors.addAll(ColorUtils.getGradientAlpha("#002965ED", "#FF2965ED", "#002965ED", mPolylinePointList.size()));
|
||||
// 替换路径集合
|
||||
mPolylineOptions.setGps(true);
|
||||
mPolylineOptions.points(mPolylinePointList);
|
||||
// 线条粗细,渐变,渐变色值
|
||||
mPolylineOptions.width(25).useGradient(true).colorValues(mPolylineColors);
|
||||
@@ -68,4 +84,8 @@ public class LineOverlayManager {
|
||||
mMoGoPolyline = mogoOverlayManager.addPolyline(mPolylineOptions);
|
||||
}
|
||||
}
|
||||
|
||||
public interface IAdasLineOverlayListener{
|
||||
void finishLine();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
[{"lat":26.820175208327566,"lng":0.0,"lon":112.57748204198309},{"lat":26.82009891465042,"lng":0.0,"lon":112.57735739748664},{"lat":26.820022750763542,"lng":0.0,"lon":112.57723266155585},{"lat":26.81994655656347,"lng":0.0,"lon":112.57710795477944},{"lat":26.81987031666393,"lng":0.0,"lon":112.57698328267305},{"lat":26.819793988171348,"lng":0.0,"lon":112.57685866945901},{"lat":26.819717530408877,"lng":0.0,"lon":112.57673414980971},{"lat":26.819635079638967,"lng":0.0,"lon":112.57661462149986},{"lat":26.819532022659132,"lng":0.0,"lon":112.5765234581422},{"lat":26.819488197195188,"lng":0.0,"lon":112.5764835085963},{"lat":26.81947053563866,"lng":0.0,"lon":112.57645743645142},{"lat":26.81945285740347,"lng":0.0,"lon":112.5764313389555},{"lat":26.81941584428336,"lng":0.0,"lon":112.57637074918446},{"lat":26.819355855639404,"lng":0.0,"lon":112.57626774620917},{"lat":26.8193352833325,"lng":0.0,"lon":112.57623094969783},{"lat":26.819315738575742,"lng":0.0,"lon":112.57619587959701},{"lat":26.81929619389902,"lng":0.0,"lon":112.5761608096667},{"lat":26.819276064037396,"lng":0.0,"lon":112.5761245744324},{"lat":26.819221654527443,"lng":0.0,"lon":112.5760208132482},{"lat":26.819153675938914,"lng":0.0,"lon":112.5758903945585},{"lat":26.8190859083974,"lng":0.0,"lon":112.57576035026403},{"lat":26.81904791926707,"lng":0.0,"lon":112.57568644394968},{"lat":26.819047477540156,"lng":0.0,"lon":112.57568591545105},{"lat":26.819047035811135,"lng":0.0,"lon":112.57568538694994},{"lat":26.819046594080046,"lng":0.0,"lon":112.57568485844635},{"lat":26.81902999052958,"lng":0.0,"lon":112.57568137976324},{"lat":26.818966668056316,"lng":0.0,"lon":112.57572279587626},{"lat":26.81896660310204,"lng":0.0,"lon":112.57572518130716},{"lat":26.81896683258833,"lng":0.0,"lon":112.57572606581252},{"lat":26.81896706207354,"lng":0.0,"lon":112.57572695031374},{"lat":26.818971211272444,"lng":0.0,"lon":112.57573544393973},{"lat":26.819027657144368,"lng":0.0,"lon":112.57584589447032},{"lat":26.819095546341085,"lng":0.0,"lon":112.57597644303986},{"lat":26.8191650468231,"lng":0.0,"lon":112.57610591408428},{"lat":26.819236806047,"lng":0.0,"lon":112.5762338575302},{"lat":26.819310184480436,"lng":0.0,"lon":112.57636063880027},{"lat":26.819384451187933,"lng":0.0,"lon":112.5764867800095},{"lat":26.819460642360763,"lng":0.0,"lon":112.57661149583805},{"lat":26.819536878267925,"lng":0.0,"lon":112.57673619431976},{"lat":26.819613220428206,"lng":0.0,"lon":112.57686079387894},{"lat":26.819689146973122,"lng":0.0,"lon":112.57698570087358},{"lat":26.819765257290772,"lng":0.0,"lon":112.57711047564952},{"lat":26.81984156841068,"lng":0.0,"lon":112.57723510283108},{"lat":26.819916608456698,"lng":0.0,"lon":112.57735767331373},{"lat":26.819990868286688,"lng":0.0,"lon":112.57747918205983},{"lat":26.82006704845146,"lng":0.0,"lon":112.57760363217366},{"lat":26.820142688927376,"lng":0.0,"lon":112.57772676391022},{"lat":26.820220480866162,"lng":0.0,"lon":112.57784947830805},{"lat":26.82029609426984,"lng":0.0,"lon":112.57797111160743},{"lat":26.820372540342063,"lng":0.0,"lon":112.57809575812311},{"lat":26.820449035279513,"lng":0.0,"lon":112.57822036992494},{"lat":26.82052479395364,"lng":0.0,"lon":112.5783432083879},{"lat":26.820600741070034,"lng":0.0,"lon":112.57846626552721},{"lat":26.820676451505513,"lng":0.0,"lon":112.57858892597905},{"lat":26.820750627333855,"lng":0.0,"lon":112.57870908764811},{"lat":26.820788099971104,"lng":0.0,"lon":112.57876896886103},{"lat":26.82079340880141,"lng":0.0,"lon":112.57877600898784},{"lat":26.82079871765643,"lng":0.0,"lon":112.57878304914836},{"lat":26.820804096213536,"lng":0.0,"lon":112.57879017489086},{"lat":26.820866626548845,"lng":0.0,"lon":112.5788587003478},{"lat":26.820983640738305,"lng":0.0,"lon":112.57893123552938},{"lat":26.82111632395692,"lng":0.0,"lon":112.57893777257203},{"lat":26.82117204164965,"lng":0.0,"lon":112.57891747212024},{"lat":26.821184743761496,"lng":0.0,"lon":112.57890962148315},{"lat":26.821197445813166,"lng":0.0,"lon":112.5789017
|
||||
@@ -49,6 +49,8 @@ public class AdasTestPanelBroadCastReceiver extends BroadcastReceiver {
|
||||
AdasAutoPilotManager.getInstance().testDispatchResultUpload();
|
||||
} else if(sceneType == 4){ //验证下发给自动驾驶的调用数据
|
||||
AdasAutoPilotManager.getInstance().testDispatchAutopilot();
|
||||
} else if(sceneType == 5){ //验证画线功能
|
||||
TestAdasFuncManager.getInstance().testAddPolyLine();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,75 @@
|
||||
package com.mogo.module.adas.receiver;
|
||||
|
||||
import com.mogo.commons.AbsMogoApplication;
|
||||
import com.mogo.map.MogoLatLng;
|
||||
import com.mogo.map.location.MogoLocation;
|
||||
import com.mogo.module.adas.overlay.LineOverlayManager;
|
||||
import com.mogo.module.common.MogoApisHandler;
|
||||
import com.mogo.utils.logger.Logger;
|
||||
import com.mogo.utils.network.utils.GsonUtil;
|
||||
|
||||
import org.json.JSONObject;
|
||||
|
||||
import java.io.BufferedReader;
|
||||
import java.io.InputStream;
|
||||
import java.io.InputStreamReader;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
public class TestAdasFuncManager {
|
||||
|
||||
private static final String TAG = "TestAdasFuncManager";
|
||||
private static volatile TestAdasFuncManager manager;
|
||||
private static final byte[] obj = new byte[0];
|
||||
|
||||
public TestAdasFuncManager() {
|
||||
|
||||
}
|
||||
|
||||
public static TestAdasFuncManager getInstance() {
|
||||
if (manager == null) {
|
||||
synchronized (obj) {
|
||||
if (manager == null) {
|
||||
manager = new TestAdasFuncManager();
|
||||
}
|
||||
}
|
||||
}
|
||||
return manager;
|
||||
}
|
||||
|
||||
public void testAddPolyLine() {
|
||||
InputStream is = null;
|
||||
try {
|
||||
is = AbsMogoApplication.getApp().getApplicationContext().getAssets().open("testFile.txt");
|
||||
BufferedReader br = new BufferedReader(new InputStreamReader(is));
|
||||
String line = "";
|
||||
List<MogoLatLng> vals = new ArrayList<>();
|
||||
while ((line = br.readLine()) != null) {
|
||||
String json = line.substring(0, line.length() - 1);
|
||||
MogoLatLng si = GsonUtil.objectFromJson(json, MogoLatLng.class);
|
||||
vals.add(si);
|
||||
}
|
||||
Logger.d(TAG, "mogoLatLon size : " + GsonUtil.jsonFromObject(vals));
|
||||
JSONObject data = new JSONObject();
|
||||
double lon = 112.57748204198309;
|
||||
double lat = 26.820175208327566;
|
||||
data.putOpt("lon", lon);
|
||||
data.putOpt("lat", lat);
|
||||
data.putOpt("alt", 0);
|
||||
data.putOpt("speed", 0);
|
||||
data.putOpt("satelliteTime", System.currentTimeMillis());
|
||||
data.putOpt("heading", 240);
|
||||
data.putOpt("acceleration", 0);
|
||||
data.putOpt("yawRate", 0);
|
||||
MogoApisHandler.getInstance().getApis().getMapServiceApi().getMapUIController().syncLocation2Map(data);
|
||||
LineOverlayManager lineOverlayManager = new LineOverlayManager(AbsMogoApplication.getApp().getApplicationContext());
|
||||
MogoLocation mogoLocation = new MogoLocation();
|
||||
mogoLocation.setLongitude(lon);
|
||||
mogoLocation.setLongitude(lat);
|
||||
lineOverlayManager.draw(mogoLocation, vals);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,216 @@
|
||||
原数据
|
||||
26.820175208327566,112.57748204198309
|
||||
26.82009891465042,112.57735739748664
|
||||
26.820022750763542,112.57723266155585
|
||||
26.81994655656347,112.57710795477944
|
||||
26.81987031666393,112.57698328267305
|
||||
26.819793988171348,112.57685866945901
|
||||
26.819717530408877,112.57673414980971
|
||||
26.819635079638967,112.57661462149986
|
||||
26.819532022659132,112.5765234581422
|
||||
26.819488197195188,112.5764835085963
|
||||
26.81947053563866,112.57645743645142
|
||||
26.81945285740347,112.5764313389555
|
||||
26.81941584428336,112.57637074918446
|
||||
26.819355855639404,112.57626774620917
|
||||
26.8193352833325,112.57623094969783
|
||||
26.819315738575742,112.57619587959701
|
||||
26.81929619389902,112.5761608096667
|
||||
26.819276064037396,112.5761245744324
|
||||
26.819221654527443,112.5760208132482
|
||||
26.819153675938914,112.5758903945585
|
||||
26.8190859083974,112.57576035026403
|
||||
26.81904791926707,112.57568644394968
|
||||
26.819047477540156,112.57568591545105
|
||||
26.819047035811135,112.57568538694994
|
||||
26.819046594080046,112.57568485844635
|
||||
26.81902999052958,112.57568137976324
|
||||
26.818966668056316,112.57572279587626
|
||||
26.81896660310204,112.57572518130716
|
||||
26.81896683258833,112.57572606581252
|
||||
26.81896706207354,112.57572695031374
|
||||
26.818971211272444,112.57573544393973
|
||||
26.819027657144368,112.57584589447032
|
||||
26.819095546341085,112.57597644303986
|
||||
26.8191650468231,112.57610591408428
|
||||
26.819236806047,112.5762338575302
|
||||
26.819310184480436,112.57636063880027
|
||||
26.819384451187933,112.5764867800095
|
||||
26.819460642360763,112.57661149583805
|
||||
26.819536878267925,112.57673619431976
|
||||
26.819613220428206,112.57686079387894
|
||||
26.819689146973122,112.57698570087358
|
||||
26.819765257290772,112.57711047564952
|
||||
26.81984156841068,112.57723510283108
|
||||
26.819916608456698,112.57735767331373
|
||||
26.819990868286688,112.57747918205983
|
||||
26.82006704845146,112.57760363217366
|
||||
26.820142688927376,112.57772676391022
|
||||
26.820220480866162,112.57784947830805
|
||||
26.82029609426984,112.57797111160743
|
||||
26.820372540342063,112.57809575812311
|
||||
26.820449035279513,112.57822036992494
|
||||
26.82052479395364,112.5783432083879
|
||||
26.820600741070034,112.57846626552721
|
||||
26.820676451505513,112.57858892597905
|
||||
26.820750627333855,112.57870908764811
|
||||
26.820788099971104,112.57876896886103
|
||||
26.82079340880141,112.57877600898784
|
||||
26.82079871765643,112.57878304914836
|
||||
26.820804096213536,112.57879017489086
|
||||
26.820866626548845,112.5788587003478
|
||||
26.820983640738305,112.57893123552938
|
||||
26.82111632395692,112.57893777257203
|
||||
26.82117204164965,112.57891747212024
|
||||
26.821184743761496,112.57890962148315
|
||||
26.821197445813166,112.57890177088103
|
||||
26.821210607045213,112.57889357476125
|
||||
26.821290516628242,112.57883467623317
|
||||
26.82140278979742,112.57875048180252
|
||||
26.821515292745254,112.57866667791178
|
||||
26.821628395747688,112.5785838835907
|
||||
26.82174189376551,112.57850175198458
|
||||
26.82185566968843,112.57842010282002
|
||||
26.82196987298559,112.57833919555353
|
||||
26.822083935682734,112.5782580474171
|
||||
26.822198178890964,112.57817722472228
|
||||
26.82231299206679,112.5780973993899
|
||||
26.822427661696032,112.57801732090307
|
||||
26.82254293064344,112.57793832470455
|
||||
26.822658717481524,112.57786026718888
|
||||
26.822774624402133,112.57778243034805
|
||||
26.82289066838358,112.57770484656757
|
||||
26.823007036027615,112.57762787191734
|
||||
26.823123797760537,112.57755163699323
|
||||
26.82324089700492,112.57747604255579
|
||||
26.823355874237176,112.57740187937155
|
||||
26.823470001455,112.57732986163221
|
||||
26.82358841433288,112.57725688653507
|
||||
26.823706827172103,112.5771839112856
|
||||
26.82382523997266,112.57711093588388
|
||||
26.823943652734542,112.57703796032986
|
||||
26.824062065457753,112.57696498462354
|
||||
26.824180478142292,112.57689200876496
|
||||
26.82429889078817,112.57681903275407
|
||||
26.824416715403633,112.5767464980989
|
||||
26.824533859020413,112.57667699873441
|
||||
26.824651399274774,112.57660868246823
|
||||
26.824762900762973,112.57658692553045
|
||||
26.824968687097577,112.57656763804074
|
||||
26.825104150528567,112.57650684107888
|
||||
26.82522465989416,112.57643823074989
|
||||
26.825345659446693,112.57637072881484
|
||||
26.8255763298452,112.57624421893341
|
||||
|
||||
|
||||
排序数据:
|
||||
26.81896660310204,112.57568137976324
|
||||
26.818966668056316,112.57568485844635
|
||||
26.81896683258833,112.57568538694994
|
||||
26.81896706207354,112.57568591545105
|
||||
26.818971211272444,112.57568644394968
|
||||
26.819027657144368,112.57572279587626
|
||||
26.81902999052958,112.57572518130716
|
||||
26.819046594080046,112.57572606581252
|
||||
26.819047035811135,112.57572695031374
|
||||
26.819047477540156,112.57573544393973
|
||||
26.81904791926707,112.57576035026403
|
||||
26.8190859083974,112.57584589447032
|
||||
26.819095546341085,112.5758903945585
|
||||
26.819153675938914,112.57597644303986
|
||||
26.8191650468231,112.5760208132482
|
||||
26.819221654527443,112.57610591408428
|
||||
26.819236806047,112.5761245744324
|
||||
26.819276064037396,112.5761608096667
|
||||
26.81929619389902,112.57619587959701
|
||||
26.819310184480436,112.57623094969783
|
||||
26.819315738575742,112.5762338575302
|
||||
26.8193352833325,112.57624421893341
|
||||
26.819355855639404,112.57626774620917
|
||||
26.819384451187933,112.57636063880027
|
||||
26.81941584428336,112.57637072881484
|
||||
26.81945285740347,112.57637074918446
|
||||
26.819460642360763,112.5764313389555
|
||||
26.81947053563866,112.57643823074989
|
||||
26.819488197195188,112.57645743645142
|
||||
26.819532022659132,112.5764835085963
|
||||
26.819536878267925,112.5764867800095
|
||||
26.819613220428206,112.57650684107888
|
||||
26.819635079638967,112.5765234581422
|
||||
26.819689146973122,112.57656763804074
|
||||
26.819717530408877,112.57658692553045
|
||||
26.819765257290772,112.57660868246823
|
||||
26.819793988171348,112.57661149583805
|
||||
26.81984156841068,112.57661462149986
|
||||
26.81987031666393,112.57667699873441
|
||||
26.819916608456698,112.57673414980971
|
||||
26.81994655656347,112.57673619431976
|
||||
26.819990868286688,112.5767464980989
|
||||
26.820022750763542,112.57681903275407
|
||||
26.82006704845146,112.57685866945901
|
||||
26.82009891465042,112.57686079387894
|
||||
26.820142688927376,112.57689200876496
|
||||
26.820175208327566,112.57696498462354
|
||||
26.820220480866162,112.57698328267305
|
||||
26.82029609426984,112.57698570087358
|
||||
26.820372540342063,112.57703796032986
|
||||
26.820449035279513,112.57710795477944
|
||||
26.82052479395364,112.57711047564952
|
||||
26.820600741070034,112.57711093588388
|
||||
26.820676451505513,112.5771839112856
|
||||
26.820750627333855,112.57723266155585
|
||||
26.820788099971104,112.57723510283108
|
||||
26.82079340880141,112.57725688653507
|
||||
26.82079871765643,112.57732986163221
|
||||
26.820804096213536,112.57735739748664
|
||||
26.820866626548845,112.57735767331373
|
||||
26.820983640738305,112.57740187937155
|
||||
26.82111632395692,112.57747604255579
|
||||
26.82117204164965,112.57747918205983
|
||||
26.821184743761496,112.57748204198309
|
||||
26.821197445813166,112.57755163699323
|
||||
26.821210607045213,112.57760363217366
|
||||
26.821290516628242,112.57762787191734
|
||||
26.82140278979742,112.57770484656757
|
||||
26.821515292745254,112.57772676391022
|
||||
26.821628395747688,112.57778243034805
|
||||
26.82174189376551,112.57784947830805
|
||||
26.82185566968843,112.57786026718888
|
||||
26.82196987298559,112.57793832470455
|
||||
26.822083935682734,112.57797111160743
|
||||
26.822198178890964,112.57801732090307
|
||||
26.82231299206679,112.57809575812311
|
||||
26.822427661696032,112.5780973993899
|
||||
26.82254293064344,112.57817722472228
|
||||
26.822658717481524,112.57822036992494
|
||||
26.822774624402133,112.5782580474171
|
||||
26.82289066838358,112.57833919555353
|
||||
26.823007036027615,112.5783432083879
|
||||
26.823123797760537,112.57842010282002
|
||||
26.82324089700492,112.57846626552721
|
||||
26.823355874237176,112.57850175198458
|
||||
26.823470001455,112.5785838835907
|
||||
26.82358841433288,112.57858892597905
|
||||
26.823706827172103,112.57866667791178
|
||||
26.82382523997266,112.57870908764811
|
||||
26.823943652734542,112.57875048180252
|
||||
26.824062065457753,112.57876896886103
|
||||
26.824180478142292,112.57877600898784
|
||||
26.82429889078817,112.57878304914836
|
||||
26.824416715403633,112.57879017489086
|
||||
26.824533859020413,112.57883467623317
|
||||
26.824651399274774,112.5788587003478
|
||||
26.824762900762973,112.57889357476125
|
||||
26.824968687097577,112.57890177088103
|
||||
26.825104150528567,112.57890962148315
|
||||
26.82522465989416,112.57891747212024
|
||||
26.825345659446693,112.57893123552938
|
||||
26.8255763298452,112.57893777257203
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user