[OSM-dev] Osm2pgsql not importing routes?

yvecai yvecai at gmail.com
Thu Feb 23 20:20:16 GMT 2012


Sorry, I took the subject from an old topic.

Here an extract of my osm file:

    <relation id="1401913" version="1" timestamp="2011-01-31T21:31:42Z"
    changeset="7149413" uid="171657" user="yvecai">
    <member type="way" ref="48769799" role=""/>
    <member type="way" ref="97599611" role=""/>
    <tag k="color" v="green"/>
    <tag k="name" v="Haute Joux"/>
    <tag k="piste:type" v="nordic"/>
    <tag k="route" v="ski"/>
    <tag k="type" v="route"/>
    </relation>

Which contains 49 relations according to osm2pgsql output, but the 
following requests find nothing:

    select count(*) from planet_osm_line where osm_id = -1401913;
    select count(*) from planet_osm_line where osm_id < 0;

and the column route_name does not exists.

osm2pgsql SVN version 0.80.0
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/dev/attachments/20120223/111b3c26/attachment.html>


More information about the dev mailing list