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)
| File | Size | Uploaded | |
|---|---|---|---|
| geonames-0.1.3.zip | 40.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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 |