ecoscope.analysis.geospatial ============================ .. py:module:: ecoscope.analysis.geospatial Module Contents --------------- .. py:function:: datashade_gdf(gdf, geom_type, width = 600, height = 600, cmap = None, ds_agg = None, **kwargs) Creates a raster of the given gdf using Datashader :param gdf: GeoDataFrame used to create visualization (geometry must be projected to a CRS) :type gdf: geopandas.GeoDataFrame :param geom_type: The Datashader canvas() function to use valid values are 'polygon', 'line', 'point' :type geom_type: str :param width: The canvas width in pixels, determines the resolution of the generated image :type width: int :param height: The canvas height in pixels, determines the resolution of the generated image :type height: int :param cmap: The colormap to use for the generated image :type cmap: list of colors or matplotlib.colors.Colormap :param ds_agg: The Datashader reduction to use :type ds_agg: datashader.reductions function :param kwargs: Additional kwargs passed to datashader.transfer_functions.shade :returns: **A tuple containing a PIL.Image raster and its EPSG** :rtype: 4326 bounds