<div dir="ltr"><div dir="ltr">Hi all -<div><br></div><div>Im am experimenting with using the dataprovider based *spatial* filtering in QGIS</div><div><br></div><div>For example: with a Postgres based datasource I can write a filter like this:</div><div><br></div><div>ST_Intersects( "geometry", ST_GeomFromText(' Polygon ((582084. 6143051.  ...... lots of coordinates ... 582084. 6143051.))', 25832))<br></div><div><br></div><div>This will show a layer that only contains objects which actually intersects with the text defined polygon even if the unfiltered datasource contains a large number of objects taht does not intersect withe the text polygon</div><div><br></div><div>Something similar can be done with SQLserver to:   mygeom.ST_Intersects (...) = 1</div><div><br></div><div>But what about ogr file based vector sources like tab or shape files ?</div><div><br></div><div>You can define a *alfanumerical* filter like this : "myfield"  > 27  to a ogr file datasource. Works like a charm.</div><div><br></div><div>But what about *spatial filtering* ? Iv'e tried to use the same expression like the postgres  one but on a shapefile. I don't get any errors :-). However the filter function doesn't work and let all objects through the filter :-(   </div><div><br></div><div>What am I doing wrong with the file based spatial filtering?  Or is it simply impossible ?</div><div> <br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature">Med venlig hilsen<div><br></div><div>Bo Victor Thomsen</div><div><br></div></div></div></div></div>