a-b-street / a-b-street/osm2streets

Question about Road Centerline CRS and Extraction via Python Bindings

Aperta
#274 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Jupyter Notebook
Stelle
156
Fork
14
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

Hello,

First of all, I want to thank you for this amazing project — it’s been a great tool to work with.

I’m currently trying to extract the centerlines of roads generated by the project, which also produces lane and road polygons. I’m using the Python bindings to access the data generated by the core (written in Rust). However, since I don’t have full access to the original Rust classes, I’m limited in how I can extract the centerlines properly.

Right now, the best I can access from Python is the result of network.to_json(), which returns a dictionary containing the centerline data, for example:
```
"center_line": {
"pts": [
{"x": 4998937, "y": 5077561},
{"x": 5078196, "y": 5070822},
{"x": 5254235, "y": 5091648},
],
"length": 256812,
}
```
Unfortunately, I haven’t been able to determine which Coordinate Reference System (CRS) these points use — they’re clearly not in EPSG:4326 (latitude/longitude).

Could you please clarify which CRS or projection these coordinates correspond to?
That would help me correctly transform and use them in my workflow.

Thank you again for your great work on this project.

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

La issue riguarda la comprensione del sistema di riferimento delle coordinate (CRS) utilizzato per i punti della linea centrale nell’output JSON di network.to_json(). Esamina il codice Rust che genera questi punti, probabilmente nei moduli di serializzazione della rete o di geometria. Verifica la presenza di trasformazioni CRS o definizioni di proiezioni. L’obiettivo è documentare il CRS affinché i punti possano essere trasformati correttamente per l’uso esterno.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
python, rust
Ambito
cli, data, tooling
Tipo di issue
Bug
Difficoltà
2/5
Tempo stimato
1-3 ore
Stato di attività
Ferma
Chiarezza
Specificata chiaramente
Idoneità per principianti
45/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.