
Build a Free World Gazetteer #84
Chapter 7, Names and Places
|
423
HACK
download. They are in some areas inaccurate and outdated, but they are a
good start for building your own free world gazetteer.
The Data
At http://earth-info.nga.mil/gns/html/index.html is the GEOnet nameserver.
Here you’ll find the raw data and a web browsing interface for all the GEO-
net data. All the GEOnet datafiles are available via FTP as well as HTTP.
Grab them all using the ncftpget client, part of the ncftp package standard on
*NIX machines:
> ncftpget ftp://ftp.nga.mil/pub/gns_data/*.zip
This will download all the GNS files in ZIP format into the current direc-
tory. Zipped, the data is a little under 200 MB in size! Each file consists of a
tab-separated list of values in a common format. The format is explained in
more detail at http://earth-info.nga.mil/gns/html/gis_countryfiles.html.
The fields we are particularly interested in are:
LAT and LONG
WGS84 latitude in decimal format
UFI
A unique feature identifier, which we’ll keep for future proofing pur-
poses
DSG
A “Feature Designation Code,” which identifies the different types of
features
FULL_NAME
The full name of the place
The GEOnet data has “Feature Classification” info for all kinds of meta-
data, including Vegetation and Undersea features, but for the most part, it
consists of information about populated places. This can be tremendously
useful for asking “Show me all ...