diff --git a/examples/json/Marble writing.geojson b/examples/json/Marble writing.geojson new file mode 100644 index 000000000..8d038d37b --- /dev/null +++ b/examples/json/Marble writing.geojson @@ -0,0 +1 @@ +{"type":"FeatureCollection","features":[{"type":"Feature","geometry":{"type":"LineString","coordinates":[[1.110056746540266,46.90547933241913,0],[1.064910789664623,49.17851029685333,0],[0.1850540915535106,51.66840530254076,0],[-0.3940645391388386,53.14483572743372,0],[-1.028068479859257,54.63319851183455,0],[6.711092034768427,47.55694522180596,0],[8.03914873407895,55.24719979485843,0],[13.0616697078341,48.26865818165071,0]]},"properties":{"stroke":"#ff0000","stroke-width":5,"stroke-opacity":1,"name":"Marble_M","description":"This is the beginning of the Marble M"}},{"type":"Feature","geometry":{"type":"Polygon","coordinates":[[[16.20780215493531,48.64740394774931,0],[17.6226322793824,50.75111940107365,0],[21.04585892960819,51.16946886662637,0],[23.93061393594302,49.10852654288753,0],[18.90125424053547,55.3089913420956,0],[16.20780215493531,48.64740394774931,0]]]},"properties":{"stroke":"#ff5500","stroke-width":5,"stroke-opacity":1,"fill":"#000000","fill-opacity":1,"name":"Marble_A","description":"This is the Marble A"}},{"type":"Feature","geometry":{"type":"Polygon","coordinates":[[[26.57191691868945,54.7246472124459,0],[25.2424472758706,51.37306223088392,0],[29.47497017833969,50.08601017997183,0],[33.62102677169024,46.44089921368618,0],[25.9290099288024,47.82448319969324,0],[26.10421626274755,50.97693704084993,0],[28.17526995898103,50.57121417835242,0],[31.34864852739417,51.03205750679784,0],[33.0131257515426,51.84759233491013,0],[32.89017790785309,53.74086982830892,0],[29.77998942361951,54.65457698583217,0],[26.57191691868945,54.7246472124459,0]]]},"properties":{"stroke":"#000000","stroke-width":5,"stroke-opacity":1,"fill":"#ff0000","fill-opacity":1,"name":"Marble_R","description":"This is the Marble R"}},{"type":"Feature","geometry":{"type":"Polygon","coordinates":[[[37.44459617637872,52.68406243312819,0],[39.15727379234207,52.92214026418468,0],[41.2482514815481,52.37720929762562,0],[42.23980983514954,51.60481425300282,0],[42.30363664948663,50.72070264233033,0],[41.08355256143179,49.98487471216723,0],[39.6570243519939,49.63155681931436,0],[36.1610771915519,50.06330305084337,0],[36.84122218440423,51.30319479151154,0],[37.13671985818532,51.99208956116947,0],[36.32494625478199,50.03749493699412,0],[36.18083901595121,49.00067839077149,0],[35.94825949793903,47.92630004367649,0],[37.04074605030149,47.2963220369325,0],[38.47033953989785,46.92332610026425,0],[40.61477167154013,46.8334821815844,0],[41.1763985785505,47.85360983425024,0],[40.75197026398686,48.96549486146966,0],[39.60016486062466,49.69888708793234,0],[36.44870067697119,50.1297238853532,0],[37.44459617637872,52.68406243312819,0]]]},"properties":{"stroke":"#0000ff","stroke-width":10,"stroke-opacity":1,"fill":"#ffffff","fill-opacity":1,"name":"Marble_B","description":"The letter B of Marble"}},{"type":"Feature","geometry":{"type":"LineString","coordinates":[[45.7650322492028,51.21417981815208,0],[42.92671902241045,44.87702363768481,0],[52.14372887585783,41.99641505938497,0]]},"properties":{"stroke":"#00aa00","stroke-width":5,"stroke-opacity":1,"name":"Marble_L","description":"The marble L"}},{"type":"Feature","geometry":{"type":"LineString","coordinates":[[58.79353470131255,47.64689775744193,0],[57.39784461502211,44.69854516832799,0],[54.67562232495283,41.47672926205207,0],[59.31047704342792,39.14498311289282,0],[60.87100526195201,38.41059807331653,0]]},"properties":{"stroke":"#ff00ff","stroke-width":5,"stroke-opacity":1,"name":"Marble E/1","description":"The lower part of the Marble E"}},{"type":"Feature","geometry":{"type":"LineString","coordinates":[[58.75736399117352,47.64387327711553,0],[62.10763412307762,46.75154350525882,0],[65.40165392731396,45.68683025250068,0]]},"properties":{"stroke":"#ff00ff","stroke-width":5,"stroke-opacity":1,"name":"Marble_E/2","description":"the second part of the Letter E"}},{"type":"Feature","geometry":{"type":"LineString","coordinates":[[57.09263263178666,44.31640151357591,0],[60.18495792683422,43.19766019655175,0],[62.76757527089762,42.12989240894545,0]]},"properties":{"stroke":"#ff00ff","stroke-width":5,"stroke-opacity":1,"name":"Marble_E/3","description":"the third part of the Letter E"}}]} \ No newline at end of file diff --git a/examples/json/rfc7946-a1-point.geojson b/examples/json/rfc7946-a1-point.geojson new file mode 100644 index 000000000..393316a12 --- /dev/null +++ b/examples/json/rfc7946-a1-point.geojson @@ -0,0 +1,4 @@ +{ + "type": "Point", + "coordinates": [100.0, 0.0] +} diff --git a/examples/json/rfc7946-a2-linestring.geojson b/examples/json/rfc7946-a2-linestring.geojson new file mode 100644 index 000000000..7b4847471 --- /dev/null +++ b/examples/json/rfc7946-a2-linestring.geojson @@ -0,0 +1,7 @@ +{ + "type": "LineString", + "coordinates": [ + [100.0, 0.0], + [101.0, 1.0] + ] +} diff --git a/examples/json/rfc7946-a3-polygon-no-hole.geojson b/examples/json/rfc7946-a3-polygon-no-hole.geojson new file mode 100644 index 000000000..63e2703cd --- /dev/null +++ b/examples/json/rfc7946-a3-polygon-no-hole.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-a3-polygon-with-hole.geojson b/examples/json/rfc7946-a3-polygon-with-hole.geojson new file mode 100644 index 000000000..3683726a4 --- /dev/null +++ b/examples/json/rfc7946-a3-polygon-with-hole.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-multipoint.geojson b/examples/json/rfc7946-a4-multipoint.geojson new file mode 100644 index 000000000..3e39fbd0d --- /dev/null +++ b/examples/json/rfc7946-a4-multipoint.geojson @@ -0,0 +1,7 @@ +{ + "type": "MultiPoint", + "coordinates": [ + [100.0, 0.0], + [101.0, 1.0] + ] +} diff --git a/examples/json/rfc7946-a5-multilinestring.geojson b/examples/json/rfc7946-a5-multilinestring.geojson new file mode 100644 index 000000000..fe5e8dee3 --- /dev/null +++ b/examples/json/rfc7946-a5-multilinestring.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-multipolygon.geojson b/examples/json/rfc7946-a6-multipolygon.geojson new file mode 100644 index 000000000..8cf735391 --- /dev/null +++ b/examples/json/rfc7946-a6-multipolygon.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-geometrycollection.geojson b/examples/json/rfc7946-a7-geometrycollection.geojson new file mode 100644 index 000000000..ae5bab37d --- /dev/null +++ b/examples/json/rfc7946-a7-geometrycollection.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 index 000000000..0bb05b6de --- /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" +}