How can one programmatically understand overlapping areas between two or more GeoTIFF files captured at various timestamps for the same location?
Asked
Active
Viewed 1,402 times
1 Answers
1
To compare the overlap between two images find the extent of each image in the same coordinate system and then compare the coordinates. This question has some examples of how to get the extent using python.
ycartwhelen
- 2,392
- 10
- 20
-
This is probably the most straightforward solution. However it does not take into account NoData values. Maybe the two rasters overlap in their NoData values, which depending on the situation, could or could not be what @Gaurav refers to as overlapping areas. – Marcelo Villa Jul 11 '19 at 13:36
-
That's a great point. This is somewhat clunky, but to find the extent of non-NoData areas one could check the rows and columns for a mean != NoData, and then back calculate on the coordinates. For example 5 rows of NoData at 30m pixels would mean subtract 150m from the original extent coordinate. – ycartwhelen Jul 12 '19 at 12:05
gdalorarcpy? – Marcelo Villa Jul 11 '19 at 13:45