<span>Hi all,</span><br><br><span>I am new to QGIS and to <span class="bold highlight search-highlight">Python</span>.</span><br><br><span>I
would like to use the plugin point sampling tool in order to merge
raster datasets with my observations (a delimited text layer) and then
save the resulting shape file as a csv file. I know how to do it with
the GUI:</span><br><span>
</span><br><span>Add Delimited Text Layer</span><br><span>Add Raster Layer</span><br><span>Point Sampling Tool</span><br><span>Join the layer</span><br><span>Save as .csv</span><br><br><span>As I have quite a lot of raster dataset to match with my observations (and I am quite keen to learn <span class="bold highlight search-highlight">Python</span>), I would like to do it with a loop in the <span class="bold highlight search-highlight">Python</span> console. </span><br>
<span>
</span><br><span>Thanks to this </span><a href="http://planet.qgis.org/snippets/2/" target="_blank">post</a>, I have<span>:</span><br><br><span>crops="Wheat", "Maize","Barley", "Haricot Bean","Teff"</span><br>
<br><span>for
i in crops: layer=QgsRasterLayer("C:/Program Files/LEAP/Images/Water
Balance/Meher/2005/"+str(i)+"_Meher_Final_Index_2005.img",str(i));
QgsMapLayerRegistry.instance().addMapLayer(layer)</span><br><span>
</span><br><span>Any one knows what is the function for Point Sampling Tool, Join the layer and save in Python? <br><br>More generally, how do we use plugins in the python console?</span><br><br><span>Thanks a lot,</span><br>
<br><span>Xav </span>