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

How do I Import edit history into a PostGIS database?

0

I need to store the editing history of a region in a PostGIS database for statistical analysis. Correct me if I am wrong, but my understanding is Osmosis only writes the current versions to the database and does not include the history of the elements. Is there any other tool that can help me store the necessary information to a database?

asked 31 Mar '14, 01:06

vr3690's gravatar image

vr3690
664411
accept rate: 0%

1

Your question assumes you will be able to do the analysis you need in PostGIS, but it's far from clear that this is possible. Perhaps rephrase your question to include what your goal is, rather than just one step of your process?

(31 Mar '14, 10:55) Jonathan Ben...

One Answer:

3

If you don't need relations, try Peter Körner's history tools. The history importer creates a full-history database in an osm2pgsql-like format that is already quite useful for some kinds of statistical analysis.

answered 31 Mar '14, 12:59

lonvia's gravatar image

lonvia
6.2k25789
accept rate: 40%

Source code available on GitHub .