Skip to content

fix: overture-geoparquet example#1163

Open
matyasrada wants to merge 3 commits intodevelopmentseed:mainfrom
matyasrada:fix/overture-example
Open

fix: overture-geoparquet example#1163
matyasrada wants to merge 3 commits intodevelopmentseed:mainfrom
matyasrada:fix/overture-example

Conversation

@matyasrada
Copy link
Copy Markdown

making the release version dynamic by listing the S3 bucket with obstore.list_with_delimiter instead of hardcoding a release date

Closes #1027

@ds-release-bot ds-release-bot bot added the fix label Apr 3, 2026
Copy link
Copy Markdown
Member

@kylebarron kylebarron left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR! Just a couple comments

")"
")\n",
"\n",
"result = obs.list_with_delimiter(store, prefix=\"release\")\n",
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you use store.list_with_delimiter instead of obs.list_with_delimiter(store, ...)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, can you put this after the commented-out code block that uses the Azure store? Because finding the latest release should be the same for both backends.

Comment on lines +143 to +159
"We'll create an [S3Store](https://developmentseed.org/obstore/latest/api/store/aws/#obstore.store.S3Store) to access Overture data on AWS S3.\n"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "11",
"metadata": {},
"outputs": [],
"source": [
"store = S3Store.from_url( \n",
" f\"s3://overturemaps-us-west-2/{latest}/\", \n",
" region=\"us-west-2\", \n",
" skip_signature=True, \n",
" )"
]
},
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't need to create another store instance. We can just prepend {latest} onto the paths passed below.

@matyasrada
Copy link
Copy Markdown
Author

Hello Kyle!

Thanks for the review!

I updated a few things:

  • removed importing obs
  • using store.list_with_delimiter() instead of obs.list_with_delimiter
  • removed one store and prepending {latest} to paths instead
  • moved release listing after the Azure block

one problem is that it seems to me Azure doesn't support list_with_delimiter so it can't find the latest release dynamically. i might be wrong. also with this logic if we found it through s3 first as a workaround we still prepended down the cells and so we double-referenced the prefix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Overture example doesn't work because overture deleted their data

2 participants