Commit 9bdd82b
committed
Support serialization of geo shapes on documents (#3208)
* Support serialization of geo shapes on documents
Fixes #3100
Fixes #3096
* GeometryCollection implements IGeoShape
This commit changes GeometryCollection to implement IGeoShape, to allow a document to have an
IGeoShape member and accept a GeometryCollection. IGeoShape.Type is implemented explicitly so
that the existing Type member continues to be the implicit implementation of IGeometryCollection.
The ideal scenario would have been for IGeometryCollection to implement IGeoShape however this
would break backwards binary compatibility, since both interfaces have a Type member.
(cherry picked from commit 96c0d4d)
This commit includes changes from PR #3214, which were required to address incorrect
serialization introduced in 6.x1 parent 4663659 commit 9bdd82b
File tree
17 files changed
+529
-197
lines changed- .paket
- build/scripts
- src
- Nest
- CommonAbstractions/SerializationBehavior/GenericJsonConverters
- QueryDsl/Geo
- Shape
- Envelope
- GeometryCollection
- Tests
- Framework
- MockData
- SerializationTests
- QueryDsl/Geo
- Shape
- IndexedShape
17 files changed
+529
-197
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
52 | | - | |
| 51 | + | |
| 52 | + | |
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
| 57 | + | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
| 60 | + | |
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| |||
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
| 130 | + | |
130 | 131 | | |
131 | 132 | | |
132 | 133 | | |
| |||
183 | 184 | | |
184 | 185 | | |
185 | 186 | | |
186 | | - | |
187 | | - | |
| 187 | + | |
| 188 | + | |
188 | 189 | | |
189 | 190 | | |
190 | 191 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
35 | 39 | | |
36 | 40 | | |
37 | 41 | | |
| |||
41 | 45 | | |
42 | 46 | | |
43 | 47 | | |
44 | | - | |
| 48 | + | |
45 | 49 | | |
46 | 50 | | |
47 | 51 | | |
| |||
69 | 73 | | |
70 | 74 | | |
71 | 75 | | |
72 | | - | |
| 76 | + | |
73 | 77 | | |
74 | 78 | | |
75 | 79 | | |
| |||
150 | 154 | | |
151 | 155 | | |
152 | 156 | | |
153 | | - | |
| 157 | + | |
154 | 158 | | |
155 | 159 | | |
156 | 160 | | |
| |||
Lines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
35 | | - | |
| 34 | + | |
36 | 35 | | |
37 | 36 | | |
38 | 37 | | |
| |||
41 | 40 | | |
42 | 41 | | |
43 | 42 | | |
| 43 | + | |
| 44 | + | |
44 | 45 | | |
45 | 46 | | |
46 | 47 | | |
| |||
49 | 50 | | |
50 | 51 | | |
51 | 52 | | |
52 | | - | |
| 53 | + | |
53 | 54 | | |
54 | 55 | | |
55 | 56 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | 11 | | |
13 | 12 | | |
14 | 13 | | |
| |||
18 | 17 | | |
19 | 18 | | |
20 | 19 | | |
21 | | - | |
22 | | - | |
| 20 | + | |
23 | 21 | | |
24 | 22 | | |
25 | 23 | | |
26 | 24 | | |
27 | 25 | | |
28 | | - | |
29 | | - | |
| 26 | + | |
30 | 27 | | |
31 | 28 | | |
32 | | - | |
| 29 | + | |
33 | 30 | | |
34 | 31 | | |
35 | 32 | | |
| |||
42 | 39 | | |
43 | 40 | | |
44 | 41 | | |
45 | | - | |
46 | | - | |
| 42 | + | |
| 43 | + | |
47 | 44 | | |
48 | 45 | | |
49 | 46 | | |
50 | 47 | | |
51 | 48 | | |
52 | 49 | | |
53 | 50 | | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
| 51 | + | |
58 | 52 | | |
59 | 53 | | |
60 | 54 | | |
61 | 55 | | |
62 | 56 | | |
63 | 57 | | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
| 58 | + | |
68 | 59 | | |
69 | 60 | | |
70 | | - | |
| 61 | + | |
71 | 62 | | |
72 | 63 | | |
73 | 64 | | |
| |||
80 | 71 | | |
81 | 72 | | |
82 | 73 | | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
87 | 77 | | |
88 | 78 | | |
89 | 79 | | |
90 | 80 | | |
91 | 81 | | |
92 | 82 | | |
93 | 83 | | |
94 | | - | |
| 84 | + | |
95 | 85 | | |
96 | 86 | | |
97 | 87 | | |
| |||
106 | 96 | | |
107 | 97 | | |
108 | 98 | | |
109 | | - | |
| 99 | + | |
110 | 100 | | |
111 | 101 | | |
112 | 102 | | |
| |||
117 | 107 | | |
118 | 108 | | |
119 | 109 | | |
120 | | - | |
121 | | - | |
| 110 | + | |
122 | 111 | | |
123 | | - | |
124 | | - | |
| 112 | + | |
125 | 113 | | |
126 | 114 | | |
127 | 115 | | |
128 | 116 | | |
129 | 117 | | |
130 | 118 | | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
135 | 122 | | |
136 | 123 | | |
137 | 124 | | |
| |||
141 | 128 | | |
142 | 129 | | |
143 | 130 | | |
144 | | - | |
145 | | - | |
146 | | - | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
147 | 135 | | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
148 | 140 | | |
149 | 141 | | |
150 | 142 | | |
151 | | - | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
152 | 146 | | |
153 | 147 | | |
154 | 148 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | | - | |
18 | | - | |
| 16 | + | |
19 | 17 | | |
20 | | - | |
21 | 18 | | |
22 | 19 | | |
23 | 20 | | |
| |||
0 commit comments