I am trying to get just the datapoints that intersect with the boundaries of a GeoTiff image for some internal testing on an algorithm.
Are there any tools that can perform this operation?
If not, how would I script this behavior?
I would also like to preserve as much as data as possible from the original OSM file such as tags and other attributes.
I seek a solution that uses GDAL.
Here are the steps I need to perform:
Get the bounding box of the GeoTiff
Find all entries that intersect with those boundaries
Save those entries to a new OSM file.