This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

Converting a changeset file to csv

0

Hello,

I'm trying to use osmconvert to get a csv file from the changesets-latest.osm dump. I did the following:

osmconvert changesets-latest.osm --csv="@id @created_at @numchange_changes @closed_at @min_lat @min_lon @max_lat @max_lon @user @uid" --csv-headline -o=changesets.csv

But this gave me nothing -- i just got an empty csv file. I dont think osmosis can be used to generate CSV files either. Any ideas?

asked 13 Dec '13, 15:53

figuringout's gravatar image

figuringout
41124
accept rate: 0%


2 Answers:

2

osmconvert can only convert OSM files (which contain nodes, ways, relations) - not changeset files (which only contain meta data about who edited where when, but not real geodata).

If you need a CSV file with geodata, don't use changesets-latest, use the planet file or an exctract of that. If you need a CSV file with the metadata from changesets-latest, it looks like you'll have to write a few lines in a scripting language of your choice. Or XSLT, even.

answered 14 Dec '13, 22:35

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
82.5k927201273
accept rate: 23%

2

answered 26 May '14, 21:50

figuringout's gravatar image

figuringout
41124
accept rate: 0%

Source code available on GitHub .