Virtual Layers in QGIS 2.14

Mar 4, 2016 | GDAL, Open Source GIS, QGIS, spatialite

I don’t have this one entirely figured out yet – but last night it started making more sense. If you’ve installed QGIS 2.14 you’ve noticed a few things – and one of those might be this icon:

Selection_341

The new icon is for Virtual Layers. Lets add a Text File to my QGIS Session. This file has been mentioned before and is incidents of Crime in and Around Chattanooga. I can import this layer in and start treating like it’s in a database by throwing SQL against it….while it’s still a CSV. From the menu you can do this with several file formats from GPX to KML and Web Services. That will display all incidents of impersonation out of the CSV – sorta like running a select before you display your data.

Selection_342

SOOOOOOOOO what you say…..

If you look at the DBManager you will see your text file under Virtual Layers. From here you can also go nuts throwing SQL against it like it were in a database.

Selection_343

SOOOOOOOOO what you say……

Like I said – I don’t understand everything going on here…BUT….if I may indulge some crazy at this spot.

  • You aren’t converting data to another format
  • There’s a certain amount of freedom being exhibited – Your data format doesn’t matter – Just your data.
  • Finally – I’m not having to think about shapefiles. 2016 has been my war on shapefiles. I’ve been doing everything I can to avoid the one format. So I’ve been utilizing PostGIS, Spatialite, and am dabbling in Geopackage.  Here is what I hope is QGIS’s step away from having to work with shapefiles as any intermediate format. Hey – you can always save your data out to shapefile – the world does run off that one format. It would be nice to get the ability to not run to shapefile and it’s slowly happening if you watch the software.

Soooooooooo What……..

Selection_344

Add your ESRI File Based Geodatabase and start throwing some SQL against that – without diving into a ton of python. I’ve only done this a little – but still. It’s a pretty nifty feature.

You may also like

QGIS Offline Help

QGIS Offline Help

Through a long series of events I found myself teaching QGIS in a classroom again. It's been a while. I used to just "hold" classes and sometime during the pandemic I jsut stopped. Occasionally I'll get a call for 3 or 4 people that want training but generally I've...

The online training website that I hardly talk about

The online training website that I hardly talk about

I had mentioned it some but it's probably been coming up on 6 months since I even mentioned training. Right before I decided to attempt to die in 2025 I had started building a training website at training.northrivergeographic.com. Basically it's my Intro to QGIS class...

QGIS Fun: Chickamauga Mound

QGIS Fun: Chickamauga Mound

I've been trying to stop once a week and do something fun with QGIS. Post Heart Incident I do a lot of walking. I've been re-exploring some places I used to go in town to exercise and one is the TN River Walk. I realized the other day I needed to do some OpenStreetMap...