[OSM-dev] get node data from flatfile
Bernhard R. Fischer
bf at abenteuerland.at
Fri May 8 19:30:53 UTC 2015
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.openstreetmap.org/pipermail/dev/attachments/20150508/af49e90b/attachment.sig>
More information about the dev
mailing list