FeatureWithRawJson.java 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. package com.ruoyi;
  2. public class FeatureWithRawJson {
  3. private String type;
  4. private String geometry; // 存储geometry的JSON字符串
  5. private String properties; // 存储properties的JSON字符串
  6. // 构造方法
  7. public FeatureWithRawJson() {}
  8. public FeatureWithRawJson(String type, String geometry, String properties) {
  9. this.type = type;
  10. this.geometry = geometry;
  11. this.properties = properties;
  12. }
  13. // Getter和Setter方法
  14. public String getType() {
  15. return type;
  16. }
  17. public void setType(String type) {
  18. this.type = type;
  19. }
  20. public String getGeometry() {
  21. return geometry;
  22. }
  23. public void setGeometry(String geometry) {
  24. this.geometry = geometry;
  25. }
  26. public String getProperties() {
  27. return properties;
  28. }
  29. public void setProperties(String properties) {
  30. this.properties = properties;
  31. }
  32. @Override
  33. public String toString() {
  34. return "FeatureWithRawJson{" +
  35. "type='" + type + '\'' +
  36. ", geometry='" + geometry + '\'' +
  37. ", properties='" + properties + '\'' +
  38. '}';
  39. }
  40. }