From 497dfeb18bf178551aad7cc5cf54ce165acf79d3 Mon Sep 17 00:00:00 2001
From: jay <jlaura@asu.edu>
Date: Mon, 12 Jun 2017 20:43:14 -0700
Subject: [PATCH] Added geofuncs module for overlap computations

---
 plio/geofuncs/geofuncs.py | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/plio/geofuncs/geofuncs.py b/plio/geofuncs/geofuncs.py
index 94e7d07..83b2d49 100644
--- a/plio/geofuncs/geofuncs.py
+++ b/plio/geofuncs/geofuncs.py
@@ -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):
-- 
GitLab