Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mvexel/osmhistoryparser
python script to parse OSM full history XML files and store them in a DB
https://github.com/mvexel/osmhistoryparser
Last synced: about 1 month ago
JSON representation
python script to parse OSM full history XML files and store them in a DB
- Host: GitHub
- URL: https://github.com/mvexel/osmhistoryparser
- Owner: mvexel
- Created: 2011-03-10T12:48:53.000Z (almost 14 years ago)
- Default Branch: master
- Last Pushed: 2011-05-23T07:26:05.000Z (over 13 years ago)
- Last Synced: 2024-10-21T23:08:29.848Z (3 months ago)
- Language: Python
- Homepage:
- Size: 645 KB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
osmhistoryparser
================The goal of this script is to parse full osm history files as published on http://planet.openstreetmap.org/full-experimental/ (experimental extracts suitable for testing are available at ftp://ftp5.gwdg.de/pub/misc/openstreetmap/osm-full-history-extracts/110418/hardcut-bbox-xml/) and drop them into a database, recreating all the features and their previous versions correctly.
Included is a modified version of the osmosis PostgreSQL schema suitable for storing history.
Currently there is an experimental osmosis plugin that does this but I'm not very good at writing java so I started this.
status
------
implementation of full history parsing is on its way. Node versions for historic ways are stored through the waynodes table which includes version numbers for nodes as well as ways. There is no reverse lookup yet for intermediate changes to nodes that do not affect the way version, and no solution for the resulting intermediate way versions.installation
------------Tested on a homebrew python 2.7.1 install on Mac OSX.
You need the following python modules:* iso8601
* psycopg2
* ppygisThese are all available in the PyPi.
roadmap
-------
next version will:* do reverse version lookup on nodes for ways.
* resolve historic versions of relations.and further along the road:
* test performance for several in-memory storage techniques for nodes table. currently using sqlite3. look at stockpyle? memcached?
wanna help make this happen? Please do! Fork this and contribute.
Best,
Martijn