Hot answers tagged

5

A hub is an important node in a network. For example, an international airport is a hub for air flights. A large train station is a hub for rail. In the context of QGIS it allows you to define some reference points (i.e. hubs) which you can measure the distance to with some of your other vector information. For example this blog post measures the distance ...


5

No, you cannot import multiple scripts. The script tools have been originally designed to be based on a single Python without considering users writing multimodular Python tools. The option to zip the modules with the __main__.py file doesn't work as script tool would not understand the .zip file as its source. Running the Python scripts outside of ArcMap ...


5

You just need make connection to the folder where you have that tool. After that tool should be available in Catalog


4

It seems that you are correct, SAGA tools in processing always output grids as SDAT format or a temporary file. If you really need a TIFF file as a final output (you can use SDAT in other processing tools), I advice you use the temporary file option and then use save as... (Right-click the output layer) dialog to save it as GeoTiff. Other option is to use ...


4

After unzipping, you should find an xml file inside the root directory with the same name as the zipped file. Select the xml file and be patient because opening the file takes a little while. You can then view the data per band, or right click on the scene name to open an RGB composite. Normally this should also work directly from the zip file. However, ...


4

Processing Toolbox menus & buttons are easy to configure in QGIS 3: Settings Options Tab Processing


4

Following your suggestion about post execution scripts, a raw idea for knowing the execution time is explained in the following. Step 1 Copy-and-paste this code in any text editor and save it as a new file with the .py extension: from datetime import datetime print datetime.now() Step 2 Go to Processing >> General and set it both in Post-execution ...


3

The phenomenon of distance concentration, which is usually expressed as the ratio between some measure of spread (for example, standard deviation) and some the measure of magnitude (for example, the mean) of distances of all points in a data set to some arbitrary reference point or the point with high k-occurrences.


3

This is untested but I would try this workflow: Run Thiessen Polygons to create polygons from your points Clip the result using your black polygon, if necessary Dissolve using the field that stores the group values


3

QGIS version 3.4.2: The bug is fixed in version 3.4.2 and everything works without error messages. Note: This only works since QGIS version 3.4.2, if you use a previous version of 3.x please update QGIS or check a possible workaround I mentioned below. Below 3.4.2: In versions 3.x the error is a known QGIS bug and is triggered by regional language ...


3

You may have some "odd" stuff in your QGIS profile. For a test, rename the folder $HOME/.qgis2/ to some different name and try again. If this does not help, please edit your posting and add some more info about your data.


3

Why not upgrading your QGIS version? To know the GRASS path, you need to know how Processing really works. First, it is a Python module (processing) that uses subprocess to execute the original GRASS commands. Consequently, the script need to know the Grass installation path. With Python in the console, you can obtain the default path (I suppose you ...


2

I now see you just have to switch option at the bottom of the toolbox from "simple" to "advanced". https://docs.qgis.org/2.2/en/docs/user_manual/processing/toolbox.html?highlight=configuration%20dialog I have never had to do this before.


2

Not using QGIS 2.8.1 but I think the following procedure should still be similar (I use 2.6.1): Select from the toolbar, Processing > Options and configuration > Providers > R scripts. Set the directory to where you installed R and make sure you enable Activate. Once done then click OK and you should see it in the Processing Toolbox. If not then try ...


2

First of all I recommend to go to the official SNAP (Sentinel Application Platform - that's the real name of the software) website and get the latest version: SNAP in some parts is still under development thus it can be that you are using an outdated version which was missing the S2 reader. After you have done that and opened SNAP go to "File->Open Product....


2

You can call that tool in a python script that you run every night. In order to run that python script every night, you need to use Windows Task Scheduler. You can get the python code snippet by running your tool in ArcGIS, open the Result Window (accessible from ArcGIS Desktop Menu --> Geoprocessing --> Results), and then right-click --> Copy as Python ...


2

I came across these two resources here and here, they are from some years back but still relevant. Here is an excerpt: Launch ArcMap. Right-click on the ArcMap toolbar and scroll down to "Customize" (or choose the "Customize" option under the Tools menu). Select the "Commands" tab on the "Customize" window. Click the "Add from file" button. ...


2

You could activate the 'Commander' utility of Processing. From menù Processing -> Commander activate it. After that you could choose the Geoalgorithms from a dropdown menù (or type the beginnings letters) and then press ENTER on keyboard.


1

Ensure that only one ArcMap and/or ArcCatalog is open before attempting this.. this is because the last to exit will overwrite the Normal.gxt (Catalog) or Normal.mxt (ArcMap), in this file customization for all future sessions is stored. As an aside these files are precious and become more so with each customization and I suggest they should be part of your ...


1

GetParameterAsText returns the parameter values "as text". Use var = int(arcpy.GetParameterAsText(index)) and/or var = float(arcpy.GetParameterAsText(index)) to convert the numeric parameter text to the appropriate type of number. Replace var with your actual variable name as appropriate.


1

I would use GPValueTable instead of GPString to have plus button for adding user entries but this makes things a bit tricky since you need to set columns and work out filter updating mechanism. I ran a small test and I think rough workaround below might be of help. After setting datatype="GPValueTable" you need these lines below param1.columns = [['String',...


1

Problem solved The error was in « intermediate data » in the model Model export to .py and works marvelous outside ArcGIS environment Thank a lot for yours answers you are awesome!!!


1

You are seeing "Script finished" because it says to print it. There is no try or catch in what you added in for the code. Or any procedures that make sense. The line "arcpy.IJA0101X00006666importcsv_test" would not execute, because it's not valid. You want to run the model as a python script, only what you shared isn't the model. It appears that what you've ...


1

The .tbx file is portable. So you can copy it into a network file store, or usb to allow access to it, or send it as an email attachment (if it's not too big) to be saved in a location that ArcCatalog can get to. As long as the other ArcCatalog user has the proper licensing, and the tool has been saved to a folder connection that the user has listed in ...


1

There are a few steps you need to take to ensure that your model will run on another computer. Some of which include: creating input parameters (if you have any). copying accompanying datasets/scripts. checking if the computer has the correct version of arcmap that your model runs on Check out the following ESRI help page for some details: Sharing Custom ...


1

The Help page to read on this is Save a custom set of geoprocessing tools and I think the key sentence that answers your question is: You cannot add system tools to a project toolbox; only custom script and model tools that you build can be added. Alternative workflows are described there and summarized here: You can save a custom set of ...


1

You can achieve this by slightly editing the source code for a processing parameter file and changing the optional setting. In your QGIS installation directory, go to: ../apps/qgis/python/plugins/processing/core/ And open the parameters.py. Search for the following line: class ParameterFile(Parameter) In its __init__() method, change the following: ...


1

Did you install QGIS from KingChaos source? If so... From KingChaos download page: QGIS includes its own internal copies of GRASS, Orfeo Toolbox, SAGA and TauDEM. OTB is already in QGIS installation folder. Check the following path inside Applications/QGIS.app: After this, use the right paths in Processing options: Finally, OTB will be able in ...


1

The GPK file is a Geoprocessing package. There are instructions on how to unpack it to find any contained toolboxes at Using a geoprocessing package: When you open a geoprocessing package, the contents of the package (tools, toolboxes, data, and associated files) are extracted to a folder in your user profile.


1

i don't know the Windows version of R, but from what I know with other OS, you need to access R in the command line. This mean that you can execute a R script in the console: R(.exe ?) script.r What happens when you invoke a R script (as Summary statistics), in Processing ? 1) the script /.../processing/algs/r/RUtils.py first create a R script file with ...


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