Skip to content

Commit

Permalink
Add more docs details
Browse files Browse the repository at this point in the history
  • Loading branch information
hannahker committed Oct 9, 2024
1 parent 6954d53 commit 181bdd5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/utils/raster_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,9 @@ def rasterize_admin(
Returns
-------
numpy.ndarray
A 2D array representing the rasterized administrative regions.
A 2D array representing the rasterized administrative regions. Each admin region is given an id
that matches the index location in the input gdf. If `all_touched=True`, then some admin regions
may not be present in the output raster (if they do not have overlap with any pixel centroids)
"""
gdf["geometry"] = gdf["geometry"].simplify(tolerance=0.001, preserve_topology=True)
geometries = [
Expand Down

0 comments on commit 181bdd5

Please sign in to comment.