I need to write a pbf 2 mariadb conversion tool. I am looking for some sample code to work from. Know where I can get source code? Thanks. asked 21 Dec '18, 22:28 Ant |
OSM data can be represented in many different ways. If you're interested in a relatively basic, non-geometry representation then you should be using If you were to attempt to write a full-blown MariaDb importer like osm2pgsql from scratch, you'd be looking at perhaps a person-month of coding work. Don't underestimate it. answered 22 Dec '18, 00:14 Frederik Ramm ♦ Frederik, isn't that a little over-optimistic "a person-month of coding work" for writing an osm2pgsql like converter from scratch? There is +10 years of development work in osm2pgsql by many contributors. Top contributors Ionvia and Twain47 alone seem to have both submitted around 100k code lines (https://github.com/openstreetmap/osm2pgsql/graphs/contributors), there may be well over 300k code lines in total, if I look at all the contributors... Of course, you can cut some corners by doing away with things like (minutely) updates, tag transform, multipolygon processing, but all in all, I'd say a "one person-year of coding work" seems more realistic for anything close to what osm2pgsql really does...
(25 Dec '18, 09:58)
mboeringa
What about just osm2pgsql backend? This could be much easier: https://github.com/openstreetmap/osm2pgsql#alternate-backends
(26 Dec '18, 06:11)
kocio
|