<div dir="ltr">Thank you. I appreciate it</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Il giorno gio 10 giu 2021 alle ore 21:26 Andrea Giudiceandrea <<a href="mailto:andreaerdna@libero.it">andreaerdna@libero.it</a>> ha scritto:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Dario C wrote<br>
> this is the error message:<br>
<br>
The error confirms that your layer provider doesn't support the function<br>
used in your expression.<br>
Your expression works for a memory layer, instead.<br>
<br>
AFAIK you couldn't directly perform a spatial filtering for an ESRI<br>
Shapefile layer. I don't know if it is possible for an Oracle layer.<br>
<br>
<br>
Anyway you could create a virtual layer based on an SQL query like:<br>
<br>
<br>
select a.* from 'your_layer_name' a, 'your_filter_layer' b<br>
where b."ID" = '2' and st_contains(b.geometry, a.geometry)<br>
<br>
<br>
replacing your_layer_name and your_filter_layer with the name of your<br>
layers.<br>
<br>
The query presumes that the geometry columns of the two layer are called<br>
'geometry': if not, change them accordingly.<br>
<br>
Hope someone else could share light on how the oracle provider works, and if<br>
it is possible to directly use a spatial filter for Shapefile or Oracle<br>
layers.<br>
<br>
Regards.<br>
<br>
Andrea<br>
<br>
<br>
<br>
--<br>
Sent from: <a href="http://osgeo-org.1560.x6.nabble.com/QGIS-User-f4125267.html" rel="noreferrer" target="_blank">http://osgeo-org.1560.x6.nabble.com/QGIS-User-f4125267.html</a><br>
_______________________________________________<br>
Qgis-user mailing list<br>
<a href="mailto:Qgis-user@lists.osgeo.org" target="_blank">Qgis-user@lists.osgeo.org</a><br>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
</blockquote></div>