Re: [Qgis-user] Layer extent

2021-07-06 Thread Marco Casalboni
Hi Alexandre, and thanks for the feedback I'm sorry but I don't understand the 2 solutions you advised. Let's see if I can explain my case better. I am using SqlServer and I set up a test project including that view and a normal spatial table. Looking at the initialization queries in SQLServer

Re: [Qgis-user] Layer extent

2021-07-06 Thread Alexandre Neto
Hello Marco, As far as I remember, there's no GUI interface just for that purpose. You can change the view on the database side to include that extent condition. Depending on how your view is constructed, that will probably trigger the spatial indexes. Alternatively, you can set a filter on

[Qgis-user] Layer extent

2021-07-06 Thread Marco Casalboni
Hi all, is there a way to manually set up a layer extent? I have a huge view in SQL that is too slow on loading because qgis scans the entire view to find the extent. An alternative could be instruct qgis to use a specific spatial index for a specific layer thanks