aix
2024-07-19 6cf5d9645686477280ebb30a11ab916eb1f33b73
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
package com.dji.sample.wayline.plane.controller;
 
import com.dji.sample.common.model.ResponseResult;
import com.dji.sample.log.aspect.SysLogAnnotation;
import com.dji.sample.wayline.plane.BoundingRectangle;
import com.dji.sample.wayline.plane.MapLatLng;
import com.dji.sample.wayline.plane.PlaneCourseUtils;
import com.dji.sample.wayline.plane.param.CreateWaylineParam;
import org.locationtech.jts.geom.Coordinate;
import org.locationtech.jts.geom.LineString;
import org.springframework.web.bind.annotation.*;
 
import java.util.List;
 
/**
 * @Author AIX
 * @Date 2024/7/19 10:46
 * @Version 1.0
 */
@RestController
@RequestMapping("/wayline/plane/wayline")
public class PlaneCreateWayLineController {
 
    @PostMapping("/createPoints")
    @SysLogAnnotation(operModul = "创建面状航线", operType = "创建面状航线", operDesc = "创建面状航线")
    public ResponseResult createPoints(@RequestBody CreateWaylineParam param) {
        return ResponseResult.success(PlaneCourseUtils.createWaylinePoints(param));
    }
 
}