coordinate bounding box
darrepac opened this issue · 2 comments
darrepac commented
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 commented
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 commented
Exactly, that's how to do it.