On Thursday 07 May 2015 02:58:36 Walter Nordmann wrote: > Hi, > > at the moment i'm using osm2pgsql with slim-mode + flatfile for my imports > and diff-updates and everything is running fine. > > But now i need to create pbf-exports of my database and i would like to > access the node-data of the flatfile, because planet_osm_nodes is empty > (whicht is ok). > > Is there any way to access those nodes by osm_id? I tried to write a litte > program starting with node-persistent-cache-reader.c but i did not manage > it. Many nodes are missing. > > At the end i would like to write my own pg/plsql-Function get_node(osm_id) > which gives me the geometry of that node (reading the flatfile of course).
You could have a look at Smrender (http://www.abenteuerland.at/smrender/). It allows to add 3rd-party call-back-functions (yours) for OSM objects in flat OSM/XML files. Bernhard
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ dev mailing list [email protected] https://lists.openstreetmap.org/listinfo/dev

