Skip to content

Conversation

@musaqlain
Copy link

@musaqlain musaqlain commented Dec 27, 2025

addresses Issue #608. Previously, predict_tile returned pixel coordinates even if the input was a georeferenced raster. This PR adds an optional project=False argument to allow users to request map coordinates directly.

  • updated predict_tile in src/deepforest/main.py to accept project (bool).
  • if project=True, the results are converted to a GeoDataFrame using utilities.image_to_geo_coordinates.
  • added test_predict_tile_projected to tests/test_main.py to verify that setting project=True returns a GeoDataFrame with valid CRS and map coordinates (UTM).

Closes #608

AI-Assisted Development

I utilized AI for sanity checking code logic and conducting an assisted review to identify potential missing resets and schema constraints.

  • I used AI tools (e.g., GitHub Copilot, ChatGPT, etc.) in developing this PR
  • I understand all the code I'm submitting

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.

Outputs should attach geometry if available

1 participant