matplotlib / matplotlib/basemap

arcgisimage transparent argument suggestion

オープン
#348 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

主要言語
Python
スター
817
フォーク
395
PR マージ指標
30日以内にマージされた PR はありません

説明

Hi there,
Some arcgis images should be transparent. For instance Ocean/World_Ocean_Reference which includes only labels. If user wants to add two arcgis images the second one must be obtained with the argument transparent=true. Ex:

m.arcgisimage(service='Ocean/World_Ocean_Base', xpixels = 1000, verbose=1)
m.arcgisimage(service='Ocean/World_Ocean_Reference', xpixels = 1000, verbose=1)

For now I just changed the function arcgisimage to always use transparent images (I can't see a reason not to):

...
basemap_url = \
"%s/rest/services/%s/MapServer/export?\
bbox=%s,%s,%s,%s&\
bboxSR=%s&\
imageSR=%s&\
size=%s,%s&\
dpi=%s&\
format=png32&\
transparent=true&\ <----------------- Here
f=image" %\
...

best
mma

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

Issue に示されている arcgisimage 関数と basemap_url の構築から始めます。完了とは transparent 引数を追加することなのか、常に透明な PNG を要求することなのかを明確にし、その後、Ocean/World_Ocean_Base と Ocean/World_Ocean_Reference の例を検証します。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
python
領域
data-visualization
issue の種類
機能追加
難易度
2/5
見積もり時間
1〜3時間
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
45/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。