<div dir="ltr">Thank you,<div><br></div><div>based on something I have already heard (:D)<br>what you suggested is the right way... I'll check.</div><div>Thanks</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Il giorno gio 10 giu 2021 alle ore 15:03 Richard McDonnell <<a href="mailto:richard.mcdonnell@opw.ie">richard.mcdonnell@opw.ie</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">





<div lang="EN-IE">
<div class="gmail-m_1515844834999896226WordSection1">
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">I work a lot with National datasets, some with millions of geometries<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">With these geometries we use PostgreSQL with PostGIS. Make sure the Geometries are indexed and it works very well.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">You mention Oracle, you should be able to index your geometries, should speed everything up on the database side.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Have a look here..<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><a href="https://docs.oracle.com/database/121/SPATL/creating-spatial-index.htm" target="_blank">https://docs.oracle.com/database/121/SPATL/creating-spatial-index.htm</a><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">You may have already done this. Apologies, I can’t be of more help.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Regards,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Richard
<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<table style="font-size:9pt;height:321px;font-family:Arial,sans-serif;width:500px;line-height:15px" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td style="font-size:9pt;font-family:Arial,sans-serif;width:500px;color:rgb(0,77,68);padding-bottom:6px">
<span style="font-family:Arial,sans-serif;font-weight:bold;color:rgb(0,77,68)"><br>
——</span><br>
<span style="font-family:Arial,sans-serif;font-weight:bold;color:rgb(0,77,68)">Richard McDonnell MSc GIS, FME Certified Professional</span><br>
<span style="font-family:Arial,sans-serif;color:rgb(0,77,68)"><i>FRM Data Management</i></span><br>
<br>
<span style="font-family:Arial,sans-serif;color:rgb(0,77,68)">——</span><br>
<span style="font-family:Arial,sans-serif;font-weight:bold;color:rgb(0,77,68)">Oifig na nOibreacha Poiblí</span><br>
<span style="font-family:Arial,sans-serif;color:rgb(0,77,68)">Office of Public Works</span><br>
<br>
<span style="font-family:Arial,sans-serif;font-weight:bold;color:rgb(86,81,72)">Sráid Jonathan Swift, Baile Átha Troim, Co na Mí, C15 NX36
</span><br>
<span style="font-family:Arial,sans-serif;color:rgb(86,81,72)">Jonathan Swift Street, Trim, Co Meath, C15 NX36</span><br>
<span style="font-family:Arial,sans-serif;color:rgb(86,81,72)">——</span><br>
<span style="font-family:Arial,sans-serif;color:rgb(86,81,72)">M +353 87 688 5964 T +353 46 942 2409</span><br>
<a href="https://gov.ie/opw" target="_blank">https://gov.ie/opw</a><br>
<br>
<span style="font-family:Arial,sans-serif;color:rgb(0,77,68)">——<br>
To send me files larger than 30MB, please use the link below <a href="https://filetransfer.opw.ie/filedrop/richard.mcdonnell@opw.ie" target="_blank">https://filetransfer.opw.ie/filedrop/richard.mcdonnell@opw.ie</a><br>
</span><br>
<span style="font-family:Arial,sans-serif;color:rgb(0,77,68)">Email Disclaimer: <a href="https://www.gov.ie/en/organisation-information/439daf-email-disclaimer/" target="_blank">https://www.gov.ie/en/organisation-information/439daf-email-disclaimer/</a>
</span></td>
</tr>
</tbody>
</table>
<div style="border-top:none;border-right:none;border-bottom:none;border-left:1.5pt solid blue;padding:0cm 0cm 0cm 4pt">
<div>
<div style="border-right:none;border-bottom:none;border-left:none;border-top:1pt solid rgb(225,225,225);padding:3pt 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:11pt;font-family:Calibri,sans-serif">From:</span></b><span lang="EN-US" style="font-size:11pt;font-family:Calibri,sans-serif"> Dario <<a href="mailto:dario955i@gmail.com" target="_blank">dario955i@gmail.com</a>>
<br>
<b>Sent:</b> 10 June 2021 13:25<br>
<b>To:</b> Richard McDonnell <<a href="mailto:richard.mcdonnell@opw.ie" target="_blank">richard.mcdonnell@opw.ie</a>><br>
<b>Cc:</b> QGIS User List <<a href="mailto:qgis-user@lists.osgeo.org" target="_blank">qgis-user@lists.osgeo.org</a>><br>
<b>Subject:</b> Re: [Qgis-user] How to filter shape or oracle layer<u></u><u></u></span></p>
</div>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Hi,<u></u><u></u></p>
<div>
<p class="MsoNormal">In this casa I don’t want to use “select by location” or “extract by location”, because I’d like to use the original layer without exporting a new static shapefile.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">I don’t know what geometry Generator is and I’m going to check if it is suitable with my needs.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12pt">My wish is to reduce rendering time because I’m using a big data (all the city), but actually I’m working only in a district. All the time I move, reload or pan I need to wait a lot. I don’t know what is the
 right procedure because I’m a super beginner. Sorry :)<u></u><u></u></p>
<div>
<p class="MsoNormal">_<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12pt"><br>
Il giorno 10 giu 2021, alle ore 13:57, Richard McDonnell <<a href="mailto:richard.mcdonnell@opw.ie" target="_blank">richard.mcdonnell@opw.ie</a>> ha scritto:<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:Tahoma,sans-serif"></span> <u></u>
<u></u></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Dario,</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">To run a spatial query you need to use Select by Location or extract by location. This assumes that you have two different layers.</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">I don’t believe it will do this for a single layer with the above.</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Are you trying to use the geometry Generator?</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Regards,</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Richard</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"> </span><u></u><u></u></p>
<table border="0" cellspacing="0" cellpadding="0" width="0" style="width:375pt">
<tbody>
<tr>
<td width="500" style="width:375pt;padding:0cm 0cm 4.5pt">
<p class="MsoNormal" style="line-height:11.25pt"><b><span style="font-size:9pt;font-family:Arial,sans-serif;color:rgb(0,77,68)"><br>
——</span></b><span style="font-size:9pt;font-family:Arial,sans-serif;color:rgb(0,77,68)"><br>
<b>Richard McDonnell MSc GIS, FME Certified Professional</b><br>
<i>FRM Data Management</i><br>
<br>
——<br>
<b>Oifig na nOibreacha Poiblí</b><br>
Office of Public Works<br>
<br>
</span><b><span style="font-size:9pt;font-family:Arial,sans-serif;color:rgb(86,81,72)">Sráid Jonathan Swift, Baile Átha Troim, Co na Mí, C15 NX36
</span></b><span style="font-size:9pt;font-family:Arial,sans-serif;color:rgb(0,77,68)"><br>
</span><span style="font-size:9pt;font-family:Arial,sans-serif;color:rgb(86,81,72)">Jonathan Swift Street, Trim, Co Meath, C15 NX36</span><span style="font-size:9pt;font-family:Arial,sans-serif;color:rgb(0,77,68)"><br>
</span><span style="font-size:9pt;font-family:Arial,sans-serif;color:rgb(86,81,72)">——</span><span style="font-size:9pt;font-family:Arial,sans-serif;color:rgb(0,77,68)"><br>
</span><span style="font-size:9pt;font-family:Arial,sans-serif;color:rgb(86,81,72)">M +353 87 688 5964 T +353 46 942 2409</span><span style="font-size:9pt;font-family:Arial,sans-serif;color:rgb(0,77,68)"><br>
<a href="https://gov.ie/opw" target="_blank">https://gov.ie/opw</a><br>
<br>
——<br>
To send me files larger than 30MB, please use the link below <a href="https://filetransfer.opw.ie/filedrop/richard.mcdonnell@opw.ie" target="_blank">
https://filetransfer.opw.ie/filedrop/richard.mcdonnell@opw.ie</a><br>
<br>
Email Disclaimer: <a href="https://www.gov.ie/en/organisation-information/439daf-email-disclaimer/" target="_blank">
https://www.gov.ie/en/organisation-information/439daf-email-disclaimer/</a> <u></u>
<u></u></span></p>
</td>
</tr>
</tbody>
</table>
<div style="border-top:none;border-right:none;border-bottom:none;border-left:1.5pt solid blue;padding:0cm 0cm 0cm 4pt">
<div>
<div style="border-right:none;border-bottom:none;border-left:none;border-top:1pt solid rgb(225,225,225);padding:3pt 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:11pt;font-family:Calibri,sans-serif">From:</span></b><span lang="EN-US" style="font-size:11pt;font-family:Calibri,sans-serif"> Dario <<a href="mailto:dario955i@gmail.com" target="_blank">dario955i@gmail.com</a>>
<br>
<b>Sent:</b> 10 June 2021 12:41<br>
<b>To:</b> Richard McDonnell <<a href="mailto:richard.mcdonnell@opw.ie" target="_blank">richard.mcdonnell@opw.ie</a>><br>
<b>Cc:</b> QGIS User List <<a href="mailto:qgis-user@lists.osgeo.org" target="_blank">qgis-user@lists.osgeo.org</a>><br>
<b>Subject:</b> Re: [Qgis-user] How to filter shape or oracle layer</span><u></u><u></u></p>
</div>
</div>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">Hi Richard,<u></u><u></u></p>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">The issue is that I tried to write down:<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:9pt;font-family:Consolas;color:rgb(231,76,60);background:white"><br>
<br>
<br>
</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span class="gmail-m_1515844834999896226pre"><span style="font-size:9pt;font-family:Consolas;color:rgb(231,76,60);background:white">intersects(</span></span><span style="font-size:9pt;font-family:Consolas;color:rgb(231,76,60);background:white"> <span class="gmail-m_1515844834999896226pre">$geometry,</span> <span class="gmail-m_1515844834999896226pre">geometry(</span> <span class="gmail-m_1515844834999896226pre">get_feature(</span> <span class="gmail-m_1515844834999896226pre">layer,</span> <span class="gmail-m_1515844834999896226pre">attributeField,</span> <span class="gmail-m_1515844834999896226pre">value</span> <span class="gmail-m_1515844834999896226pre">)</span> <span class="gmail-m_1515844834999896226pre">))</span></span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">But nothing happens :(<u></u><u></u></p>
<div>
<p class="MsoNormal">_<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12pt"><br>
Il giorno 10 giu 2021, alle ore 12:21, Richard McDonnell <<a href="mailto:richard.mcdonnell@opw.ie" target="_blank">richard.mcdonnell@opw.ie</a>> ha scritto:<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:Tahoma,sans-serif"></span> <u></u>
<u></u></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Hi Dario,</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">If you right click on any Vector Layer and select Filter you can filter as you wish.</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Regards,</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Richard</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"> </span><u></u><u></u></p>
<table border="0" cellspacing="0" cellpadding="0" width="0" style="width:375pt">
<tbody>
<tr>
<td width="500" style="width:375pt;padding:0cm 0cm 4.5pt">
<p class="MsoNormal" style="line-height:11.25pt"><b><span style="font-size:9pt;font-family:Arial,sans-serif;color:rgb(0,77,68)"><br>
——</span></b><span style="font-size:9pt;font-family:Arial,sans-serif;color:rgb(0,77,68)"><br>
<b>Richard McDonnell MSc GIS, FME Certified Professional</b><br>
<i>FRM Data Management</i><br>
<br>
——<br>
<b>Oifig na nOibreacha Poiblí</b><br>
Office of Public Works<br>
<br>
</span><b><span style="font-size:9pt;font-family:Arial,sans-serif;color:rgb(86,81,72)">Sráid Jonathan Swift, Baile Átha Troim, Co na Mí, C15 NX36
</span></b><span style="font-size:9pt;font-family:Arial,sans-serif;color:rgb(0,77,68)"><br>
</span><span style="font-size:9pt;font-family:Arial,sans-serif;color:rgb(86,81,72)">Jonathan Swift Street, Trim, Co Meath, C15 NX36</span><span style="font-size:9pt;font-family:Arial,sans-serif;color:rgb(0,77,68)"><br>
</span><span style="font-size:9pt;font-family:Arial,sans-serif;color:rgb(86,81,72)">——</span><span style="font-size:9pt;font-family:Arial,sans-serif;color:rgb(0,77,68)"><br>
</span><span style="font-size:9pt;font-family:Arial,sans-serif;color:rgb(86,81,72)">M +353 87 688 5964 T +353 46 942 2409</span><span style="font-size:9pt;font-family:Arial,sans-serif;color:rgb(0,77,68)"><br>
<a href="https://gov.ie/opw" target="_blank">https://gov.ie/opw</a><br>
<br>
——<br>
To send me files larger than 30MB, please use the link below <a href="https://filetransfer.opw.ie/filedrop/richard.mcdonnell@opw.ie" target="_blank">
https://filetransfer.opw.ie/filedrop/richard.mcdonnell@opw.ie</a><br>
<br>
Email Disclaimer: <a href="https://www.gov.ie/en/organisation-information/439daf-email-disclaimer/" target="_blank">
https://www.gov.ie/en/organisation-information/439daf-email-disclaimer/</a> </span>
<u></u><u></u></p>
</td>
</tr>
</tbody>
</table>
<div style="border-top:none;border-right:none;border-bottom:none;border-left:1.5pt solid blue;padding:0cm 0cm 0cm 4pt">
<div>
<div style="border-right:none;border-bottom:none;border-left:none;border-top:1pt solid rgb(225,225,225);padding:3pt 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:11pt;font-family:Calibri,sans-serif">From:</span></b><span lang="EN-US" style="font-size:11pt;font-family:Calibri,sans-serif"> Qgis-user <<a href="mailto:qgis-user-bounces@lists.osgeo.org" target="_blank">qgis-user-bounces@lists.osgeo.org</a>>
<b>On Behalf Of </b>Dario C<br>
<b>Sent:</b> 09 June 2021 12:33<br>
<b>To:</b> QGIS User List <<a href="mailto:qgis-user@lists.osgeo.org" target="_blank">qgis-user@lists.osgeo.org</a>><br>
<b>Subject:</b> [Qgis-user] How to filter shape or oracle layer</span><u></u><u></u></p>
</div>
</div>
<p class="MsoNormal"> <u></u><u></u></p>
<div>
<p class="MsoNormal">Hi, is there any way to filter a layer (both shape and oracle) using a spatial query?<u></u><u></u></p>
<div>
<p class="MsoNormal">(I would like to load/view only what it is inside a range of value of a proper "field")<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Thanks<u></u><u></u></p>
</div>
</div>
</div>
<p class="MsoNormal"><span style="font-size:9pt;font-family:Arial,sans-serif;color:rgb(0,77,68)">Please note that the existing 01-6476XXX / 046-9426XXX numbering ranges will no longer be available after 30th April 2021.</span>
<u></u><u></u></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>

</blockquote></div>