Skip to content

Commit

Permalink
Fix missing clip in ElevationPoints function
Browse files Browse the repository at this point in the history
  • Loading branch information
rosepearson committed Jan 26, 2025
1 parent 022122c commit fb06004
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/geofabrics/geometry.py
Original file line number Diff line number Diff line change
Expand Up @@ -644,6 +644,7 @@ def _set_up(
crs=polygon_list[0].crs,
)
polygon = polygon.to_crs(self.catchment_geometry.crs["horizontal"])
polygon = polygon.clip(self.catchment_geometry.catchment, keep_geom_type=True)
points = points.clip(polygon.buffer(0), keep_geom_type=True)
points = points.clip(self.catchment_geometry.catchment, keep_geom_type=True)
points = points.reset_index(drop=True)
Expand Down

0 comments on commit fb06004

Please sign in to comment.