-
Notifications
You must be signed in to change notification settings - Fork 202
Commit 54dc5db
authored
Improve repr string representation of spatial types (#1231)
Instead of `POINT(1.0 2.0 3.0)` (regardless of the sub-type) the `repr` string
representation is now `WGS84Point(1.0, 2.0, 3.0)` or similar.
This is more in line with Python's recommendations:
> If at all possible, this should look like a valid Python expression that
> could be used to recreate an object with the same value (given an appropriate
> environment). If this is not possible, a string of the form
> <...some useful description...> should be returned.
>
> -- https://docs.python.org/3/reference/datamodel.html#object.__repr__ 1 parent 9816ca0 commit 54dc5db
File tree
6 files changed
+55
-9
lines changed- src/neo4j/spatial
- tests
- integration/examples
- unit/common/spatial
6 files changed
+55
-9
lines changedLines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
193 | 193 |
| |
194 | 194 |
| |
195 | 195 |
| |
196 | + | ||
196 | 197 |
| |
197 | 198 |
| |
198 | 199 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
69 | 69 |
| |
70 | 70 |
| |
71 | 71 |
| |
72 | - | ||
72 | + | ||
73 | 73 |
| |
74 | 74 |
| |
75 | 75 |
| |
|
Lines changed: 8 additions & 8 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
49 | 49 |
| |
50 | 50 |
| |
51 | 51 |
| |
52 | - | ||
52 | + | ||
53 | 53 |
| |
54 | 54 |
| |
55 | 55 |
| |
| |||
58 | 58 |
| |
59 | 59 |
| |
60 | 60 |
| |
61 | - | ||
61 | + | ||
62 | 62 |
| |
63 | 63 |
| |
64 | 64 |
| |
65 | 65 |
| |
66 | 66 |
| |
67 | 67 |
| |
68 | 68 |
| |
69 | - | ||
69 | + | ||
70 | 70 |
| |
71 | 71 |
| |
72 | 72 |
| |
| |||
75 | 75 |
| |
76 | 76 |
| |
77 | 77 |
| |
78 | - | ||
78 | + | ||
79 | 79 |
| |
80 | 80 |
| |
81 | 81 |
| |
| |||
110 | 110 |
| |
111 | 111 |
| |
112 | 112 |
| |
113 | - | ||
113 | + | ||
114 | 114 |
| |
115 | 115 |
| |
116 | 116 |
| |
| |||
119 | 119 |
| |
120 | 120 |
| |
121 | 121 |
| |
122 | - | ||
122 | + | ||
123 | 123 |
| |
124 | 124 |
| |
125 | 125 |
| |
126 | 126 |
| |
127 | 127 |
| |
128 | 128 |
| |
129 | 129 |
| |
130 | - | ||
130 | + | ||
131 | 131 |
| |
132 | 132 |
| |
133 | 133 |
| |
| |||
140 | 140 |
| |
141 | 141 |
| |
142 | 142 |
| |
143 | - | ||
143 | + | ||
144 | 144 |
| |
145 | 145 |
| |
146 | 146 |
| |
|
Lines changed: 17 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
80 | 80 |
| |
81 | 81 |
| |
82 | 82 |
| |
83 | + | ||
84 | + | ||
85 | + | ||
86 | + | ||
87 | + | ||
88 | + | ||
89 | + | ||
90 | + | ||
91 | + | ||
92 | + | ||
93 | + | ||
94 | + | ||
95 | + | ||
96 | + | ||
97 | + | ||
98 | + | ||
99 | + |
Lines changed: 14 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
93 | 93 |
| |
94 | 94 |
| |
95 | 95 |
| |
96 | + | ||
97 | + | ||
98 | + | ||
99 | + | ||
100 | + | ||
101 | + | ||
102 | + | ||
103 | + | ||
104 | + | ||
105 | + | ||
106 | + | ||
107 | + | ||
108 | + | ||
109 | + |
Lines changed: 14 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
98 | 98 |
| |
99 | 99 |
| |
100 | 100 |
| |
101 | + | ||
102 | + | ||
103 | + | ||
104 | + | ||
105 | + | ||
106 | + | ||
107 | + | ||
108 | + | ||
109 | + | ||
110 | + | ||
111 | + | ||
112 | + | ||
113 | + | ||
114 | + |
0 commit comments