<div dir="ltr">inlay.SetSpatialFilter(refpoy) did not meet my requirement of "if geomi.Within(refpoly)".<div><br></div><div>if I use both
<span style="font-size:small;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">inlay.SetSpatialFilter(refpoy)</span> and
<span style="font-size:small;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">geomi.Within(refpoly)</span>, speed is same as before.<br>.SetSpatialFilter tested intersect of the envelopes, which i do not need.<br></div><div>any idea is appreciated</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Jun 23, 2018 at 2:01 PM, Ian <span dir="ltr"><<a href="mailto:gisplaybox@gmail.com" target="_blank">gisplaybox@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">after spatial filter, should i use
<span style="font-size:12.8px;text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">if geomi.Within(refpoly)?</span></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Jun 23, 2018 at 4:49 AM, mikeucfl <span dir="ltr"><<a href="mailto:mikeucfl@gmail.com" target="_blank">mikeucfl@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Use a spatial filter using your refpoly before iterating the features:<br>
<a href="http://gdal.org/python/osgeo.ogr.Layer-class.html#SetSpatialFilter" rel="noreferrer" target="_blank">http://gdal.org/python/osgeo.o<wbr>gr.Layer-class.html#SetSpatial<wbr>Filter</a><br>
<br>
<br>
<br>
--<br>
Sent from: <a href="http://osgeo-org.1560.x6.nabble.com/GDAL-Dev-f3742093.html" rel="noreferrer" target="_blank">http://osgeo-org.1560.x6.nabbl<wbr>e.com/GDAL-Dev-f3742093.html</a><br>
______________________________<wbr>_________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/gdal-dev" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailma<wbr>n/listinfo/gdal-dev</a></blockquote></div><br></div>
</div></div></blockquote></div><br></div>