-
Notifications
You must be signed in to change notification settings - Fork 379
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
VectorDataset: extract mint/maxt from filename #1814
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you copy https://github.com/microsoft/torchgeo/blob/v0.5.1/torchgeo/datasets/geo.py#L323-L339 from RasterDataset to VectorDataset? You can remove these lines: https://github.com/microsoft/torchgeo/blob/v0.5.1/torchgeo/datasets/geo.py#L329-L333
We'll also need to add tests for this. I can point you to where these would be, but let me know if you need help.
@microsoft-github-policy-service agree |
Added the docstring. I'll need some guidance for the tests, where is the similar test for RasterDataset? |
For testing, you'll want to edit |
added test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks pretty straightforward to me. Hopefully we'll get some builtin datasets that use this feature in the future. Not sure what kind of data your group is working with but would love to have it in TorchGeo if it's public. #1813 might actually use this feature too.
Perfect! Thank you for the help 😃 unfortunately, we cannot share the data we are working with. I see #1813 has tested the feature already so that can cover it 👌 |
Opening PR after a discussion on Slack: https://torchgeo.slack.com/archives/C02DD9Q76SE/p1705589213060449