<div dir="ltr">Hi<div><br></div><div>how does your self.src look like? how did you get it? can you please pass longer snippet of code?</div><div><br></div><div>Thanks</div><div><br></div><div>J</div></div><br><div class="gmail_quote"><div dir="ltr">út 16. 5. 2017 v 15:37 odesílatel Derek Hohls <<a href="mailto:dhohls@csir.co.za">dhohls@csir.co.za</a>> napsal:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div 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" target="_blank">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>

</div>
_______________________________________________<br>
pywps-dev mailing list<br>
<a href="mailto:pywps-dev@lists.osgeo.org" target="_blank">pywps-dev@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/pywps-dev" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/pywps-dev</a></blockquote></div>