@@ -30,6 +30,7 @@ public final class GeoJSONAnalyzerProperties {
30
30
31
31
private GeoJSONAnalyzerType type ;
32
32
private GeoAnalyzerOptions options ;
33
+ private Boolean legacy ;
33
34
34
35
public GeoJSONAnalyzerType getType () {
35
36
return type ;
@@ -51,17 +52,36 @@ public void setOptions(GeoAnalyzerOptions options) {
51
52
this .options = options ;
52
53
}
53
54
55
+ /**
56
+ * @return This option controls how GeoJSON Polygons are interpreted (introduced in v3.10.5).
57
+ * - If `legacy` is `true`, the smaller of the two regions defined by a
58
+ * linear ring is interpreted as the interior of the ring and a ring can at most
59
+ * enclose half the Earth's surface.
60
+ * - If `legacy` is `false`, the area to the left of the boundary ring's
61
+ * path is considered to be the interior and a ring can enclose the entire
62
+ * surface of the Earth.
63
+ * <p>
64
+ * The default is `false`.
65
+ */
66
+ public Boolean getLegacy () {
67
+ return legacy ;
68
+ }
69
+
70
+ public void setLegacy (Boolean legacy ) {
71
+ this .legacy = legacy ;
72
+ }
73
+
54
74
@ Override
55
75
public boolean equals (Object o ) {
56
76
if (this == o ) return true ;
57
77
if (o == null || getClass () != o .getClass ()) return false ;
58
78
GeoJSONAnalyzerProperties that = (GeoJSONAnalyzerProperties ) o ;
59
- return type == that .type && Objects .equals (options , that .options );
79
+ return type == that .type && Objects .equals (options , that .options ) && Objects . equals ( legacy , that . legacy ) ;
60
80
}
61
81
62
82
@ Override
63
83
public int hashCode () {
64
- return Objects .hash (type , options );
84
+ return Objects .hash (type , options , legacy );
65
85
}
66
86
67
87
public enum GeoJSONAnalyzerType {
0 commit comments