|
|
@ -26,6 +26,7 @@ import com.bingce.coordlib.util.CoordUtil; |
|
|
|
import com.bingce.data.DeviceInfoData; |
|
|
|
import com.bingce.data.DeviceInfoData; |
|
|
|
import com.bingce.data.cache.CachedCurrentJob; |
|
|
|
import com.bingce.data.cache.CachedCurrentJob; |
|
|
|
import com.bingce.data.cache.CachedCurrentRoad; |
|
|
|
import com.bingce.data.cache.CachedCurrentRoad; |
|
|
|
|
|
|
|
import com.bingce.data.cache.CachedCurrentRoadKt; |
|
|
|
import com.bingce.data.cache.CachedProject; |
|
|
|
import com.bingce.data.cache.CachedProject; |
|
|
|
import com.bingce.data.database.DBQueryConstant; |
|
|
|
import com.bingce.data.database.DBQueryConstant; |
|
|
|
import com.bingce.data.database.PointDb; |
|
|
|
import com.bingce.data.database.PointDb; |
|
|
@ -109,7 +110,7 @@ public class PointStakingActivity extends BaseSurveyNewActivity { |
|
|
|
private PointRecord targetStakePointRecord; |
|
|
|
private PointRecord targetStakePointRecord; |
|
|
|
private Coordinate currentCoordinate; |
|
|
|
private Coordinate currentCoordinate; |
|
|
|
private Coordinate currentSmoothCoordinate; |
|
|
|
private Coordinate currentSmoothCoordinate; |
|
|
|
protected final CachedCurrentRoad cachedRoad = new CachedCurrentRoad(this); |
|
|
|
protected final CachedCurrentRoadKt cachedRoadKt = new CachedCurrentRoadKt(this); |
|
|
|
private final SurveyRemarksUtils surveyRemarksUtils = new SurveyRemarksUtils(); |
|
|
|
private final SurveyRemarksUtils surveyRemarksUtils = new SurveyRemarksUtils(); |
|
|
|
private IText distance, moveWestEast, moveSouthNorth, moveDigFill, moveLeftRight, moveBeforeAfter; |
|
|
|
private IText distance, moveWestEast, moveSouthNorth, moveDigFill, moveLeftRight, moveBeforeAfter; |
|
|
|
private MoveValue<MoveK> moveK; |
|
|
|
private MoveValue<MoveK> moveK; |
|
|
@ -793,11 +794,11 @@ public class PointStakingActivity extends BaseSurveyNewActivity { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (!cachedRoad.isDataReady()) { |
|
|
|
if (!cachedRoadKt.isDataReady()) { |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
PointStakingLogic.Result result = pointStakingLogic.calculate(cachedRoad.roadEditor(), |
|
|
|
PointStakingLogic.Result result = pointStakingLogic.calculate(cachedRoadKt.roadEditor(), |
|
|
|
new PointStakingLogic.Configs(6, moveType), |
|
|
|
new PointStakingLogic.Configs(6, moveType), |
|
|
|
new PointStakingLogic.Parameter( |
|
|
|
new PointStakingLogic.Parameter( |
|
|
|
new MeasuredPoint(currentCoordinate.getX(), currentCoordinate.getY(), currentCoordinate.getZ(), currentCoordinate.getName()), |
|
|
|
new MeasuredPoint(currentCoordinate.getX(), currentCoordinate.getY(), currentCoordinate.getZ(), currentCoordinate.getName()), |
|
|
@ -1046,7 +1047,7 @@ public class PointStakingActivity extends BaseSurveyNewActivity { |
|
|
|
DeviceInfoData deviceInfoData = DeviceUtils.collectDeviceInfo(); |
|
|
|
DeviceInfoData deviceInfoData = DeviceUtils.collectDeviceInfo(); |
|
|
|
PointStakeRecord pointStakeRecord = new PointStakeRecord(projectId, jobId, roadId, |
|
|
|
PointStakeRecord pointStakeRecord = new PointStakeRecord(projectId, jobId, roadId, |
|
|
|
targetStakePointRecord.id, moveBeforeAfter != null ? moveBeforeAfter.getString() : "", moveLeftRight != null ? moveLeftRight.getString() : "", moveWestEast != null ? moveWestEast.getString() : "", moveSouthNorth != null ? moveSouthNorth.getString() : "", |
|
|
|
targetStakePointRecord.id, moveBeforeAfter != null ? moveBeforeAfter.getString() : "", moveLeftRight != null ? moveLeftRight.getString() : "", moveWestEast != null ? moveWestEast.getString() : "", moveSouthNorth != null ? moveSouthNorth.getString() : "", |
|
|
|
cachedRoad.road().getName() |
|
|
|
cachedRoadKt.road().getName() |
|
|
|
, targetStakePointRecord.name |
|
|
|
, targetStakePointRecord.name |
|
|
|
, Util.formatDouble2StringDotAuto(targetStakePointRecord.x) |
|
|
|
, Util.formatDouble2StringDotAuto(targetStakePointRecord.x) |
|
|
|
, Util.formatDouble2StringDotAuto(targetStakePointRecord.y) |
|
|
|
, Util.formatDouble2StringDotAuto(targetStakePointRecord.y) |
|
|
|