All Projects → osmlab → osm-place-ranks

osmlab / osm-place-ranks

Licence: BSD-3-Clause license
No description, website, or topics provided.

Programming Languages

python
139335 projects - #7 most used programming language

OSM Place-ranks

Joins city rankings from Natural Earth into OSM data with fuzzy matching.

Setup:

  • Create a PostGIS-enabled PostgreSQL database if you do not have one. By default this script assumes it is named 'osm'.
  • Import the Natural Earth cities information included here. Eg: psql -U postgres -f ne_cities.sql -d osm
  • Import OSM places with Imposm if you have not already. These can be from a full planet dump, a regional extract, an Overpass API query...
  • Make sure the Python package 'unidecode' is installed. Eg: sudo pip install unidecode

Usage:

python rank-places.py | psql -U <pg_user> <pg_database>
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].