Comment 2 for bug 1198975

Revision history for this message
Paolo Tormene (paolo-tormene) wrote :

The exposure export tool has been rewritten. The CSV produced by the new version contains license lines starting with '#', whereas the actual header line of the data does not have the '#' (see https://github.com/gem/oq-platform/pull/296).
In the QGIS SVIR plugin, when reading the CSV produced by the exposure tool to build a QGIS layer, before building the URI to pass to QgsVectorLayer, we count the leading lines of the CSV which start with '#', and use that count in the URI where the parameter 'skipLines' is needed. In this way, even in case the license produced by the export tool changes its number of lines, the client QGIS application is robust enough and it doesn't need to know in advance the length of the license in the CSV. See https://github.com/gem/qt-experiments/commit/7eaedcdb0872750163d5ff8c7adfb4bca047e94e)