Skip to main content

A Python package to rasterize GeoDataFrames

Project description

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.

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:

pip install rasterizer

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rasterizer-0.2.tar.gz (9.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rasterizer-0.2-py3-none-any.whl (8.3 kB view details)

Uploaded Python 3

File details

Details for the file rasterizer-0.2.tar.gz.

File metadata

  • Download URL: rasterizer-0.2.tar.gz
  • Upload date:
  • Size: 9.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for rasterizer-0.2.tar.gz
Algorithm Hash digest
SHA256 4111713994d3f9add4861d3439253d22c93534c5fb3f9647e549f817f120b07c
MD5 7b4c059445a96213136e2569a1771e23
BLAKE2b-256 e12a60d37eb367f86412198c98f4999f3ee2536053557591c95d8b843c205b79

See more details on using hashes here.

File details

Details for the file rasterizer-0.2-py3-none-any.whl.

File metadata

  • Download URL: rasterizer-0.2-py3-none-any.whl
  • Upload date:
  • Size: 8.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for rasterizer-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 77a62c8fbc83ae0a42659cb42aa0247ef91c55bb9f9d809d47b6af26c4ba0a4a
MD5 a084ced34ac687a45af56d719e416dea
BLAKE2b-256 34e29d3975777f576c833a88518060e2d2a67885096f468297a61e2dcd643175

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page