forked from osm-fr/osmose-backend
Part of osmose that runs the analysis, and send the results to the frontend.
License
naoliv/osmose-backend
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Backend part of Osmose tool =========================== This is the part of osmose [http://osmose.openstreetmap.fr] which analyses OSM and send results to frontend. This works as following: - an .osm.bz2 or .osm.pbf extract is downloaded from a path - downloaded file is converted to .osm, with bunzip2 or osmconvert - if necessary, an osmosis dump is generated in a local database - analyses are run directly on .osm file, or on the database - analyses are stored on a local webserver, and a link is sent to the frontend so that it can download the results - temporary extract files and database are purged Dependencies ------------ python > 2.6 recommended python-dateutil python-imposm-parser # for pbf support in analyser_sax python-lockfile python-polib python-psycopg2 > 2.4 python-shapely >= 1.2 postgresql-9.1 # for osmosis database dumps postgresql-9.1-postgis postgresql-contrib-9.1 openjdk-6-jre-headless # for osmosis osmosis is installed in osmosis/osmosis-0.41/. osmconvert is installed in osmconvert/. To run tests, additional packages are needed. python-nose python-xmltodict Configuration ------------- A few paths are hardcoded in modules/config.py, and should be adapted or created. - dir_osmose is the path of where files are installed - dir_work is where extracts are stored, and results generated. - url_frontend_update is the url used to send results generated by analyses The local postgresql database should be configured in osmose_config.py: - db_base = database name - db_user = database user - db_password = database password - db_host = database hostname You may want to include this info in ~/.pgpass to avoid entering the database password while processing the files. See https://wiki.postgresql.org/wiki/Pgpass for more info. The following postgresql extensions should be enabled: hstore postgis fuzzystrmatch unaccent Connection to the "official" frontend at http://osmose.openstreetmap.fr ----------------------------------------------------------------------- When you have configured the backend for the country you want to add, please send an email to osmose-contact@openstreetmap.fr. We will then send you the password to use to connect to the frontend.
About
Part of osmose that runs the analysis, and send the results to the frontend.
Resources
License
Stars
Watchers
Forks
Packages 0
No packages published
Languages
- Python 98.9%
- Other 1.1%