matplotlib / matplotlib/basemap
arcgisimage transparent argument suggestion
还没有人认领这个 Issue。
- 主要语言
- 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
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 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