I have put my osm file in base thanks to osm2pgsql and I am looking for a way to get the contributor list. I have searched in my database and haven't found so much... and the osm wiki about the osm2pgsql schema does not contain a lot of details...

Is it possible?

  • not sure if this useful - its online and finds users contributions hdyc.neis-one.org – Mapperz Jun 22 '11 at 18:37
  • Not useful for what I need, but it's an interesting online feature. Thanks for the tip. – lvictorino Jun 22 '11 at 20:13
up vote 11 down vote accepted

Unless you have used the -x switch then the database that osm2pgsql creates won't include any contributor information. The main use for those databases is rendering which doesn't normally need to know who created an object, and including that information makes the database much larger, so it is normally left out.

That information is in the planet file though - in the user and uid attributes on each object. You may find you are better off writing some custom software to read planet and build a database of that information.

  • I was thinking about customizing the osm2pgsql to add contributors... Anyway thank you for your answer. – lvictorino Jun 22 '11 at 20:15

Your Answer

 

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.