<html><head><meta http-equiv=Content-Type content="text/html; charset=UTF-8"><META name="Author" content="GroupWise WebAccess"><style type="text/css"> 
body p 

        margin: 0px; 
}
</style></head><body style='font-family: Helvetica, Arial, sans-serif; font-size: 13px; '>Hi<br><br>I am wondering if anyone has experience in accessing and extracting data from a GeoTIFF via the  rasterstats/rasterio libraries?<br><br>The standalone code I have work  fine when I run it from the console, but when called as part of a pyWPS process, it seems to hang at the point where rasterio tries to read the file - specifically, the call that rasterstats makes to rasterio is:<br><br>        new_array = self.src.read(<br>                self.band, window=win, boundless=True, masked=masked)<br><br>Unfortunately, the relevant rasterio code for file reads is in a compiled Cython file, so we cannot trace into it to find exactly where it is hanging.<br><br>I have checked that an ordinary Python file routine can open & read that same file from within the pyWPS code, so it is not a file access or permission problem.<br><br>Any help with this, or suggestions from similar experiences, is appreciated!<br><br>Thanks<br>Derek<br><br>
<HR>
<font face="Verdana,Arial,Helvetica,Trebuchet MS" size="1">This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard.</font>
<BR><font face="Verdana,Arial,Helvetica,Trebuchet MS" size="1">The full disclaimer details can be found at <a href="http://www.csir.co.za/disclaimer.html">http://www.csir.co.za/disclaimer.html</a>.</font>
<BR>
<BR><font face="Verdana,Arial,Helvetica,Trebuchet MS" size="1">Please consider the environment before printing this email.</font>

</body></html>