
QGIS 2 Cookbook
By :

You can get additional information about a data file before opening it. This recipe shows you how to explore the properties of a data origin.
Before you start working, make sure that you have copied the sample dataset to your filesystem and that you have it located.
elev_lid792_1m
file and right-click on it. In the context menu, select Properties. A dialog like the one in the following screenshot will appear:This dialog displays the properties of a raster layer.
elev_lid792_randpts.shp
file, right-click on it, and select Properties. The information dialog will look like the following:In the upper part of the description window, you will see a field named Provider. Provider defines the type or data origin and who takes care of reading the data and passing it to QGIS. For raster layers, you will see gdal
as Provider. For most file-based vector layers, ogr
will be the provider that will appear. They refer to the GDAL and OGR libraries, two open-source libraries that are used by many GIS programs to access both raster and vector data.
If the data is already loaded in QGIS, you can access the information about it in the Properties section of the layer (right-click on the layer name to select the Properties entry in the context menu). In the sections displayed in the left-hand side, select the Metadata section. You will see a box containing all the information corresponding to the layer data origin:
Functionality provided by the GDAL library, which (mentioned earlier) acts as a provider for raster layers, is also available in the Raster menu. This includes processing and data analysis methods, but it also includes the information tool that is used to describe a raster data source. You will find it by navigating to Raster | Miscellaneous | Info:
Change the font size
Change margin width
Change background colour