Skip to main content

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]>

Metadata

Release files for geonames 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for geonames 0.1.3
File Size Uploaded
geonames-0.1.3.zip 40.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for geonames 0.1.3
File Interpreter ABI Platform
geonames-0.1.3-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 78.3 kB

Release files / geonames-0.1.3.zip

Download URL geonames-0.1.3.zip
Size 40.1 kB
Tags Source
SHA-256 checksum
How to use checksums
26c7bc5e8488b9ff75c6b270059260f5e51813bcfb57e3241e3fcb1b606eb8ce
BLAKE2b-256 checksum
How to use checksums
0bfc72d72c935001e25615beac502ebfe9dbd942db1a4f0b6f486b2ee7eb07de
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / geonames-0.1.3-py2.py3-none-any.whl

Download URL geonames-0.1.3-py2.py3-none-any.whl
Size 38.2 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
d2cad452c78fe46064107be6d461636d7b5da49f850ed82d19eef8ff2b1b68ed
BLAKE2b-256 checksum
How to use checksums
7e7c41d11aacc46b4136568077b7ffbf648c7384f7fbb67d2296912008a709bd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 release files

0.1.2

2 release files

0.1.1

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page