Commit 497dfeb1 authored by jay's avatar jay
Browse files

Added geofuncs module for overlap computations

parent 727ca04f
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -40,6 +40,11 @@ def intersection_to_pixels(inverse_affine, ul, ur, lr, ll):
        if py > maxy:
            maxy = py

    if minx < 0:
        minx = 0
    if miny < 0:
        miny = 0

    return minx, maxx, miny, maxy

def compute_overlap(geodata_a, geodata_b):