<div dir="ltr">Hi everyone,<br><br>DCbrain, the company I currently work for, is a
software editor involved in utilities, industry and supply chains
optimisers development.<br>As a relevant and established practice, we
use OSM data and tools to make calculations and mapping plots for
dataviz or dashboarding.<br>Here comes the time to be thankful and share some free code too.<br><br>DCbrain, Maxime Beauchene and I now release our own implementation of a pgsql2osm conversion process under GNU GPL v3 licence.<br>pgsql2osm allows to produce osm xml out of postgis geometries, linestrings and points.<br>This
implementation runs sql code to transform geometries to topological
postgresql tables, manage way connections with its own layers and Python
to output actual OSM XML.<br>It is currently used in production to
convert regional areas with ~1M ways and 7M nodes on a 4 CPU/16 GB
server and on a monthly basis.<br><a href="https://github.com/DCbrainOrg/pgsql2osm" target="_blank">https://github.com/DCbrainOrg/pgsql2osm</a><br><br>It's was way easier for us to do so to feed OSM software with custom postgis data.<br>We provide it as-is without any warranty.<br><br>Some improvements will enable to process more data but currently it's mainly for regional processing.<br>It's certainly also possible to rework a bit the sql logic to convert geometries to topological records more quickly.<br><br>Feel free to give it a try and let us know about problems you may have on GitHub repository issues.<br><br><div>All the best</div><div><br></div><div>François<br></div><br></div>