Skip to content

Instantly share code, notes, and snippets.

@PratyushTripathy
Last active July 16, 2022 11:15
Show Gist options
  • Save PratyushTripathy/17472091c10535531ce4b750fad0d734 to your computer and use it in GitHub Desktop.
Save PratyushTripathy/17472091c10535531ce4b750fad0d734 to your computer and use it in GitHub Desktop.
// Get footprint of the landsat scenes
var master_fp = master.geometry();
var slave_fp = slave.geometry();
// Perform intersection to extarct overlap area
var overlap = master_fp.intersection(slave_fp);
// Add all the three layers to the map
Map.addLayer(master_fp, {}, 'Master Footprint');
Map.addLayer(slave_fp, {}, 'Slave Footprint');
Map.addLayer(overlap, {}, 'Footprint Intersection');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment