plotly / plotly/plotly.py

switch scattermapbox coordinate parameters to webmercator

未關閉
#3,585 3 則留言 1 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

feature P3
主要語言
Python
星號
18.8k
分支
2.8k
平均合併
16 小時 26 分鐘
30 天內合併 PR
21

描述

This is both a feature request and a sort of a bug report.

Scattermapbox uses tile servers that are all projected on a different datum (spherical Earth) than standard lat-lon coordinates systems as assumed by scattermapbox (obloid Earth).
When we specify the center or the coordinates of an image layer, it is always in lat,lon as well as when we give coordinate corners
I understand that the points are reprojected on the fly by the function from lat,lon to webmercator. However, when overlying rasters or images they are not warped to compensate from the different datums curvatures
=> it results in a lot of distortion between the image and the underlying map. This has been reported a few times by the community.

Ideally, Scattermapbox should serve the coordinates in webmercator since it is the standard, not in lat-lon on a WGS84 datum. Pyproj is not difficult to use.
Second, it would be great if for raster/images projections, it could be done directly in webmercator and not pretend it is in lat-lon.

For example:
Add a flag in each layer for the projection system so that you can desactivate the reprojection of the coordinates from lat-lon to webmercator and provide an image in the projection system of mapbox. That should actually lighten the app.
Or simply get rid of lat-lon specifics when building a raster as it is mathematically incorrect.

貢獻指南

開啟貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

研究方向

首先追蹤 Scattermapbox 的座標處理,以及 issue 中描述的點陣圖/影像圖層路徑。比較中心、角點和影像座標如何進行轉換,接著判定哪種投影行為可以一致地加以規範。當所要求的 webmercator 支援已定義、實作,並由地圖對齊測試涵蓋時,即表示完成。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
plotly, python
領域
data-visualization
Issue 類型
功能
難度
5/5
預估耗時
一週以上
活躍度
停滯
描述清晰度
需要釐清
新手友好度
25/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。