Skip to content
This repository has been archived by the owner on Jul 11, 2023. It is now read-only.

Commit

Permalink
Add ex-geojson & ex-topojson
Browse files Browse the repository at this point in the history
  • Loading branch information
danfowler committed May 16, 2016
1 parent 70628a9 commit b0fc38f
Show file tree
Hide file tree
Showing 5 changed files with 70 additions and 0 deletions.
4 changes: 4 additions & 0 deletions simple-geojson/README.md
@@ -0,0 +1,4 @@
Example Geo [Data Package][] showing how to package up GeoJSON data.

[Data Package]: http://data.okfn.org/doc/data-package

24 changes: 24 additions & 0 deletions simple-geojson/data/example.geojson
@@ -0,0 +1,24 @@
{
"type": "FeatureCollection",
"features": [
{ "type": "Feature", "properties": { "scalerank": 1, "featurecla": "Admin-0 country", "labelrank": 2.0, "sovereignt": "United Kingdom", "sov_a3": "GB1", "adm0_dif": 1.0, "level": 2.0, "type": "Country", "admin": "United Kingdom", "adm0_a3": "GBR", "geou_dif": 0.0, "geounit": "United Kingdom", "gu_a3": "GBR", "su_dif": 0.0, "subunit": "United Kingdom", "su_a3": "GBR", "brk_diff": 0.0, "name": "United Kingdom", "name_long": "United Kingdom", "brk_a3": "GBR", "brk_name": "United Kingdom", "brk_group": null, "abbrev": "U.K.", "postal": "GB", "formal_en": "United Kingdom of Great Britain and Northern Ireland", "formal_fr": null, "note_adm0": null, "note_brk": null, "name_sort": "United Kingdom", "name_alt": null, "mapcolor7": 6.0, "mapcolor8": 6.0, "mapcolor9": 6.0, "mapcolor13": 3.0, "pop_est": 62262000.0, "gdp_md_est": 1977704.0, "pop_year": 0.0, "lastcensus": 2011.0, "gdp_year": 2009.0, "economy": "1. Developed region: G7", "income_grp": "1. High income: OECD", "wikipedia": -99.0, "fips_10": null, "iso_a2": "GB", "iso_a3": "GBR", "iso_n3": "826", "un_a3": "826", "wb_a2": "GB", "wb_a3": "GBR", "woe_id": -99.0, "adm0_a3_is": "GBR", "adm0_a3_us": "GBR", "adm0_a3_un": -99.0, "adm0_a3_wb": -99.0, "continent": "Europe", "region_un": "Europe", "subregion": "Northern Europe", "region_wb": "Europe & Central Asia", "name_len": 14.0, "long_len": 14.0, "abbrev_len": 4.0, "tiny": -99.0, "homepart": 1.0 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -5.661948614921897, 54.554603176483852 ], [ -6.197884894220977, 53.867565009163343 ], [ -6.953730231137996, 54.073702297575636 ], [ -7.572167934591079, 54.059956366585993 ], [ -7.366030646178785, 54.595840969452695 ], [ -7.572167934591079, 55.131622219454897 ], [ -6.733847011736145, 55.172860012423797 ], [ -5.661948614921897, 54.554603176483852 ] ] ], [ [ [ -3.005004848635281, 58.635000108466329 ], [ -4.073828497728016, 57.553024807355257 ], [ -3.055001796877661, 57.69001902936094 ], [ -1.959280564776918, 57.684799709699519 ], [ -2.219988165689301, 56.870017401753529 ], [ -3.119003058271119, 55.973793036515474 ], [ -2.085009324543023, 55.909998480851272 ], [ -2.005675679673857, 55.804902850350231 ], [ -1.11499101399221, 54.624986477265395 ], [ -0.4304849918542, 54.464376125702159 ], [ 0.184981316742039, 53.325014146531032 ], [ 0.469976840831777, 52.929999498091973 ], [ 1.681530795914739, 52.739520168664001 ], [ 1.559987827164377, 52.099998480836007 ], [ 1.050561557630914, 51.806760565795685 ], [ 1.449865349950301, 51.289427802121963 ], [ 0.550333693045502, 50.765738837275876 ], [ -0.78751746255864, 50.77498891865622 ], [ -2.489997524414377, 50.500018622431242 ], [ -2.956273972984036, 50.696879991247016 ], [ -3.617448085942328, 50.228355617872722 ], [ -4.542507900399244, 50.341837063185665 ], [ -5.245023159191135, 49.959999904981089 ], [ -5.776566941745301, 50.159677639356829 ], [ -4.309989793301838, 51.210001125689161 ], [ -3.414850633142123, 51.42600861266925 ], [ -3.422719467108323, 51.426848167406092 ], [ -4.984367234710874, 51.593466091510976 ], [ -5.267295701508885, 51.991400458374585 ], [ -4.222346564134853, 52.301355699261364 ], [ -4.770013393564113, 52.840004991255626 ], [ -4.579999152026915, 53.495003770555172 ], [ -3.093830673788659, 53.404547400669685 ], [ -3.092079637047107, 53.404440822963551 ], [ -2.945008510744344, 53.984999701546684 ], [ -3.614700825433033, 54.600936773292574 ], [ -3.630005458989331, 54.615012925833014 ], [ -4.844169073903004, 54.790971177786844 ], [ -5.082526617849226, 55.061600653699372 ], [ -4.719112107756644, 55.508472601943481 ], [ -5.047980922862109, 55.78398550070753 ], [ -5.58639767091114, 55.311146145236819 ], [ -5.644998745130181, 56.275014960344805 ], [ -6.149980841486354, 56.785009670633542 ], [ -5.786824713555291, 57.818848375064647 ], [ -5.009998745127575, 58.630013332750053 ], [ -4.211494513353557, 58.550845038479167 ], [ -3.005004848635281, 58.635000108466329 ] ] ] ] } },

{ "type": "Feature", "properties": { "scalerank": 1, "featurecla": "Admin-0 country", "labelrank": 2.0, "sovereignt": "United Kingdom", "sov_a3": "GB1", "adm0_dif": 1.0, "level": 2.0, "type": "Country", "admin": "United Kingdom", "adm0_a3": "GBR", "geou_dif": 0.0, "geounit": "United Kingdom", "gu_a3": "GBR", "su_dif": 0.0, "subunit": "United Kingdom", "su_a3": "GBR", "brk_diff": 0.0, "name": "United Kingdom", "name_long": "United Kingdom", "brk_a3": "GBR", "brk_name": "United Kingdom", "brk_group": null, "abbrev": "U.K.", "postal": "GB", "formal_en": "United Kingdom of Great Britain and Northern Ireland", "formal_fr": null, "note_adm0": null, "note_brk": null, "name_sort": "United Kingdom", "name_alt": null, "mapcolor7": 6.0, "mapcolor8": 6.0, "mapcolor9": 6.0, "mapcolor13": 3.0, "pop_est": 62262000.0, "gdp_md_est": 1977704.0, "pop_year": 0.0, "lastcensus": 2011.0, "gdp_year": 2009.0, "economy": "1. Developed region: G7", "income_grp": "1. High income: OECD", "wikipedia": -99.0, "fips_10": null, "iso_a2": "GB", "iso_a3": "GBR", "iso_n3": "826", "un_a3": "826", "wb_a2": "GB", "wb_a3": "GBR", "woe_id": -99.0, "adm0_a3_is": "GBR", "adm0_a3_us": "GBR", "adm0_a3_un": -99.0, "adm0_a3_wb": -99.0, "continent": "Europe", "region_un": "Europe", "subregion": "Northern Europe", "region_wb": "Europe & Central Asia", "name_len": 14.0, "long_len": 14.0, "abbrev_len": 4.0, "tiny": -99.0, "homepart": 1.0 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ -5.661948614921897, 54.554603176483852 ], [ -6.197884894220977, 53.867565009163343 ], [ -6.953730231137996, 54.073702297575636 ], [ -7.572167934591079, 54.059956366585993 ], [ -7.366030646178785, 54.595840969452695 ], [ -7.572167934591079, 55.131622219454897 ], [ -6.733847011736145, 55.172860012423797 ], [ -5.661948614921897, 54.554603176483852 ] ] ], [ [ [ -3.005004848635281, 58.635000108466329 ], [ -4.073828497728016, 57.553024807355257 ], [ -3.055001796877661, 57.69001902936094 ], [ -1.959280564776918, 57.684799709699519 ], [ -2.219988165689301, 56.870017401753529 ], [ -3.119003058271119, 55.973793036515474 ], [ -2.085009324543023, 55.909998480851272 ], [ -2.005675679673857, 55.804902850350231 ], [ -1.11499101399221, 54.624986477265395 ], [ -0.4304849918542, 54.464376125702159 ], [ 0.184981316742039, 53.325014146531032 ], [ 0.469976840831777, 52.929999498091973 ], [ 1.681530795914739, 52.739520168664001 ], [ 1.559987827164377, 52.099998480836007 ], [ 1.050561557630914, 51.806760565795685 ], [ 1.449865349950301, 51.289427802121963 ], [ 0.550333693045502, 50.765738837275876 ], [ -0.78751746255864, 50.77498891865622 ], [ -2.489997524414377, 50.500018622431242 ], [ -2.956273972984036, 50.696879991247016 ], [ -3.617448085942328, 50.228355617872722 ], [ -4.542507900399244, 50.341837063185665 ], [ -5.245023159191135, 49.959999904981089 ], [ -5.776566941745301, 50.159677639356829 ], [ -4.309989793301838, 51.210001125689161 ], [ -3.414850633142123, 51.42600861266925 ], [ -3.422719467108323, 51.426848167406092 ], [ -4.984367234710874, 51.593466091510976 ], [ -5.267295701508885, 51.991400458374585 ], [ -4.222346564134853, 52.301355699261364 ], [ -4.770013393564113, 52.840004991255626 ], [ -4.579999152026915, 53.495003770555172 ], [ -3.093830673788659, 53.404547400669685 ], [ -3.092079637047107, 53.404440822963551 ], [ -2.945008510744344, 53.984999701546684 ], [ -3.614700825433033, 54.600936773292574 ], [ -3.630005458989331, 54.615012925833014 ], [ -4.844169073903004, 54.790971177786844 ], [ -5.082526617849226, 55.061600653699372 ], [ -4.719112107756644, 55.508472601943481 ], [ -5.047980922862109, 55.78398550070753 ], [ -5.58639767091114, 55.311146145236819 ], [ -5.644998745130181, 56.275014960344805 ], [ -6.149980841486354, 56.785009670633542 ], [ -5.786824713555291, 57.818848375064647 ], [ -5.009998745127575, 58.630013332750053 ], [ -4.211494513353557, 58.550845038479167 ], [ -3.005004848635281, 58.635000108466329 ] ] ] ] } },
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
20.522875,
51.070292
]
},
"properties": {
"id": 1,
"marker-size": "small",
"marker-color": "#f5a91a",
"marker-symbol": "b"
}
}
]
}
18 changes: 18 additions & 0 deletions simple-geojson/datapackage.json
@@ -0,0 +1,18 @@
{
"name": "ex-geojson",
"title": "Example Geo (JSON) Data Package",
"version": "0.1.0",
"repository": {
"type": "git",
"url": "git://github.com/datasets/ex-geojson.git"
},
"license": "PDDL-1.0",
"resources": [
{
"name": "example",
"path": "data/example.geojson",
"format": "geojson",
"mediatype": "application/json"
}
]
}
2 changes: 2 additions & 0 deletions simple-topojson/README.md
@@ -0,0 +1,2 @@
Example TopoJSON Data Package providing a data package for Mike Bostock's example TopoJSON at <https://github.com/mbostock/topojson/tree/master/examples>

22 changes: 22 additions & 0 deletions simple-topojson/datapackage.json
@@ -0,0 +1,22 @@
{
"name": "ex-topojson",
"title": "TopoJSON Example Data Package",
"description": "",
"licenses": [
{
"id": "odc-pddl",
"name": "Public Domain Dedication and License",
"version": "1.0",
"url": "http://opendatacommons.org/licenses/pddl/1.0/"
}
],
"resources": [
{
"url": "https://github.com/mbostock/topojson/raw/master/examples/us-10m.json",
"name": "us-10m",
"format": "topojson",
"mediatype": "application/json",
"description": "US 1:10m topojson"
}
]
}

0 comments on commit b0fc38f

Please sign in to comment.