|
|
@@ -14,6 +14,7 @@ import org.jetlinks.core.metadata.types.GeoShape;
|
|
|
import org.jetlinks.core.metadata.types.GeoType;
|
|
|
|
|
|
import javax.validation.constraints.NotBlank;
|
|
|
+import java.io.Serializable;
|
|
|
import java.util.*;
|
|
|
|
|
|
/**
|
|
|
@@ -26,7 +27,7 @@ import java.util.*;
|
|
|
@Data
|
|
|
@AllArgsConstructor
|
|
|
@NoArgsConstructor
|
|
|
-public class GeoJson {
|
|
|
+public class GeoJson implements Serializable{
|
|
|
private String type;
|
|
|
|
|
|
private List<Feature> features;
|
|
|
@@ -35,7 +36,7 @@ public class GeoJson {
|
|
|
@Data
|
|
|
@AllArgsConstructor
|
|
|
@NoArgsConstructor
|
|
|
- public static class Feature{
|
|
|
+ public static class Feature implements Serializable {
|
|
|
private String type;
|
|
|
private Map<String,Object> properties;
|
|
|
private GeoShape geometry;
|