Tag Info

Hot answers tagged

6

I've written to the SEXTANTE team to ask about this issue. This is the response I got: Other people have reported that those "tricks" that worked for 10 do not work for 10.1. We haven't tested it, but there are plans for doing some development on the ArcGIS version in collaboration with a team from an american university, and definitely that's our ...


4

I have it configured and working well with QGIS 1.8. I decided to have SAGA in a folder without spaces. ( not sure if that affects function). Configuration screenshot attached.


4

You could craft your script to work with Gary Sherman's Script Runner plugin and run it from within QGIS. Re-running the script, after editing, should prompt Script Runner to reload the module and reflect your changes. See also: Script Runner's plugins.qgis.org listing. The essentials are to make sure you have a run_script function, which gets called by ...


4

So I tried some more things and came up with a solution. I will go over what I did step by step and hopefully this will work for others. First thing I did was uninstall qgis as completly as I know how sudo apt-get autoremove qgis sudo apt-get autoclean Then I removed the Ubuntugis-unstable PPA sudo apt-add-repository remove ...


4

EDIT: I'm going to see if this bug is related (http://hub.qgis.org/issues/8012). UPDATE: Looks like there are some issues with R in the sextante plugin for both qgis and qgis-dev. I'll file some bug reports if they haven't been already. But the two issues with R in sextante are: 1) In qgis (stable) SEXTANTE doesn't seem to use the rlib path in the Users ...


3

Try launch GRASS with grass --wxpython


3

In QGIS 1.9 you can choose between "Simplified interface" and "Advenced interface" under the SEXTANTE toolbox. Simplified hide all external algorithms, probably this is your problem.


3

In QGIS in "Processing" options, select "Options and configuration", SAGA and uncheck the option "Enable SAGA 2.0.8..." I'm working in ubuntu 12.04 and with SAGA 2.1.1


3

Isn't it obvious that you need to install SAGA first? If SAGA is installed check in SEXTANTE settings if it is activated. Install python-saga module. Also check out this post on setup SEXTANTE for Ubuntu. If none of this helps the reason may be that SEXTANTE is looking for SAGA modules in the wrong directory. The default path to SAGA algorithms is ...


3

Sextante has to be initialized, so it loads the algorithms and can later execute them. Call Sextante.initialize() before doing anything.


3

Sextante is mainly a library to be used from a gis desktop application like gvSIG, qgis or ArcGIS. If you want to use any of the algorithms of Sextante on postgis layer, just choose any a gis desktop app, load the postgis layer, and use Sextante on it, as if it was a shapefile. For example gvSIG comes with Sextante an a lot of algorithms without the need ...


3

A cool little trick with QGIS is being able to isolate all the user files and folders along with all the settings into a different location. QGIS can be started with the --configpath and --optionspath swtiches to redirect any of the settings or options to a different folder. An example of doing that with QGIS 2.0 is: SET QGIS=%PROGRAMFILES%\QGIS Dufour ...


3

So why doesn't it work? Look at your code, specifically the line with the attribute fields. You need to point R/QGIS directly towards the field data vectors unless you attach them beforehand. The following code works without issues for me (provided that you have installed ggplot2): ##Vector processing=group ##showplots ##Layer=vector ##Field1=Field Layer ...


3

You can use Save as Python script The result is a script that you can use in the Toolbox or in the Python console ##Extract raster values (shapefile)=name ##vectorlayer_inputvector=vector ##rasterlayer_inputraster=raster ##boolean_reprojectvectortorastercrs=boolean false ##output_layer_alg1=output vector ...


2

One method you might try to get GRASS commands to work in SEXTANTE involves how QGIS locates the external binaries needed to run those commands. Unless given explicitly defined paths, subprocesses in Python use the PATH environment variable to search for external binaries. For GUI apps on Mac OS X, only /usr paths are searched for binaries, not /usr/local ...


2

Here: -RETAB C:\Dokumente und Einstellungen\user\sextante\tempdata\1353407599.88105.txt should be quotes around the complete path, as given for the other files.


2

This seems to be a problem with the Repository .xml. There are no entries listed in the repository browser (alphabetically) below Points2One see Bug 7279 http://hub.qgis.org/issues/7279 Hopefully it's fixed soon!


2

Install Sextante is in the official plugin repository. Go to Plugins => Fetch Plugins, look for Sextante in the list, select it and click install. In case it is not in the list, the main repository is probably missing. Go to the Repositories tab and add the following URL: http://plugins.qgis.org/plugins/plugins.xml Proxy Settings In case there are ...


2

A simple way of getting rid of the attributes is to rightclick on the layer -> Save As... and check Surpress attribute creation. If you have many files, you could use: ogr2ogr -select field_list destination_file source_file to select fields you want (default is all!)


2

There are several tools you can use to Drop\delete columns. 1 - Atribute table "delete column" tool Open layer's attribute table; Start editing; Click on "delete columns" icon; Select several columns using Pressing Ctrl; Click ok; Stop\Save editing; 2 - Use Table Manager Plugin Install Table Manager Plugin using Plugins > fetch python plugins; Click ...


2

This appears to be a bug in the Sextante interface, the original GRASS module allows of course real east and north coordinates (see manual). Please report this here: http://hub.qgis.org/projects/sextante/issues


2

If you are trying to export the output to a user defined folder, the correct way to do it is by stating "##myfolder=folder" As for the problems with the Modeler, your R script would have to produce a vector, a raster or an HTML file, in order to the output to be picked up as input for another tool. At the moment it's not possible to create .csv outputs. In ...


2

You can download the most recent version of the SEXTANTE plugin here. To install any plugins offline, you simply need to extract the downloaded archive to a folder and copy the extracted folder to the ~/.qgis/python/plugins/ folder. The .qgis folder can be found inside the private document ("my documents") folder of your user on windows Then start QGIS, ...


2

Sure you can create and run R scripts in QGIS 2.0. The basic sintaxis is the same as python, so start reading this: http://www.qgis.org/es/docs/user_manual/processing/console.html#creating-scripts-and-running-them-from-the-toolbox Then you can check, some example scripts installed by default, in your processing panel. If you need more help you can check ...


2

Aaaand I found it. Use processing.runandload, which loads the output layer into the table of contents after running the algorithm. processing.runandload("qgis:intersection", layer1, layer2, "memory:myLayerName") layer = QgsMapLayerRegistry.instance().mapLayersByName("memory:myLayerName")[0] # Should do error checking as well, but this works!!


2

yo can obtain a "movement direction raster" or simply "direction raster" with the tool "watershed", selecting only the correct output.


2

I found out what was wrong. No Layer call inside ggplot, here the right code: ##Vector processing=group ##showplots ##Layer=vector ##a=Field Layer ##b=Field Layer library("ggplot2") ggplot() + geom_point(aes(Layer[[a]], Layer[[b]])) Cheers


2

What happens when you run a .rsx script ? You must examine the Rutils.py script It creates a temporary R script with the desired command (/.qgis2/processing/processing_script.r) and use the Python module subprocess to execute it command = "R CMD BATCH --vanilla " + RUtils.getRScriptFilename() + " "+ RUtils.getConsoleOutputFilename() proc = ...


2

You can use the solutions given in Using processing algorithms from the console: But if you look at what's in the module (version 2.2): import processing dir(processing) no more getfeatures() or getFeatures() You can control this with a little function adapted from Script de Python para filtrar por patrón de texto los métodos de Clases en PyQGIS de José ...


1

I've updated the ubuntugis ppa - it should now be possible to in stall both qgis and saga (last version) from the ubuntugis ppa.



Only top voted, non community-wiki answers of a minimum length are eligible