9.10. GeoMesa Scala Console

The GeoMesa tools have a scala-console command that starts a Scala REPL (read/evaluate/print/loop) configured for use with GeoMesa. The command will place the GeoMesa classpath and configuration for that distribution on the REPL’s classpath. Additionally it will preload commonly used imports. The command also comes with tooling that will provide the option to download and run the appropriate Scala version if it is not available. This is a portable install and will not alter the machine’s current configuration.

9.10.1. Example Usage

The following example was performed against the Redis data store generated by the GeoMesa Redis Quick Start. It shows how to use the scala-console command to connect to a data store, discover the feature type names, get the schema and query for data.

Note

This code is running against a Redis instance populated by the Redis quick start. To reproduce this code exactly you must run the GeoMesa Redis Quick Start first.