mapshader.core.to_raster#
- mapshader.core.to_raster(source: MapSource, xmin: Optional[float] = None, ymin: Optional[float] = None, xmax: Optional[float] = None, ymax: Optional[float] = None, height: Optional[int] = None, width: Optional[int] = None)[source]#
Export a MapSource object to a raster object.
- Parameters:
source (mapshader.sources.MapSource) – The input datasource.
xmin (float) – X-axis minimum range.
ymin (float) – Y-axis minimum range.
xmax (float) – X-axis maximum range.
ymax (float) – Y-axis maximum range.
height (int) – Height of the output aggregate in pixels.
width (int) – Width of the output aggregate in pixels.