I am using OSMnx to download and simplify a road network. But the problem I have is that once I simplify, I cannot preserve the precise geometry/geospatial information of links. The following figure shows the road network drawn from the road network in graph format Road Network from graph
But the interesting fact is if I convert the same network to geodataframe, then that geodataframe has the exact linestring of links like the following figure, Road network from gdf
I want to save the downloaded and simplified road network in .osm format with preserved geometry/geospatial information of links.
I tried to save the road network in .osm format with the pristine geospatial information of links. But the simplified network in a .osm/graphml format does not have that. But the saved network in .gpkg format has the pristine linestring.