只接收耕地类型的火点

This commit is contained in:
liuchengqian 2023-03-10 17:21:03 +08:00
parent bcae4ea896
commit b6bf402c2c

View File

@ -17,11 +17,11 @@ public class FirePointFilterUtils {
} }
public static DataWrapper2<Boolean, String> checkLandType(String landType) { public static DataWrapper2<Boolean, String> checkLandType(String landType) {
if ("水体".equals(landType)) { if ("耕地".equals(landType)) {
return new DataWrapper2<>(Boolean.FALSE, "添加失败,不接收水体类型");
}
return new DataWrapper2<>(Boolean.TRUE, ""); return new DataWrapper2<>(Boolean.TRUE, "");
} }
return new DataWrapper2<>(Boolean.FALSE, "添加失败,只接收耕地类型的火点");
}
public static DataWrapper2<Boolean, String> checkSatelliteType(String satelliteType, String confidence) { public static DataWrapper2<Boolean, String> checkSatelliteType(String satelliteType, String confidence) {
if ("Himawari 8".equals(satelliteType)) { if ("Himawari 8".equals(satelliteType)) {