ImageOverlay behaviour with WG84 rasters
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 35/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- javascript, python
- Ambito
- data-visualization, web-dev
Direzione di ricerca
Inizia riproducendo l'esempio TIFF fornito con rasterio e folium.ImageOverlay, quindi confronta la sua gestione di EPSG:4326 con il risultato EPSG:3857 di QGIS. Leggi il comportamento di proiezione e bounds di ImageOverlay insieme alle aspettative di Leaflet per image-overlay; il lavoro è completato quando la discrepanza è spiegata e il rendering previsto o la limitazione dell'issue è documentata.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
I have a non-expected result when using this code (the raster used is attached to this message):
raster_path = '2019-06-15.tiff'
with rasterio.open(raster_path) as src:
raster_data = src.read(1)
bounds = src.bounds
m = folium.Map(location=[(bounds.top + bounds.bottom) / 2, (bounds.left + bounds.right) / 2], zoom_start=10)
# Create an ImageOverlay
img_overlay = ImageOverlay(
image=raster_data,
bounds=[[bounds.bottom, bounds.left], [bounds.top, bounds.right]],
opacity=0.6,
interactive=False,
cross_origin=True,
zindex=1,
mercator_project=True
)
# Add the overlay to the map
img_overlay.add_to(m)
m.save('map.html')
Indeed, my result html map presents shapes that are not consistent with the same map I could have just by using QGIS.
For instance the result of this code gives this in a specific region:
while using QGIS in an EPSG:3857 projection system gives this:
My raster has natively an EPSG:4326 projection system. I suspect the issue comes from how ImageOverlay changes the projection system.
Can anyone reproduce this and explain how I could obtain the same result as in QGIS which is the correct reference for me?
Thanks,
Vivien
- Lingua principale
- Python
- Stelle
- 7.4k
- Fork
- 2.3k
- Merge medio
- 17h 22m
- PR unite (30g)
- 11
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di python-visualization/folium
-
documentation
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
python-visualization/folium#2092 · 5 commenti ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 67/100
python-visualization/folium#2278 · 1 commento ·
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
python-visualization/folium#2259 ·
-
Map output from OSM returns blocked tiles, due to defective request or not following referer-policy Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 55/100
python-visualization/folium#2236 · 5 commenti · 1 reazione ·
-
Touch Screen often fails Aperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 10/100
python-visualization/folium#2219 · 2 commenti ·
Tutte le issue di python-visualization/folium
Issue simili
-
essnmx good first issue
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 95/100
-
[Feature] 奇物选择添加优先级 Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
syfoud/Simulated_Scepter#174 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
Giskard-AI/giskard-oss#2840 · 1 commento ·
-
A claim comment carrying the issue number is silently declined while the workflow reports success Apertaarea: repo bug perceived difficulty: 2
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
yeti-platform/yeti#1380 ·