bug: `add_edge_population` fails is there are two GHSL tiles overlapping the study area
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
Hi @cbueth
When the study area overlaps more than one of the GHSL tiles, the function add_edge_population returns an error.
Here is a reprex for this behaviour
import osmnx as ox
from superblockify.population.approximation import add_edge_population
boundary_lat, boundary_lon = 41.8956456, 12.4655397
graph = ox.graph_from_point(
(boundary_lat, boundary_lon),
dist=500,
network_type='drive',
simplify=True
)
graph = ox.add_edge_speeds(graph)
graph = ox.add_edge_travel_times(graph)
graph = ox.project_graph(graph)
add_edge_population(graph, overwrite=True)
# 2026-04-01 12:21:54,478 | INFO | tessellation.py:101 | Calculating edge cells for graph with 165 edges.
# 2026-04-01 12:21:54,609 | INFO | tessellation.py:155 | Tessellated 132 edge cells in 0:00:00.
# 2026-04-01 12:21:54,672 | INFO | ghsl.py:129 | Using the GHSL raster tiles for the bounding box (1039130.3128053441, 4999534.908906185, 1040472.7243228266, 5000784.670403941).
# TypeError: invalid path or file: ['/home/juan/create-toy-nets/data/ghsl/GHS_POP_E2025_GLOBE_R2023A_54009_100_V1_0_R4_C20.tif', '/home/juan/create-toy-nets/data/ghsl/GHS_POP_E2025_GLOBE_R2023A_54009_100_V1_0_R5_C20.tif']
# Cell In[56], line 1
# ----> 1 add_edge_population(graph, overwrite=True)
To fix this, we will need to preprocess the tiles beforehand. The changes shouldn't be too long
- Lingua principale
- Python
- Stelle
- 33
- Fork
- 4
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi 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 BikeNetKit/superblockify
-
bug: Calculate rel_increase_comp independently of plottingForse già presa @cbueth l’ha presa 27 giorni fa. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
BikeNetKit/superblockify#136 · 2 commenti ·
-
bug: gdal requiredApertabug
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 78/100
BikeNetKit/superblockify#135 · 3 commenti ·
-
bug
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
BikeNetKit/superblockify#139 · 3 commenti · 1 reazione ·
-
bug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 55/100
BikeNetKit/superblockify#138 ·
-
enhancement
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
BikeNetKit/superblockify#132 · 6 commenti ·
Tutte le issue di BikeNetKit/superblockify
Issue simili
-
area: agents area: docs good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
openapi/gknowledge#23 ·
-
get() for StrEnumForse già presa @FeJo5952 l’ha presa oggi. Apertagood first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
collective/icalendar#1921 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Improvement Python Spans
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
getsentry/sentry-python#7994 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
alphagov/notifications-api#5004 ·
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
equinor/radix-flux#3922 ·
I maintainer di solito rispondono entro 1 giorno