GRASS logo

NAME

v.out.keplergl

Table of contents

DESCRIPTION

v.out.keplergl.plus exports Kepler.gl web map.

The center of the visualization is taken from the center of the current computational region. Use g.region (or GUI) to change it.

Typical workflow

  1. Run the module just with the minimal, required parameters.
  2. Open the generated HTML page.
  3. Open the configuration side bar using > in top left corner.
  4. Set the colors and widths to whatever you desire under Layers.
  5. Use the {} icon to get the Map Config.
  6. Save the Map Config to a file with .py extension.
  7. Run the module with desired settings including the style option set to a file from the previous step.
  8. See the resulting page. Possibly, go to step 3 and repeat.
You can cleanup the Map Config by removing everything except the value (content) of the visConfig key because that's what the style option is using from the file.

Style configuration

The visConfig element content in the style parameter can be JSON (.json), YAML (.yaml, .yml), or Python literal (.py, .dict, .pydict).

The file can contain only the visConfig element content, the whole configuration generated in the web app, or the visConfig element (key and value). In any case, only the visConfig element content is processed, rest is ignored.

The code generated by the underlying Kepler.gl Python package is a Python nested dictionary (dictionaries, lists, and other Python literals). You can format this code using Python tools such as Black and treat it as a Python source code. Alternatively, you can convert it to JSON or YAML depending on your project needs.

The configuration generated from purely JavaScript Kepler.gl page, such as the official website, will be in JSON, so just make sure to distinguish the formats by using the appropriate file extension.

EXAMPLES

v.out.keplergl input=geology output=geology.html

SEE ALSO

g.region, d.vect, d.vect.thematic

AUTHORS

Vaclav Petras, NCSU GeoForAll Lab

SOURCE CODE

Available at: v.out.keplergl source code (history)


Main index | Vector index | Topics index | Keywords index | Graphical index | Full index

© 2003-2018 GRASS Development Team, GRASS GIS 7.4.0 Reference Manual