qProf vers. 0.3.3

Plugin creators are M. Alberti (www.malg.eu) and M. Zanieri.
The original concept is by M. Zanieri, while the implementation is by M. Alberti.
A few people otheer contributed with suggestions and testing. Among them we want to thank S. Peduzzi.


The purpose of this QGIS plugin is to help in the creation of geological profiles.
Georeferenced data describing topography, geological outcrops and attitudes can be used as source data.


Fig. 1. Example of a topographic profile comprising directional slopes, created from a GPX file (data courtesy of S. Peduzzi).
Note that currently qProf allows to project/intersect geological data (attitudes, outcrops, lineaments or faults) only when the profile is constituted by a straight line, with just an initial and a final point. Due to this constrain, GPX file input, generally comprising multiple points, or profile lines with more than two points can be used to construct topographic profiles but the functionalities of geological data projection and intersection are not allowed on such profiles. This constraint will be relaxed as much as possible in future versions, at least for geological intersection processings.

A few posts describing the plugin are:

1. General workflow

To construct a geological profile with qProf, the first step is to create a topographic profile, with input data represented by one or more DEMs or alternatively by a GPX file.

Afterwards, for profiles created using a line made up by just two points, the user can add to the topographic profile geological data, by projecting them on the profile (e.g., geological attitudes) or intersecting them with the profile (e.g., faults, geological outcrops). This geological data are stored as point, line or polygon layers with geological attributes in the their attribute tables. In details, these processings can be: The last step consists in exporting created datasets as graphics or GIS data, for further elaborations in graphic or geological software.

2. Topographic profile creation

It is possible to create a topographic profile, by first defining its source (in the "Topographic data sources" section). After the profile definition, its statistics are calculated ("Profile statistics" section) and then the profile can be visualised ("Profile plot" section).


Fig. 2. The plugin interface for topographic profile creation from DEMs or GPX files.

2.1 Definition of topographic data sources

Elevation data sources may originate from:
  1. one or more DEMs and a profile line, to be digitized in the map canvas or already available in a line layer;
  2. a GPX file storing track points.
When deriving the source data from DEMs and a line, a profile line may be digitised directy in the map canvas by using the "Digitize line" button. After activating the button, you add a point with a left click, and terminate the line with a right click. It is possible to delete the digitized line by cliking the "Clear" button. With the "Save" button it is possible to save the line as a shapefile and add it to the project.

The orientation of the profile source line, be it from a layer, digitized, a point list or a GPX file, can be reversed by checking the "Invert source line orientation" checkbox: the start will become the end and vice versa.

2.1.1 Topographic profile creation from DEM(s) and a line trace

A topographic profile can be extracted from one or more DEMs, given a source profile line. This line can derive from a previously digitized line, a source line layer or a list of points. The created profile will be created using the assigned project CRS if defined. Otherwise the user will have to manually set the CRS after exporting the profile.



Fig. 3. Definition of source data for DEMs and line-derived profiles.
2.1.1.2 Line stored in a layer
When using an already existing line trace, stored in a line layer, all the elements will be used, irrespective of eventual selections in the layer. Multiple lines will be merged into a single line, based on the chosen order field when available, or otherwise based on the internal line order. Some errors in derived profiles can be due to erroneous line ordering, not adjusted via the choice of a correct sequential order stored in an integer field (order values start from 1).
2.1.1.3 Line from numeric input
It is also possible to define the source profile as a list of point coordinates, in the used CRS of the project, if set, or of the used datasets. Each point is defined by a x-y coordinates pair, comma-separated, on a single row, for instance:

549242.7, 242942.2
578370.3, 322634.5
2.1.1.4 Definition of input DEMs
By clicking on "DEfine source DEMs" the user can choose which of the loaded DEMs to use, also choosing the color that will represent it in the resulting profile.



Fig. 4. Definition of source DEMs.
2.1.1.5 Definition of line densify distance
This is the spacing between line points, automatically added for densifying the segments. Original points are preserved and maintaned in the resulting densified line. A suggested value is automatically calculated, based on the highest resolution DEM cell size. It is advisable to use a value comparable to the resolution of the used DEM, for instance 30 m for Aster DEMs.

2.1.2 Topographic profile creation from GPX

Topographic profiles can be created also using a GPX file as a source. The original latitude-longitude values are automatically converted to a WGS84-based cartesian metric values, and from those values the topographic profile is constructed. Beware that in the current version, only profile lines with just two points (start and end points) may be used for further geological data projections and intersections. So if you just want to create a topographic profile, GPX profile sources are fine. In future releases, the only-two-points constraint for geological intersections should be removed.


Fig. 5. The window for input GPX file choice.

2.2 Profile statistics

The elevation statistics along the profile for each chosen DEM may be calculate with the "Calculate profile statistics" button. These statistics can be used as a help in the definition of the profile plot minimum and maximum elevations ("plot z min value" and "plot z max value" options). Otherwise, automatic values will be applied.

2.3 Profile plot

The profile plot is created by using the "Create profile" button. Values for the vertical exaggeration and minimum and maximum elevation in the plot are precomputed, however the user may modify them.

Both height and slope can be plotted. Slopes are in degrees, and can be computed a absolute or direction values. When directional, positive values indicate upslope segments in the profile direction, while negative values indicate downslope segments.

With the option "Flip x-axis direction", the start of the x-axis in the plot will be at the right, not at the left, so that distances will increase from left to right.

Sometimes the plot creation may require more than just a few seconds, so please be patient... ;)



Fig. 6. The window for the definition of the plot parameters.

3. Geological element projections on the profile

Having already created a topographic profile as previously described, it is then possible to perform on the same profile the projection of geological attitudes or traces.

3.1 Projection of geological attitudes

The source for geological attitudes is a point layer. Only selected points will be projected, unless, in case of no point selection, all layer points will be projected.

Required fields are the geological point id and its surface orientation, expressed by dip direction or right hand rule (RHR) strike and dip angle values.



Fig. 7. The plugin interface for geological attitude projections on the profile.

The geological attitudes can be projected on the section plane according to three methods:
  1. nearest point;
  2. projection along a common axis;
  3. projection along individual axes, for each geological record.
When choosing the axes from option, trend and plunge fields, storing the fold axis values along which to project each observation, are required in the source point layer.


Fig. 8. Example of geological attitudes projection along a profile in the eastern sector of Mt. Alpi zone (Basilicata, Southern Italy).

3.2 Projection of geological lines

Geological traces can be projected on the section plane, based on a fold axis for which trend and plunge values have to be defined.

The "Line densify distance" option describes the distance used to densify the lines to plot, when original points are separated by distances larger than the densify distance.


Fig. 9. The plugin interface for geological lines projections on the profile.

The "Id field is used to label the project lines in the resulting plot, as evident in Fig. 7.


Fig. 10. Example of geological line projections on a profile in the Mt. Alpi zone (Basilicata, Southern Italy).

4. Intersections of geological elements

It is possible to determine the intersections of the profile (composed by just two points) with lines ("Intersect line layer") or with polygons ("Intersect polygon layer"), representing geological features.

An Id field and a Classification field can be provided, as an aid in plot visualization.

Previously created intersection can be removed by using the "Reset intersections" button.



Fig. 11. Window for line intersection.



Fig. 12. Example of geological polygon intersection on a profile in the Mt. Alpi zone (Basilicata, Southern Italy).

5. Result export

The last created figure can be saved as PDF, svg or tif. The export graphic parameters can be saved in a text file and loaded for applying them to further plots.

Result data can be exported ad point/line shapefiles and/or csv files, depending on the particular type of exported data. The exported data will have the same CRS as the current QGis project.

Note: the slope is saved as relative (positive when upward, negative when downward), even if plotted as absolute. To change to absolute value, apply the absolute function on the relative field in a GIS or spreadsheet software.



Fig. 13. The plugin interface for result export.


-----

Doc version 2016-08-28, by Mauro Alberti - alberti.m65@gmail.com