|
|
|
@ -7,6 +7,7 @@ import com.bingce.data.database.ProjectDb; |
|
|
|
|
import com.bingce.utils.IOnSingleGetCallback; |
|
|
|
|
import com.project.survey.App; |
|
|
|
|
import com.project.survey.R; |
|
|
|
|
import com.project.survey.ui.instrument.basestationtranslation.RtkBaseCorrectActivity; |
|
|
|
|
import com.project.survey.ui.instrument.setupstation.BingCeBaseSurveyPresenter; |
|
|
|
|
import com.project.survey.ui.instrument.setupstation.ControlPointsNewActivity; |
|
|
|
|
import com.project.survey.ui.instrument.setupstation.CoordinatePointsLibraryActivity; |
|
|
|
@ -46,6 +47,7 @@ public class RtkMatchingPointsActivity extends AbstractRtkMatchingPointsActivity |
|
|
|
|
return BingCeBaseSurveyPresenter.volumeDownAction(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// 大地坐标数据源
|
|
|
|
|
@Override |
|
|
|
|
protected void selectBLH() { |
|
|
|
|
new MaterialDialog.Builder(RtkMatchingPointsActivity.this) |
|
|
|
@ -62,35 +64,40 @@ public class RtkMatchingPointsActivity extends AbstractRtkMatchingPointsActivity |
|
|
|
|
}).show(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// 平面坐标数据源
|
|
|
|
|
@Override |
|
|
|
|
protected void selectXYZ() { |
|
|
|
|
new MaterialDialog.Builder(RtkMatchingPointsActivity.this) |
|
|
|
|
.title(R.string.data_source) |
|
|
|
|
.items(new String[]{getString(R.string.road_control_point), getString(R.string.global_control_point), getString(R.string.point_survey_point_library), getString(R.string.staking_point_library)}) |
|
|
|
|
.itemsCallback((dialog, itemView, which, text) -> { |
|
|
|
|
switch (which) { |
|
|
|
|
case 0: |
|
|
|
|
ControlPointsNewActivity.pickPoint(this, false, (name, code, x, y, z, remarks) -> { |
|
|
|
|
onPicked(name, x, y, z); |
|
|
|
|
}); |
|
|
|
|
break; |
|
|
|
|
case 1: |
|
|
|
|
ControlPointsNewActivity.pickPoint(this, true, (name, code, x, y, z, remarks) -> { |
|
|
|
|
onPicked(name, x, y, z); |
|
|
|
|
}); |
|
|
|
|
break; |
|
|
|
|
case 2: |
|
|
|
|
CoordinatePointsLibraryActivity.pickPoint(this, (name, code, x, y, z, b, l, h) -> { |
|
|
|
|
onPicked(name, x, y, z); |
|
|
|
|
}); |
|
|
|
|
break; |
|
|
|
|
case 3: |
|
|
|
|
StakingNewJobActivity.pickPoint(this, (name, x, y, z) -> { |
|
|
|
|
onPicked(name, x, y, z); |
|
|
|
|
}); |
|
|
|
|
break; |
|
|
|
|
} |
|
|
|
|
}).show(); |
|
|
|
|
// 放样点库
|
|
|
|
|
StakingNewJobActivity.pickPoint(this, (name, x, y, z) -> { |
|
|
|
|
onPicked(name, x, y, z); |
|
|
|
|
}); |
|
|
|
|
// new MaterialDialog.Builder(RtkMatchingPointsActivity.this)
|
|
|
|
|
// .title(R.string.data_source)
|
|
|
|
|
// .items(new String[]{getString(R.string.road_control_point), getString(R.string.global_control_point), getString(R.string.point_survey_point_library), getString(R.string.staking_point_library)})
|
|
|
|
|
// .itemsCallback((dialog, itemView, which, text) -> {
|
|
|
|
|
// switch (which) {
|
|
|
|
|
// case 0:
|
|
|
|
|
// ControlPointsNewActivity.pickPoint(this, false, (name, code, x, y, z, remarks) -> {
|
|
|
|
|
// onPicked(name, x, y, z);
|
|
|
|
|
// });
|
|
|
|
|
// break;
|
|
|
|
|
// case 1:
|
|
|
|
|
// ControlPointsNewActivity.pickPoint(this, true, (name, code, x, y, z, remarks) -> {
|
|
|
|
|
// onPicked(name, x, y, z);
|
|
|
|
|
// });
|
|
|
|
|
// break;
|
|
|
|
|
// case 2:
|
|
|
|
|
// CoordinatePointsLibraryActivity.pickPoint(this, (name, code, x, y, z, b, l, h) -> {
|
|
|
|
|
// onPicked(name, x, y, z);
|
|
|
|
|
// });
|
|
|
|
|
// break;
|
|
|
|
|
// case 3:
|
|
|
|
|
// StakingNewJobActivity.pickPoint(this, (name, x, y, z) -> {
|
|
|
|
|
// onPicked(name, x, y, z);
|
|
|
|
|
// });
|
|
|
|
|
// break;
|
|
|
|
|
// }
|
|
|
|
|
// }).show();
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|