This tutorial is the fastest and easiest way to get started with GeoMesa using Cassandra.
It is a good stepping-stone on the path to the other tutorials, that present increasingly
involved examples of how to use GeoMesa.

This creates a key space called “geomesa”. This is a top-level name
space within Cassandra and it will provide a place for GeoMesa to put
all of its data, including data for spatial features and associated
metadata.

The source code is meant to be accessible for this tutorial. The main logic is contained in
the generic org.geomesa.example.quickstart.GeoMesaQuickStart in the geomesa-tutorials-common module,
which is datastore agnostic. Some relevant methods are:

createDataStore get a datastore instance from the input configuration

createSchema create the schema in the datastore, as a pre-requisite to writing data

writeFeatures use a FeatureWriter to write features to the datastore

queryFeatures run several queries against the datastore

cleanup delete the sample data and dispose of the datastore instance

The quickstart uses a small subset of GDELT data. Code for parsing the data into GeoTools SimpleFeatures is
contained in org.geomesa.example.data.GDELTData:

There are two options to visual the data ingested by this quick start. The easiest option is to use the
export command of the GeoMesa Cassandra tools distribution. For a more production ready example,
you can alternatively stand up a GeoServer and connect it to your Cassandra instance.

To successfully run this command you must have a computer that is connected to the internet
in order to access external leaflet resources.

The export command is a part of the GeoMesa Cassandra command-line tools. In order to use the
command, ensure you have the command-line tools installed as described in
Setting up the Cassandra Command Line Tools. The export command provides the leaflet format which
will export the features to a leaflet map that you can open in your web browser. To produce the map,
run the following command from the GeoMesa Cassandra tools distribution directory:

Where the connection parameters are the same you used above during the quickstart. To view the map simply
open the url provided by the command in your web browser. If you click the menu in the upper right of the
map you can enable and disable the heatmap and feature layers as well as the two provided base layers.

You can use GeoServer to access and visualize the data stored in GeoMesa. In order to use GeoServer,
download and install version 2.12.x. Then follow the instructions in
Installing GeoMesa Cassandra in GeoServer to enable GeoMesa.

Click on the “Layer Preview” link in the left-hand gutter. If you don’t
see the quick-start layer on the first page of results, enter the name
of the layer you just created into the search box, and press
<Enter>.

Once you see your layer, click on the “OpenLayers” link, which will open
a new tab. You should see a collection of red dots similar to the following image:

Click on one of the red points in the display, and GeoServer will
report the detail records underneath the map area.

Shift-click to highlight a region within the map that you would like
to zoom into.

Click on the “Toggle options toolbar” icon in the upper-left corner
of the preview window. The right-hand side of the screen will include
a “Filter” text box. Enter EventCode='051', and press on the
“play” icon. The display will now show only those points matching
your filter criterion. This is a CQL filter, which can be constructed
in various ways to query your data. You can find more information
about CQL from GeoServer’s CQL
tutorial.