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

add script to fix missing concordances #37

Merged
merged 1 commit into from
Aug 18, 2021
Merged

Conversation

missinglink
Copy link
Member

@missinglink missinglink commented Aug 18, 2021

Added a script which will fix missing properties in wof:concordances as per pelias/whosonfirst#527

wof git clone --strategy=shallow whosonfirst-data-admin-sg /tmp/sg

wof git export /tmp/sg \
  | wof feature fix --concordances \
  | wof fs import --exportify /tmp/sg/data

note: the commands above require the latest version of wof installed with shell dependencies and a local copy of the docker-whosonfirst-exportify image on your system.

related: whosonfirst-data/whosonfirst-data#1956

@missinglink
Copy link
Member Author

cat berlin.geojson | jq '.properties["wof:concordances"]'
{
  "gp:id": 667027,
  "wd:id": "Q64"
}

cat berlin.geojson | wof feature fix --concordances | jq '.properties["wof:concordances"]'
{
  "gp:id": 667027,
  "wd:id": "Q64",
  "gn:id": 6547383,
  "qs:id": 630199
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant