caf.viz.web.mapping#

Functionality for creating html maps from spatial datasets.

Functions

NamedTuple(typename[, fields])

Typed version of namedtuple.

check_mask(mask)

Check that the mask is a single polygon and of the right CRS.

check_output_path(output_path)

Check that the output path is valid and adjust if necessary.

map_datasets(datasets[, mask, mask_name, ...])

Produce single HTML map including all datasets.

produce_map_set(output_path, datasets, ...)

Produce HTML maps for datasets, split into regions.

Classes

Bounds(min_x, min_y, max_x, max_y)

Bounding box coordinates.

Element([template, template_name])

Basic Element object that does nothing.

ExploreOptions([show_legend, tooltip, ...])

Options for MapData.

MacroElement()

This is a parent class for Elements defined by a macro template.

MapData(data[, color_column, to_filter, options])

Data to plot on a map.

Mapping()

A Mapping is a generic container for associating key/value pairs.

Template(source[, block_start_string, ...])

A compiled template that can be rendered.