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

New changeset parsing pipeline #38

Merged
merged 9 commits into from
May 16, 2024
Merged

New changeset parsing pipeline #38

merged 9 commits into from
May 16, 2024

Conversation

sunu
Copy link
Member

@sunu sunu commented May 10, 2024

We need to change the pipeline to adapt and get the data from other sources because the Mapbox bucket that used to store augmented diffs is not being updated anymore.

With this new script:

  • everything other than the final geojson to FGB conversion is in a single nodejs script; trying to reduce the clutter that comes from combines multiple different node scripts and bash scripts
  • The pipeline grabs hourly replication files from https://planet.openstreetmap.org/replication/hour/
  • It parse the xml in the hourly replication file as a stream and creates a set of all unique changeset ids mentioned in the replication file
  • For each of the collected changeset ids, it fetched the "real changeset" json which contains the added/removed/modified features. These changesets are fetched from the real-changesets s3 bucket (https://real-changesets.s3.amazonaws.com/<changeset-id>.json)
  • Then we combine the features from each of these changesets into a single valid geojson file
  • In a later step in the pipeline we will convert this combined geojson file into an FGB and upload to cloud storage.

@kamicut @willemarcel Please take a look and let me know if anything looks odd

@sunu sunu marked this pull request as ready for review May 13, 2024 15:48
@sunu sunu merged commit 2085338 into main May 16, 2024
2 checks passed
@vgeorge vgeorge deleted the new-pipeline branch May 28, 2024 10:30
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