Skip to content

Commit ad607ba

Browse files
committed
Some GeoJSON fixes
1 parent c78a558 commit ad607ba

File tree

1 file changed

+3
-59
lines changed

1 file changed

+3
-59
lines changed
Lines changed: 3 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -1,63 +1,7 @@
1-
GET /geojson/countries/3
1+
GET /geojson/countries
22
===
33
200
44
Content-Type: application/json
5-
Content-Length: 105
5+
Content-Length: 1607
66

7-
{"type":"Feature","properties":{"id":3,"name":"Point"},"geometry":{"type":"Point","coordinates":[30,10]}}
8-
===
9-
GET /geojson/countries/4
10-
===
11-
200
12-
Content-Type: application/json
13-
Content-Length: 127
14-
15-
{"type":"Feature","properties":{"id":4,"name":"Line"},"geometry":{"type":"LineString","coordinates":[[30,10],[10,30],[40,40]]}}
16-
===
17-
GET /geojson/countries/5
18-
===
19-
200
20-
Content-Type: application/json
21-
Content-Length: 143
22-
23-
{"type":"Feature","properties":{"id":5,"name":"Poly1"},"geometry":{"type":"Polygon","coordinates":[[[30,10],[40,40],[20,40],[10,20],[30,10]]]}}
24-
===
25-
GET /geojson/countries/6
26-
===
27-
200
28-
Content-Type: application/json
29-
Content-Length: 177
30-
31-
{"type":"Feature","properties":{"id":6,"name":"Poly2"},"geometry":{"type":"Polygon","coordinates":[[[35,10],[45,45],[15,40],[10,20],[35,10]],[[20,30],[35,35],[30,20],[20,30]]]}}
32-
===
33-
GET /geojson/countries/7
34-
===
35-
200
36-
Content-Type: application/json
37-
Content-Length: 137
38-
39-
{"type":"Feature","properties":{"id":7,"name":"Mpoint"},"geometry":{"type":"MultiPoint","coordinates":[[10,40],[40,30],[20,20],[30,10]]}}
40-
===
41-
GET /geojson/countries/8
42-
===
43-
200
44-
Content-Type: application/json
45-
Content-Length: 169
46-
47-
{"type":"Feature","properties":{"id":8,"name":"Mline"},"geometry":{"type":"MultiLineString","coordinates":[[[10,10],[20,20],[10,40]],[[40,40],[30,30],[40,20],[30,10]]]}}
48-
===
49-
GET /geojson/countries/9
50-
===
51-
200
52-
Content-Type: application/json
53-
Content-Length: 184
54-
55-
{"type":"Feature","properties":{"id":9,"name":"Mpoly1"},"geometry":{"type":"MultiPolygon","coordinates":[[[[30,20],[45,40],[10,40],[30,20]]],[[[15,5],[40,10],[10,20],[5,10],[15,5]]]]}}
56-
===
57-
GET /geojson/countries/10
58-
===
59-
200
60-
Content-Type: application/json
61-
Content-Length: 229
62-
63-
{"type":"Feature","properties":{"id":10,"name":"Mpoly2"},"geometry":{"type":"MultiPolygon","coordinates":[[[[40,40],[20,45],[45,30],[40,40]]],[[[20,35],[10,30],[10,10],[30,5],[45,20],[20,35]],[[30,20],[20,15],[20,25],[30,20]]]]}}
7+
{"type":"FeatureCollection","features":[{"type":"Feature","properties":{"id":1,"name":"Left"},"geometry":{"type":"Polygon","coordinates":[[[30,10],[40,40],[20,40],[10,20],[30,10]]]}},{"type":"Feature","properties":{"id":2,"name":"Right"},"geometry":{"type":"Polygon","coordinates":[[[70,10],[80,40],[60,40],[50,20],[70,10]]]}},{"type":"Feature","properties":{"id":3,"name":"Point"},"geometry":{"type":"Point","coordinates":[30,10]}},{"type":"Feature","properties":{"id":4,"name":"Line"},"geometry":{"type":"LineString","coordinates":[[30,10],[10,30],[40,40]]}},{"type":"Feature","properties":{"id":5,"name":"Poly1"},"geometry":{"type":"Polygon","coordinates":[[[30,10],[40,40],[20,40],[10,20],[30,10]]]}},{"type":"Feature","properties":{"id":6,"name":"Poly2"},"geometry":{"type":"Polygon","coordinates":[[[35,10],[45,45],[15,40],[10,20],[35,10]],[[20,30],[35,35],[30,20],[20,30]]]}},{"type":"Feature","properties":{"id":7,"name":"Mpoint"},"geometry":{"type":"MultiPoint","coordinates":[[10,40],[40,30],[20,20],[30,10]]}},{"type":"Feature","properties":{"id":8,"name":"Mline"},"geometry":{"type":"MultiLineString","coordinates":[[[10,10],[20,20],[10,40]],[[40,40],[30,30],[40,20],[30,10]]]}},{"type":"Feature","properties":{"id":9,"name":"Mpoly1"},"geometry":{"type":"MultiPolygon","coordinates":[[[[30,20],[45,40],[10,40],[30,20]]],[[[15,5],[40,10],[10,20],[5,10],[15,5]]]]}},{"type":"Feature","properties":{"id":10,"name":"Mpoly2"},"geometry":{"type":"MultiPolygon","coordinates":[[[[40,40],[20,45],[45,30],[40,40]]],[[[20,35],[10,30],[10,10],[30,5],[45,20],[20,35]],[[30,20],[20,15],[20,25],[30,20]]]]}}]}

0 commit comments

Comments
 (0)