Skip to content

Add bbox_intersects_kentucky() helper with tests#14

Merged
chrislyonsKY merged 1 commit into
mainfrom
feature/crs-validation
Mar 13, 2026
Merged

Add bbox_intersects_kentucky() helper with tests#14
chrislyonsKY merged 1 commit into
mainfrom
feature/crs-validation

Conversation

@chrislyonsKY
Copy link
Copy Markdown
Owner

Summary

  • Add bbox_intersects_kentucky() to utils/crs.py — checks if a user's bbox overlaps KY's approximate extent
  • 4 new tests covering inside, outside, partial overlap, and whole-US cases

Enables early "your bbox is outside Kentucky" warnings in search workflows.

Test plan

  • All 7 CRS tests pass (3 existing + 4 new)
  • ruff + mypy clean

🤖 Generated with Claude Code

Utility to check if a user's bbox overlaps Kentucky's extent.
Useful for early warnings when searching outside the coverage area.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@chrislyonsKY chrislyonsKY merged commit 8a50077 into main Mar 13, 2026
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant