[QGIS-Developer] RES: Processing script to audit all projects in a directory and subdirectories

jorgealmerio at yahoo.com.br jorgealmerio at yahoo.com.br
Fri Jul 16 05:30:14 PDT 2021


Hi, Michael,

 

Congratulations for the script!

 

These days I was looking for a script to list layers from Qgis projects with their respective sources (pathfile) and other info like, layer name, Invalid pathfile. I would be better if it is possible to do without really open the Qgis project file in Qgis.

 

I think this script you created do this, If am not wrong, but I did not figure out how to list layers from projects.

I use Windows and Qgis 3.18. Do I have to install anything else?

 

I got a CSV file like this:

"

path,basename,last_modified,crs,layer_count,invalid_layer_count,print_layout_count,print_layout_pictures_paths,print_layout_pictures_sizes,print_layout_pictures_total_size,print_layout_pictures_total_size_mb,trust_option_active,last_save_version

C:\Users\jorgealmerio\Documents\Mandu.qgz, Mandu,2021-07-15 16:46:55,EPSG:31984,126,5,1,,,0,0.0,False,31802

 

C:\Users\jorgealmerio\Documents\Mandu2.qgz, Mandu2,2021-07-16 16:46:55,EPSG:31984,126,5,1,,,0,0.0,False,31802

 

"

 

Another thing, there are urnecessary blank lines in result CSV file.

 

Regards,

 

Jorge Almerio

 

 

De: QGIS-Developer [mailto:qgis-developer-bounces at lists.osgeo.org] Em nome de kimaidou
Enviada em: sexta-feira, 16 de julho de 2021 06:33
Para: qgis-developer <qgis-developer at lists.osgeo.org>
Assunto: [QGIS-Developer] Processing script to audit all projects in a directory and subdirectories

 

Hi all !

 

I just published a WIP processing script I created to audit all the projects found in a local directory (and subdirectories).

I think it can be useful in different contexts, and if you enough people find it interesting, I could add it to the QGIS Resource sharing repository.

 

See a full README here: https://gist.github.com/mdouchin/cd89a259d3560635d4bb8708ad430caa/

 

PS: obviously it can be improved, as any piece of code ;) but I think it is mature enough to be shared

 

Regards

Michaël

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20210716/73817a7b/attachment-0001.html>


More information about the QGIS-Developer mailing list