Skip to content
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

coordinate bounding box #245

Closed
darrepac opened this issue Jan 6, 2022 · 2 comments
Closed

coordinate bounding box #245

darrepac opened this issue Jan 6, 2022 · 2 comments

Comments

@darrepac
Copy link

darrepac commented Jan 6, 2022

Hi

I have tons of GPX files and would like to select only the one that are part of predefined bounding box. For doing so I would like to open each GPX and check if their bounding box is inside a predefined one and do something.
Is there a function to do that?

thx

@darrepac
Copy link
Author

if (gpx.get_bounds().min_longitude > minlongitude and gpx.get_bounds().min_latitude > minlatitude and gpx.get_bounds().max_longitude < maxlongitude and gpx.get_bounds().max_latitude < maxlatitude):

@tkrajina
Copy link
Owner

Exactly, that's how to do it.

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

No branches or pull requests

2 participants