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

Tricks with an ESRI File Geodatabase

Tricks with an ESRI File Geodatabase

A few years back I jumped in way over my head with QGIS/Postgis. I had moved a process out of one software and into my favorite two (QGIS/PostGIS) and little did I know the final output had to be a ESRI File Geodatabase. So what did I do? I shamed them into using a...

Making the Invalid Valid

Making the Invalid Valid

I could argue I'm doing that on multiple levels these days. Except I want to talk Geometry, QGIS, and Forks in the Road. I haven't done just a "QGIS Tech Post" in a while. I talk about it and training and generalities but hardly dive into the specifics. So here is a...

Training, Websites, and Life

Training, Websites, and Life

So back last year I started something and have just finished one small part of it: https://training.northrivergeographic.com The Intro to QGIS class has a new home and that new home has a lot of room for a lot of different things. Something like 12 years ago (or more...