Metadata-Version: 2.4
Name: rasterizer
Version: 0.2
Summary: A Python package to rasterize GeoDataFrames
Author: Cyril Joly
Project-URL: Homepage, https://github.com/CyrilJl/rasterizer
Project-URL: Documentation, https://rasterizer.readthedocs.io
Requires-Python: >=3.10
Description-Content-Type: text/markdown
Requires-Dist: geopandas
Requires-Dist: xarray
Requires-Dist: numpy
Requires-Dist: shapely
Requires-Dist: rioxarray
Requires-Dist: numba
Provides-Extra: test
Requires-Dist: pytest; extra == "test"
Requires-Dist: scipy; extra == "test"

# Rasterizer

`rasterizer` is a lightweight Python package for rasterizing `geopandas` GeoDataFrames.

This package provides functionalities that are not present in `rasterio.features`, such as area and length-based rasterization. It is also lighter and faster than using GDAL-based solutions.

For detailed usage and API documentation, please see the [full documentation](https://rasterizer.readthedocs.io).

## Features

- Rasterize lines into a binary (presence/absence) or length-based grid.
- Rasterize polygons into a binary (presence/absence) or area-based grid.
- Weighted rasterization: Rasterize geometries while weighting the output by a numerical column in the GeoDataFrame.
- Works with `geopandas` GeoDataFrames.
- Outputs an `xarray.DataArray` for easy integration with other scientific Python libraries.
- No GDAL dependency for the rasterization algorithm itself.

## Installation

You can install the package directly from PyPI:

```bash
pip install rasterizer
```
