[Qgis-user] Slope and aspect via Python

Nicolas Cadieux nicolas.cadieux at archeotec.ca
Tue Jan 20 13:20:35 PST 2015


Hi, 
You should be able to run the batch processing in the processing tool box. The Grass algorithms should work.  Right click on the process and you will see something like "run as batch". You can rename file or make the renaming automatic.  Send me an email if you run into problems. 
Nicolas Cadieux M.Sc. 
Les Entreprises Archéotec inc.  
8548, rue Saint-Denis Montréal H2P 2H2 
Téléphone: 514.381.5112  Fax: 514.381.4995 
Le 2015-01-19 11:57, "nagyrobi_r [via OSGeo.org]" <ml-node+s1560n5182386h27 at n6.nabble.com> a écrit : 

	Hey! im using Qgis 2.8, on a windows 64 bit platform. i have about 150 DEMs to process, and i need to calculate the slopes and curvatures for all of them. Because of the huge volume of work i need to make this automatic (Batch processing is out of the question, cause i need to fill in the filenames and there is lots of room for error). I would like to program it in python, because i am familiar with that programming language.
 I cannot make the "r.slope.aspect"  work at all. I have tried:processing.runalg("r.slope.aspect"....) i get a bunch of empty images. I have also tried grass.run_command('r.slope.aspect',....) with no succes.
also tried processing.runalg("saga:slopeaspectcurvature"....) data comes out in a wrong range
Can anybody send me a detailed description of how to succesfully make one of theese work? I mean filled out with your own data. And it would be good if you could test it to make sure it works! Please dont send me to a website cause i've probably checked it out!
Please help me! Its Master Thesis work, and it is setting me back a lot of time!
Best,
Nagy Robert

	
	
	
	
	
	
	
		If you reply to this email, your message will be added to the discussion below: 
		http://osgeo-org.1560.x6.nabble.com/Slope-and-aspect-via-Python-tp5182386.html 
	
	
		To start a new topic under Quantum GIS - User, email ml-node+s1560n4125267h38 at n6.nabble.com 
		To unsubscribe from Quantum GIS - User, click here . 
		NAML 
	



--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Slope-and-aspect-via-Python-tp5182386p5182693.html
Sent from the Quantum GIS - User mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20150120/0ba59024/attachment.html>


More information about the Qgis-user mailing list