Skip to content

iandees/mongosm

Repository files navigation

MongOSM

MongOSM is a set of Python utilities that manipulate OSM data in MongoDB:

  • insert_osm_data.py reads an OSM file and writes it to a MongoDB database.
  • map_server.py uses Werkzeug to start a WSGI server that responds to the read-only OSM APIs and most of the XAPI-style predicate queries.
  • apply-osmchange.py is currently not tested, but it is supposed to read minutely change files from planet.osm.org and keep the MongoDB database up to date.

Installation

  1. Grab MongoDB 1.9+ (2.0 is best) from http://mongodb.org/.
  2. Unpack mongodb and run it.
  3. Install pymongo. (http://api.mongodb.org/python/current/installation.html)
  4. Grab some OSM XML data.
  5. Run python insert_osm_data.py <OSM filename> and wait.
  6. Install Werkzeug.
  7. Run python map_server.py
  8. Browse to http://localhost:5000/api/0.6/node/1 to verify a (probably empty) response.

About

An OpenStreetMap importer/map-call for MongoDB

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages