Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

examples/geojson: Use libcoveofds, not ofdskit #204

Merged
merged 1 commit into from
Dec 1, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/history/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ Iterative improvements are made outside of the release cycle. They do not involv
* [#184](https://github.com/Open-Telecoms-Data/open-fibre-data-standard/pull/184) - Fix broken schema browser.
* [#196](https://github.com/Open-Telecoms-Data/open-fibre-data-standard/pull/196) - Add link to the OFDS Convert, Validate, Explore tool (CoVE).
* [#197](https://github.com/Open-Telecoms-Data/open-fibre-data-standard/pull/197) - Update pull request template.
* [#204](https://github.com/Open-Telecoms-Data/open-fibre-data-standard/pull/204) - Update GeoJSON examples.

## 0.1.0-beta - 2022-11-10

Expand Down
36 changes: 32 additions & 4 deletions examples/geojson/nodes.geojson
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,14 @@
"funders": [
{
"id": "1",
"name": "Ghana Infrastructure Investment Fund"
"name": "Ghana Infrastructure Investment Fund",
"country": "GH",
"roles": [
"funder"
],
"roleDetails": "The Ghana Infrastructure Investment Fund provided equity financing for the construction of phase 1 of the NextGen network.",
"website": "https://www.example.com",
"logo": "https://www.example.com/logo.png"
}
]
},
Expand Down Expand Up @@ -110,7 +117,14 @@
"funders": [
{
"id": "1",
"name": "Ghana Infrastructure Investment Fund"
"name": "Ghana Infrastructure Investment Fund",
"country": "GH",
"roles": [
"funder"
],
"roleDetails": "The Ghana Infrastructure Investment Fund provided equity financing for the construction of phase 1 of the NextGen network.",
"website": "https://www.example.com",
"logo": "https://www.example.com/logo.png"
}
]
}
Expand Down Expand Up @@ -168,7 +182,14 @@
"funders": [
{
"id": "1",
"name": "Ghana Infrastructure Investment Fund"
"name": "Ghana Infrastructure Investment Fund",
"country": "GH",
"roles": [
"funder"
],
"roleDetails": "The Ghana Infrastructure Investment Fund provided equity financing for the construction of phase 1 of the NextGen network.",
"website": "https://www.example.com",
"logo": "https://www.example.com/logo.png"
}
]
},
Expand Down Expand Up @@ -252,7 +273,14 @@
"funders": [
{
"id": "1",
"name": "Ghana Infrastructure Investment Fund"
"name": "Ghana Infrastructure Investment Fund",
"country": "GH",
"roles": [
"funder"
],
"roleDetails": "The Ghana Infrastructure Investment Fund provided equity financing for the construction of phase 1 of the NextGen network.",
"website": "https://www.example.com",
"logo": "https://www.example.com/logo.png"
}
]
}
Expand Down
18 changes: 16 additions & 2 deletions examples/geojson/spans.geojson
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,14 @@
"funders": [
{
"id": "1",
"name": "Ghana Infrastructure Investment Fund"
"name": "Ghana Infrastructure Investment Fund",
"country": "GH",
"roles": [
"funder"
],
"roleDetails": "The Ghana Infrastructure Investment Fund provided equity financing for the construction of phase 1 of the NextGen network.",
"website": "https://www.example.com",
"logo": "https://www.example.com/logo.png"
}
]
},
Expand Down Expand Up @@ -256,7 +263,14 @@
"funders": [
{
"id": "1",
"name": "Ghana Infrastructure Investment Fund"
"name": "Ghana Infrastructure Investment Fund",
"country": "GH",
"roles": [
"funder"
],
"roleDetails": "The Ghana Infrastructure Investment Fund provided equity financing for the construction of phase 1 of the NextGen network.",
"website": "https://www.example.com",
"logo": "https://www.example.com/logo.png"
}
]
}
Expand Down
2 changes: 1 addition & 1 deletion manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -775,7 +775,7 @@ def pre_commit():
update_schema_docs(schema)

# Update examples/geojson/nodes.geojson and examples/geojson/spans.geojson
subprocess.run(['ofdskit', 'jsontogeojson', 'examples/json/network-package.json', 'examples/geojson/nodes.geojson', 'examples/geojson/spans.geojson'])
subprocess.run(['libcoveofds', 'jsontogeojson', 'examples/json/network-package.json', 'examples/geojson/nodes.geojson', 'examples/geojson/spans.geojson'])

@cli.command()
@click.argument('filename', type=click.Path(exists=True))
Expand Down
2 changes: 1 addition & 1 deletion requirements.in
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ pyairtable
PyGithub
ocdskit
sphinx-design
ofdskit
libcoveofds
flattentool
15 changes: 12 additions & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ appdirs==1.4.4
attrs==22.1.0
# via
# cattrs
# jsonschema
# requests-cache
babel==2.10.3
# via
Expand Down Expand Up @@ -72,7 +73,9 @@ jinja2==3.1.2
# myst-parser
# sphinx
json-merge-patch==0.2
# via ocdsextensionregistry
# via
# libcoveofds
# ocdsextensionregistry
jsonpointer==2.3
# via
# sphinxcontrib-opendataservices
Expand All @@ -81,10 +84,15 @@ jsonref==0.2
# via
# -r requirements.in
# flattentool
# libcoveofds
# ocdsextensionregistry
# ocdskit
# ocdsmerge
# sphinxcontrib-opendataservices-jsonschema
jsonschema==4.17.3
# via libcoveofds
libcoveofds==0.5.0
# via -r requirements.in
livereload==2.6.3
# via sphinx-autobuild
lxml==4.9.1
Expand Down Expand Up @@ -112,8 +120,6 @@ ocdsmerge==0.6.6
# via ocdskit
odfpy==1.4.1
# via flattentool
ofdskit==0.0.0
# via -r requirements.in
openpyxl==3.0.10
# via flattentool
packaging==21.3
Expand All @@ -136,6 +142,8 @@ pynacl==1.5.0
# via pygithub
pyparsing==3.0.9
# via packaging
pyrsistent==0.19.2
# via jsonschema
python-slugify==4.0.1
# via transifex-client
pytz==2022.1
Expand All @@ -146,6 +154,7 @@ pyyaml==6.0
# via myst-parser
requests==2.28.1
# via
# libcoveofds
# ocdsextensionregistry
# ocdsmerge
# pyairtable
Expand Down