Transforms#

mapshader.transforms.reproject_raster(arr[, ...])

Reproject raster data.

mapshader.transforms.reproject_vector(gdf[, ...])

Reproject vector data.

mapshader.transforms.flip_coords(arr, dim)

Flip the geometry coordinates.

mapshader.transforms.to_spatialpandas(gdf[, ...])

Convert a geopandas.GeoDataFrame to spatialpandas.GeoDataFrame.

mapshader.transforms.squeeze(arr, dim)

Return a new xarray.DataArray with squeezed data.

mapshader.transforms.cast(arr, dtype)

Cast the data to a specific data type.

mapshader.transforms.orient_array(arr)

Reorients the array to a canonical orientation depending on whether the x and y-resolution values are positive or negative.

mapshader.transforms.get_data_array_extent(...)

Get the coordinate of the lower left corner and the coordinate of the upper right corner in map units.

mapshader.transforms.canvas_like(dataarray)

Get a datashader.Canvas according to a xarray.DataArray features.

mapshader.transforms.build_vector_overviews(...)

Reduce the vector data resolution.

mapshader.transforms.build_raster_overviews(...)

Reduce the raster data resolution.

mapshader.transforms.add_xy_fields(gdf[, ...])

Extract x and y fields from geometry and create new columns with them.

mapshader.transforms.select_by_attributes(...)

Filter a geopandas.GeoDataFrame data.

mapshader.transforms.polygon_to_line(gdf[, ...])

Convert geometry type from polygon to line.

mapshader.transforms.raster_to_categorical_points(...)

Convert raster data to categorical points.

mapshader.transforms.get_transform_by_name(name)

Get transform function by their name.