13
votes
Accepted
Marking a tool as a favorite in QGIS
If you go in Settings -> Options -> Processing -> Menus you can go to every processing algorithm you want to add to your favorites and click on "Add button in toolbar"
After that ...
10
votes
Accepted
Enabling GRASS in Processing Toolbox of QGIS 3.28.2.0
Ok , I found it:
enable GRASS and GRASS Provider Plugin via the Plugin Menu
UPDATE: for the Processing Toolbox you only need the GRASS Provider Plugin
8
votes
Accepted
Cannot find scale bar tool
The scale bar is located, on the layout view (main view) here on the top menu:
However, if you are looking for the scale bar in the Print Composer view, it is located on the left-hand side menu, here:...
6
votes
Accepted
How to import multiple python scripts in one script tool
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 ...
6
votes
Accepted
Renaming ArcGIS Pro project, APRX, file geodatabase and toolbox?
The ArcGIS Pro Documentation has a page Change project settings which outlines what you can and can't do with your project once it's created.
That said, I did some testing, originally based on the ...
6
votes
Accepted
QGIS 3.22.5: how to start the tool "Transect"
Run Menu Processing > Toolbox to open the Processing Toolbox. This is the place to find all tools, algorithms etc. available in QGIS. Just type the name of the tool to filter for it.
This is a very ...
5
votes
Why are some QGIS tools only available via the Processing Toolbox?
Processing Toolbox menus & buttons are easy to configure in QGIS 3:
Settings
Options
Tab Processing
5
votes
Accepted
How to import someone else's toolbox?
You just need make connection to the folder where you have that tool. After that tool should be available in Catalog
5
votes
Accepted
What is a "hub" in GIS-speak?
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 ...
5
votes
Marking a tool as a favorite in QGIS
In addition to the answer by @Louis Cottereau
When you want to add an icon for a tool/algorithm that does not yet have an entry in a menu, you must first include the tool/algorithm to a menu. To do ...
4
votes
Splitting polygon into polygons based on data point groups using ArcGIS Desktop?
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 ...
4
votes
Accepted
Error using grass v.clean: " 'utf-8' codec can't decode byte... "
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 ...
4
votes
Toolbox algorithms execution times
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 ...
4
votes
Accepted
Returning correct layer name in PyQGIS
I've achieved this by a little workaround :
from qgis.utils import iface # add this in the list of imports
#
#
class My_model(QgsProcessingAlgorithm):
def initAlgorithm(self, config=None):
...
4
votes
Processing algorithm as expression in QGIS
Basically this is possible using a custom function. You just have to rebuild the Python syntax. For my testing purposes this worked fine:
from qgis.core import *
from qgis.gui import *
import ...
3
votes
Accepted
How to load external files in PyQGIS?
The underlying issue is that you're passing a list of list-of-strings as your layers parameter, not a list-of-strings.
I.e. instead of
'LAYERS': [['C:/Shapes/File1.shp'],['C:/Shapes/File2.shp']],
...
3
votes
What is a "hub" in GIS-speak?
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 ...
3
votes
Referenced ArcGIS Pro 3.1 toolbox renamed and empty toolbox created in its place
Irrespective of anything else that may be happening in your configuration, I think it is a mistake for you to name your “program toolbox” as Default.tbx or Default.atbx because that is the name ArcGIS ...
2
votes
How to import someone else's toolbox?
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
"...
2
votes
Accepted
Making QGIS toolbox tool available directly from toolbar?
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 ...
2
votes
Accepted
Remove optional tag for parameters user script processing toolbox QGIS
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/...
2
votes
Accepted
Execute a batch process of a spatial tool within an ArcGIS Toolbox
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 ...
2
votes
Returning correct layer name in PyQGIS
@Keagan Allan answered to his own question
Using the accepted answer I added the following to my code:
lyr_list = iface.layerTreeView().layerTreeModel().rootGroup().layerOrder()
lyr_dict = {lyr.id(): ...
2
votes
Intelligence Tools don't show up in ArcGIS Pro
The Intelligence toolbar is an additional Esri Solution that you can choose to install when installing ArcGIS Pro (but which is not installed by default). According to this Esri documentation while ...
2
votes
Accepted
How to delete a line up to a certain snapping point (QGIS)
Assuming by snapping point you mean a vertex, this is possible using the split feature tool.
With the tool activated select the desired vertex, split the feature into two parts and delete one of the ...
2
votes
Accepted
Python script in toolbox
You need to actually get the layer from the context argument of the function with QgsProcessingContext.getMapLayer(identifier) -> QgsMapLayer (source)
I have also changed ...
2
votes
Accepted
Adding script to the Processing Toolbox in QGIS
Try by going in the folder %APPDATA%\QGIS\QGIS3\profiles\default\processing\scripts
Cut the ttt.py file then paste it in an other folder
Retry adding the script under QGIS
1
vote
Calling the correct element of an output via PyQGIS Script
You need to turn the layer into a QGIS vector layer when importing it:
#define vector layer
vlayer = QgsVectorLayer('your_output_file', 'layer_name', "ogr")
# add ...
1
vote
Accepted
Basic script for Raster Files - PyQGIS 3
I found a solution that doesn't seem right, but it works.
I created a model that has only one gdal algorithm.
I created a second model that has only the first model.
So I converted the second model ...
1
vote
Renaming ArcGIS Pro project, APRX, file geodatabase and toolbox?
To try and get this addressed for ArcGIS Pro 2.0, I have submitted an ArcGIS Idea entitled Renaming ArcGIS Pro project with its APRX, file geodatabase and toolbox needs to be easy.
I would encourage ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
toolbox × 79qgis × 30
arcpy × 16
qgis-processing × 14
arcgis-desktop × 12
arcgis-pro × 11
qgis-3 × 10
pyqgis × 6
python × 5
arcmap × 5
modelbuilder × 5
pyqgis-3 × 5
grass-gis × 5
r × 3
error × 3
saga × 3
coordinate-system × 2
installation × 2
geoprocessing × 2
python-script-tool × 2
mac × 2
grass-7.0 × 2
toolbar × 2
file-path × 2
model × 2