I want to import OSM data into postgresql with imposm. How do I have to modify the import process in order to have the user name as an attribute in my tables? Do I have to change that in the data mapping file?
I believe adding the osm user name or osm user id is out of the design scope of imposm. I don't know if the design goals are any different for the rewrite of the tool in Google's go language. Imposm wants to be fast at helping you create maps and does not appear to be interested in other data that may be used for statics or does not add to map data. Most imposm examples show tag filters because of imposm's design goals. Callbacks are What you are looking for. Here's a stat parser discussion that includes information from imposm's author. The final code is on github with the added timestamp. If you can adapt Martijn's code and use it in place of the original imposm parser code, then you are good to go. Otherwise, the answer is no.