osm2pgrouting (#24) - osm2pgsql seems not to import names (#235) - Message List

osm2pgsql seems not to import names

Hello everybody,

I'd like to set up a database (postgresql 8.2 with postgist 1.3) containing the german freeways. I'd like to have junctions and the roads named like in the original openstreetmap data. However it looks like osm2pgsql looses this information during the import. Or is it just me, lacking the kind of information how to configure the import correctly?

  • Message #831

    Hi,

    As far as I know it should take into account the tag with attribute "name": http://pgrouting.postlbs.org/browser/tools/osm2pgrouting/trunk/src/OSMDocumentParserCallback.cpp#L84

    Looking into the FOSS4G2008 workshop I saw that there were names imported. Not many, but this could be a data issue as well.

    So it could be that your freeways use another tag name, because OSM data model doesn't restrict you to choose whatever you like. If you know the tag name it shouldn't be too hard to modify the source code. If you find a better solution we would be glad to hear.