CartoDB basemaps now need an API key (somewhat urgent)
メンテナーはふだん 3 日以内に返信
評価
調査の方向性
issue で言及されている CartoDB.Positron の4つの使用箇所をコードベース内で検索してください。報告にはそのファイル名は記載されていません。まずそれらのプロットのエントリポイントを確認し、10分版の CLIMADA ノートブックを実行して、空白のベースマップを再現してください。提案されたプロバイダ Esri.WorldGrayCanvas を使用したベースマップが、影響を受けるマップに表示されれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Describe the bug
All CLIMADA maps with a basemap now give a blank background with an image stating an API key is required:
This report describes the issue: https://www.spatialworkflow.io/basemap-tiles-api-key-required/ (thought it sounds very AI generated, I haven't verified its results)
Since CLIMADA's canonical basemap is CartoDB.Positron, mapping is broken now (for me at least).
Workaround
Whenever you use a method that plots a basemap, you can import contextily as ctx and then in the method pass the parameter url=ctx.providers.Esri.WorldGrayCanvas. This uses a different, still available basemap.
e.g. if you're mapping impacts and have an Impact object, imp, call imp.plot_basemap_eai_exposure(url=ctx.providers.Esri.WorldGrayCanvas)
Suggested fix:
Find and replace CartoDB.Positron with Esri.WorldGrayCanvas. It's less good for CLIMADA's mapping, but it works for now. We can discuss a better solution after rolling out the fix.
A quick search in the codebase suggests it's used in four locations, and no other CartoDB basemaps are used. I haven't checked Petals yet.
To Reproduce
Plot anything, e.g. run the 10 minute CLIMADA notebook. (Detailed instructions in comment below.)
Expected behavior
A map with a basemap.
Screenshots
(from the 10-minute tutorial: this is Florida)
Climada Version:
I assume all. This was 6.1.0.
System Information (please complete the following information):
- Operating system and version: MacOS
- Python version: 3.11.13
- 主要言語
- Jupyter Notebook
- スター
- 478
- フォーク
- 166
- 平均マージ
- 2日 31分
- マージ済み PR(30日)
- 4
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
CLIMADA-project/climada_python のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
CLIMADA-project/climada_python#1337 ·
メンテナーはふだん 3 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
CLIMADA-project/climada_python#1336 ·
メンテナーはふだん 3 日以内に返信
-
warnings
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
CLIMADA-project/climada_python#1241 ·
メンテナーはふだん 3 日以内に返信
-
ResourceWarningオープンwarnings
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
CLIMADA-project/climada_python#1239 ·
メンテナーはふだん 3 日以内に返信
-
warnings
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
CLIMADA-project/climada_python#1226 ·
メンテナーはふだん 3 日以内に返信
CLIMADA-project/climada_python の issue をすべて見る
似ている issue
-
fix(api): optimize-for-web /preview outer catches miss asDecoderOutOfMemory on V8 OOM and SIGKILLオープンarea: backend bug priority: low
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
snapotter-hq/SnapOtter#3773 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
khuisman/mcp-gee-sweet#1166 ·
メンテナーはふだん 1 日以内に返信
-
control-plane security
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
Usenova-Labs/usenova-backend#29 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
gramaziokohler/compas_timber#870 ·
-
queue stdout mixes human notices with JSON: move trailer + compact notice + receipt text to stderrオープンarea: queue-scope bug confirmed
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
mvschwarz/openrig#1806 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信