1
13693261870
2024-11-14 5296b04442d1c09bf55a8f5a556355788ee9f8ca
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
package com.se.simu.domain.po;
 
import com.se.simu.domain.dto.PointDto;
import io.swagger.annotations.ApiModelProperty;
import org.gdal.ogr.Geometry;
import org.gdal.ogr.ogr;
 
@SuppressWarnings("ALL")
public class PondingPo {
    @ApiModelProperty("积水区域")
    private String polygon;
 
    @ApiModelProperty("积水点")
    private String point;
 
    @ApiModelProperty("积水深度")
    private Double depth;
 
    public PondingPo() {
    }
 
    public PondingPo(Geometry polygon, PointDto dto) {
        Geometry point = new Geometry(ogr.wkbPoint);
        point.AddPoint_2D(dto.getX(), dto.getY());
        point.AssignSpatialReference(polygon.GetSpatialReference());
 
        this.polygon = polygon.ExportToWkt();
        this.point = point.ExportToWkt();
        this.depth = dto.getVal();
    }
 
    public PondingPo(String polygon, String point, Double depth) {
        this.polygon = polygon;
        this.point = point;
        this.depth = depth;
    }
 
    public String getPolygon() {
        return polygon;
    }
 
    public void setPolygon(String polygon) {
        this.polygon = polygon;
    }
 
    public String getPoint() {
        return point;
    }
 
    public void setPoint(String point) {
        this.point = point;
    }
 
    public Double getDepth() {
        return depth;
    }
 
    public void setDepth(Double depth) {
        this.depth = depth;
    }
}