0

How can one programmatically understand overlapping areas between two or more GeoTIFF files captured at various timestamps for the same location?

Gaurav
  • 11
  • 2
  • 2
    If you can provide some additional details about the problem you are trying to solve it will help community members provide more useful answers. – ycartwhelen Jul 11 '19 at 12:55
  • Are you looking for any Python solution or looking for something more specific like gdal or arcpy? – Marcelo Villa Jul 11 '19 at 13:45

1 Answers1

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