Core#

mapshader.core.create_agg(source[, xmin, ...])

Instantiate an abstract canvas representing the space and compute a reduction by pixel according to the geometry type applying the aggregation function defined in source.

mapshader.core.point_aggregation(cvs, data, ...)

Compute a reduction by pixel, mapping data to pixels as points.

mapshader.core.line_aggregation(cvs, data, ...)

Compute a reduction by pixel, mapping data to pixels as one or more lines.

mapshader.core.polygon_aggregation(cvs, ...)

Compute a reduction by pixel, mapping data to pixels as one or more filled polygons.

mapshader.core.raster_aggregation(cvs, data)

Sample a raster dataset by canvas size and bounds.

mapshader.core.apply_additional_transforms(...)

Apply additional transforms over the data, which options could be hillshade or quantile.

mapshader.core.shade_discrete(agg, color_key)

Convert a DataArray to an image by choosing an RGBA pixel color for each value by discrete approach.

mapshader.core.shade_agg(source, agg, xmin, ...)

Convert a DataArray to an image by choosing an RGBA pixel color for each value.

mapshader.core.to_raster(source[, xmin, ...])

Export a MapSource object to a raster object.

mapshader.core.render_map(source[, xmin, ...])

Export a MapSource object to a map object.

mapshader.core.get_source_data(source[, ...])

Get MapSource data and return as dict or GeoDataFrame depending on the geometry type.

mapshader.core.get_legend(source)

Get the MapSource legend.

mapshader.core.render_geojson(source[, simplify])

Export a MapSource object to a geojson object.

mapshader.core.render_legend(source)

Get the MapSource legend and return as a JSON string.