|
121 | 121 | new Point(0, 180),
|
122 | 122 | ]);
|
123 | 123 |
|
124 |
| - $geometryCollectionFromJson = GeometryCollection::fromArray(json_decode('{"type":"GeometryCollection","geometries":[{"type":"Polygon","coordinates":[[[180,0],[179,1],[178,2],[177,3],[180,0]]]},{"type":"Point","coordinates":[180,0]}]}',true)); |
| 124 | + $geometryCollectionFromJson = GeometryCollection::fromArray(json_decode('{"type":"GeometryCollection","geometries":[{"type":"Polygon","coordinates":[[[180,0],[179,1],[178,2],[177,3],[180,0]]]},{"type":"Point","coordinates":[180,0]}]}', true)); |
125 | 125 |
|
126 | 126 | expect($geometryCollectionFromJson)->toEqual($geometryCollection);
|
127 | 127 | });
|
|
140 | 140 | new Point(0, 180),
|
141 | 141 | ], Srid::WGS84->value);
|
142 | 142 |
|
143 |
| - $geometryCollectionFromJson = GeometryCollection::fromArray(json_decode('{"type":"GeometryCollection","geometries":[{"type":"Polygon","coordinates":[[[180,0],[179,1],[178,2],[177,3],[180,0]]]},{"type":"Point","coordinates":[180,0]}]}',true), Srid::WGS84->value); |
| 143 | + $geometryCollectionFromJson = GeometryCollection::fromArray(json_decode('{"type":"GeometryCollection","geometries":[{"type":"Polygon","coordinates":[[[180,0],[179,1],[178,2],[177,3],[180,0]]]},{"type":"Point","coordinates":[180,0]}]}', true), Srid::WGS84->value); |
144 | 144 |
|
145 | 145 | expect($geometryCollectionFromJson)->toEqual($geometryCollection);
|
146 | 146 | });
|
|
197 | 197 | new Point(0, 180),
|
198 | 198 | ]);
|
199 | 199 |
|
200 |
| - $geometryCollectionFromFeatureCollectionJson = GeometryCollection::fromArray(json_decode('{"type":"FeatureCollection","features":[{"type":"Feature","properties":[],"geometry":{"type":"Polygon","coordinates":[[[180,0],[179,1],[178,2],[177,3],[180,0]]]}},{"type":"Feature","properties":[],"geometry":{"type":"Point","coordinates":[180,0]}}]}',true)); |
| 200 | + $geometryCollectionFromFeatureCollectionJson = GeometryCollection::fromArray(json_decode('{"type":"FeatureCollection","features":[{"type":"Feature","properties":[],"geometry":{"type":"Polygon","coordinates":[[[180,0],[179,1],[178,2],[177,3],[180,0]]]}},{"type":"Feature","properties":[],"geometry":{"type":"Point","coordinates":[180,0]}}]}', true)); |
201 | 201 |
|
202 | 202 | expect($geometryCollectionFromFeatureCollectionJson)->toEqual($geometryCollection);
|
203 | 203 | });
|
|
216 | 216 | new Point(0, 180),
|
217 | 217 | ], Srid::WGS84);
|
218 | 218 |
|
219 |
| - $geometryCollectionFromFeatureCollectionJson = GeometryCollection::fromArray(json_decode('{"type":"FeatureCollection","features":[{"type":"Feature","properties":[],"geometry":{"type":"Polygon","coordinates":[[[180,0],[179,1],[178,2],[177,3],[180,0]]]}},{"type":"Feature","properties":[],"geometry":{"type":"Point","coordinates":[180,0]}}]}',true), Srid::WGS84); |
| 219 | + $geometryCollectionFromFeatureCollectionJson = GeometryCollection::fromArray(json_decode('{"type":"FeatureCollection","features":[{"type":"Feature","properties":[],"geometry":{"type":"Polygon","coordinates":[[[180,0],[179,1],[178,2],[177,3],[180,0]]]}},{"type":"Feature","properties":[],"geometry":{"type":"Point","coordinates":[180,0]}}]}', true), Srid::WGS84); |
220 | 220 |
|
221 | 221 | expect($geometryCollectionFromFeatureCollectionJson)->toEqual($geometryCollection);
|
222 | 222 | });
|
|
0 commit comments