diff --git a/examples/json/rfc7946-a1.geojson b/examples/json/rfc7946-a1.geojson new file mode 100644 --- /dev/null +++ b/examples/json/rfc7946-a1.geojson @@ -0,0 +1,4 @@ +{ + "type": "Point", + "coordinates": [100.0, 0.0] +} diff --git a/examples/json/rfc7946-a2.geojson b/examples/json/rfc7946-a2.geojson new file mode 100644 --- /dev/null +++ b/examples/json/rfc7946-a2.geojson @@ -0,0 +1,7 @@ +{ + "type": "LineString", + "coordinates": [ + [100.0, 0.0], + [101.0, 1.0] + ] +} diff --git a/examples/json/rfc7946-a3.geojson b/examples/json/rfc7946-a3.geojson new file mode 100644 --- /dev/null +++ b/examples/json/rfc7946-a3.geojson @@ -0,0 +1,12 @@ +{ + "type": "Polygon", + "coordinates": [ + [ + [100.0, 0.0], + [101.0, 0.0], + [101.0, 1.0], + [100.0, 1.0], + [100.0, 0.0] + ] + ] +} diff --git a/examples/json/rfc7946-a3b.geojson b/examples/json/rfc7946-a3b.geojson new file mode 100644 --- /dev/null +++ b/examples/json/rfc7946-a3b.geojson @@ -0,0 +1,19 @@ +{ + "type": "Polygon", + "coordinates": [ + [ + [100.0, 0.0], + [101.0, 0.0], + [101.0, 1.0], + [100.0, 1.0], + [100.0, 0.0] + ], + [ + [100.8, 0.8], + [100.8, 0.2], + [100.2, 0.2], + [100.2, 0.8], + [100.8, 0.8] + ] + ] +} diff --git a/examples/json/rfc7946-a4.geojson b/examples/json/rfc7946-a4.geojson new file mode 100644 --- /dev/null +++ b/examples/json/rfc7946-a4.geojson @@ -0,0 +1,7 @@ +{ + "type": "MultiPoint", + "coordinates": [ + [100.0, 0.0], + [101.0, 1.0] + ] +} diff --git a/examples/json/rfc7946-a5.geojson b/examples/json/rfc7946-a5.geojson new file mode 100644 --- /dev/null +++ b/examples/json/rfc7946-a5.geojson @@ -0,0 +1,13 @@ +{ + "type": "MultiLineString", + "coordinates": [ + [ + [100.0, 0.0], + [101.0, 1.0] + ], + [ + [102.0, 2.0], + [103.0, 3.0] + ] + ] +} diff --git a/examples/json/rfc7946-a6.geojson b/examples/json/rfc7946-a6.geojson new file mode 100644 --- /dev/null +++ b/examples/json/rfc7946-a6.geojson @@ -0,0 +1,30 @@ +{ + "type": "MultiPolygon", + "coordinates": [ + [ + [ + [102.0, 2.0], + [103.0, 2.0], + [103.0, 3.0], + [102.0, 3.0], + [102.0, 2.0] + ] + ], + [ + [ + [100.0, 0.0], + [101.0, 0.0], + [101.0, 1.0], + [100.0, 1.0], + [100.0, 0.0] + ], + [ + [100.2, 0.2], + [100.2, 0.8], + [100.8, 0.8], + [100.8, 0.2], + [100.2, 0.2] + ] + ] + ] +} diff --git a/examples/json/rfc7946-a7.geojson b/examples/json/rfc7946-a7.geojson new file mode 100644 --- /dev/null +++ b/examples/json/rfc7946-a7.geojson @@ -0,0 +1,16 @@ +{ + "type": "GeometryCollection", + "geometries": [ + { + "type": "Point", + "coordinates": [100.0, 0.0] + }, + { + "type": "LineString", + "coordinates": [ + [101.0, 0.0], + [102.0, 1.0] + ] + } + ] +} diff --git a/examples/json/rfc7946-example.geojson b/examples/json/rfc7946-example.geojson new file mode 100644 --- /dev/null +++ b/examples/json/rfc7946-example.geojson @@ -0,0 +1,82 @@ +{ + "features" : [ + { + "geometry" : { + "coordinates" : [ + 102, + 0.5 + ], + "type" : "Point" + }, + "properties" : { + "prop0" : "value0" + }, + "type" : "Feature" + }, + { + "geometry" : { + "coordinates" : [ + [ + 102, + 0 + ], + [ + 103, + 1 + ], + [ + 104, + 0 + ], + [ + 105, + 1 + ] + ], + "type" : "LineString" + }, + "properties" : { + "prop0" : "value0", + "prop1" : 0 + }, + "type" : "Feature" + }, + { + "geometry" : { + "coordinates" : [ + [ + [ + 100, + 0 + ], + [ + 101, + 0 + ], + [ + 101, + 1 + ], + [ + 100, + 1 + ], + [ + 100, + 0 + ] + ] + ], + "type" : "Polygon" + }, + "properties" : { + "prop0" : "value0", + "prop1" : { + "this" : "that" + } + }, + "type" : "Feature" + } + ], + "type" : "FeatureCollection" +}