Skip to main content

Geonames data parser into Shapefile/KML

Project description

The Geonames library parses Geonames.org datasets into clean & simple OGR shapefile format.

How to Use

This very simple Command Line Interface (CLI) converts the text file into a shapefile with a single line of code:

$ geonames CF.txt
<Geonames - Central African Republic [15373]>

Install

How to install Fiona:

$ sudo apt-get install python-software-properties
$ sudo add-apt-repository ppa:ubuntugis/ppa
$ sudo apt-get update
$ sudo apt-get install libgdal-dev
$ pip install fiona

Install Geonames using PyPi:

$ sudo pip install geonames

Documentation

Download Geonames data using from geonames.org:

$ wget http://download.geonames.org/export/dump/PH.zip
$ unzip PH.zip

Export the dataset using the Geoname’s CLI:

$ geonames PH.txt
<Geonames - Philippines [75003]>

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

geonames-0.1.2.zip (39.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

geonames-0.1.2-py2.py3-none-any.whl (37.8 kB view details)

Uploaded Python 2Python 3

File details

Details for the file geonames-0.1.2.zip.

File metadata

  • Download URL: geonames-0.1.2.zip
  • Upload date:
  • Size: 39.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for geonames-0.1.2.zip
Algorithm Hash digest
SHA256 236bfc4112fcb426bc45277f3576da1044ef1641459c1525d76a51141dcac31b
MD5 3548313df832654c1fca592f95920d1d
BLAKE2b-256 d6eadca33128fc28c6e66e0e27ab484d1a7706d13b8343e8d5890c865c81a436

See more details on using hashes here.

File details

Details for the file geonames-0.1.2-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for geonames-0.1.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 e8338e5c3664cf8fafa65baa28884e08570786f9c828b2babb0a453fa0273c75
MD5 148103a130c37676c1b2af0aeb638e17
BLAKE2b-256 af48ec1fee1bf73872e384b5be7b5aec62c75204ec357d11716101c07e2bbbe0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page