<div dir="ltr"><div><div><div><div><div>Hi QGIS users and devs,<br><br></div>I would like to share the Processing scripts I have created this last 2 months. Here is the list :<br><br></div><div>Database<br>=========<br><br>
</div><div>* Create vector layer from PostGIS table : fill the database connection parameters, choose a table and an optionnal WHERE clause, and get the result as a vector layer<br><br></div><div>* Create vector layer from SQL Query : Choose the database type (PostGIS or Spatialite), write the query and get the data as a vector layer<br>
<br></div><div>Raster<br>======<br><br></div><div>* Define 1 raster layer properties : set style from optionnal QML, set the layer CRS, refresh contrast enhancement and save properties as default style<br><br></div><div>* Define multiple raster layers properties : the same as above for more than one raster layer<br>
<br></div><div>String<br>=======<br><br></div><div>* Read file content into string : Read a text file and output a string with the file content  (usefull to run some queries)<br><br></div><div>Another of my script is already in Processing Example script and allows to search and replace values by another . This could be handy with the one above to run parametric queries.<br>
<br></div><div>Vector<br>========<br><br></div><div>* Define 1 vector layer properties : select and apply a QML (optional), set layer CRS, create spatial index, recalculate extent, set title and abstract, save properties as default style -  all in once.<br>
<br></div><div>* Define multiple vector layers properties : same as above but for multiple vector layers (without title and abstract inputs)<br></div><div><br></div><div>* Save features filtered by expression : Choose a vector layer, use and expression to save the matching features as a new vector layer<br>
<br></div><div>* Select vector features by expression : Use an expression to select the vector layer matching features<br><br></div><div>* Square grid from layer extent : choose a vector layer and a grid cell size and outputs a vector grid.<br>
</div><div><br><br></div>All the scripts are on Github ( GPL2 licence).<br><a href="https://github.com/3liz/QgisProcessingScripts">https://github.com/3liz/QgisProcessingScripts</a><br><br></div>I documented each script with the Processing help feature.<br>
<br></div><div>Any feedback welcome !<br></div><div><br></div>Cheers<br></div>Michael<br></div>