This directory provides GeoNames GeoMesa ingest commands and converter configuration files.
GeoNames is a geographical database containing over 10 million geographical names and over 9 million unique features. All features are classified as one of nine feature codes and then again sub-categorized into one of 645 feature codes. This data is freely available directly from GeoNames’s website.
184.108.40.206. Getting GeoNames data¶
The GeoNames data set can be downloaded using the provided
download-data.sh script in
$GEOMESA_HOME/bin/ as such
providing a desired country code when prompted.
Alternatively, GeoNames data can be downloaded from GeoNames’s
Server. Files are
downloaded in .zip format and need to be unzipped to a text document
before being ready for use. The entire database can be ingested using
allCountries.txt or a subset (such as
cities15000.txt) can be
220.127.116.11. Ingest Commands¶
Check that the
geonames simple feature type is available on the GeoMesa
tools classpath. This is the default case.
geomesa env | grep geonames
If it is not, merge the contents of
$GEOMESA_HOME/conf/application.conf, or ensure that
reference.conf is in
Run the ingest. You may optionally point to a different accumulo
-z options. See
geomesa help ingest
for more detail. The most important detail is referencing the
geonames SimpleFeatureType and
geomesa ingest -u USERNAME -c CATALOGNAME -s geonames -C geonames cities15000.txt