All Questions
Tagged with python-toolbox python
22 questions
4
votes
2
answers
406
views
Python script in toolbox
I have a python script that clean my symbology for the selected layer, from here:
from qgis.core import *
from qgis.gui import *
from qgis.utils import iface
layer = iface.activeLayer() # get the ...
0
votes
1
answer
613
views
ArcGIS Python Toolbox expression on Portal (Web Tool in Web App) problem
I wrote a GP tool (Python toolbox) with Expression using GPSQLExpression with updateParameters that manipulates the expression,
it works fine on ArcGIS Pro (2.4), but it becomes a String Input on Web ...
-1
votes
1
answer
215
views
Orfeo ToolBox is not working properly in QGIS 3? [closed]
I have installed QGIS 3 and Orfeo ToolBox in it. The toolbox is not working properly.
Is there any way to use it in ArcGIS 10 with Python 2.7?
1
vote
1
answer
860
views
How to recompile a Python toolbox after a change to an imported module
If an ArcPy toolbox imports modules that are edited, recompiling the modules from the .py source code to the .pyc code that actually runs is a challenge. Deleting the .pyc files doesn't work because (...
1
vote
1
answer
434
views
Derive (default) value in ValueTable based on values in ValueTable of Python Toolbox using ArcPy?
I am writing a Python Toolbox which needs Shapefiles (or Featureclasses) as input and calculates an output for each of the input files. I would like to have the possibility to rename the files in ...
1
vote
1
answer
368
views
Add and fill a field in Python Toolbox (pyt) in ArcMap
I am using python toolbox in ArcMap, and I want to add a new field in a shapefile and after that I want to fill this field with the name of the shapefile.
I achieve to add a new field using arcpy....
0
votes
1
answer
124
views
gdal_translate called via subprocess.check_output works when called directly, but not from within arcgis
EDIT: Solved it myself. Beginners error... :/
I am writing a python Toolbox that should use gdal_translate to convert an ASCII Gridded XYZ-File into a lower resolution (and doing afterwards a couple ...
1
vote
2
answers
585
views
how to export fclist and fccount to csv
i am looking for a method by which i can export fc list and fc count into xls or csv. for example i have 3 featureclass in Scratch.gdb.
1.PaLakh
2.PATest1
3.Point
i want all 3 of these ...
1
vote
1
answer
715
views
Is there a script to Python for Click to toggle selectable?
I cannot write a script using ArcPy (Click to toggle selectable).
To make a layer unavailable for sampling!
I just need to create a tool to automate several processes, one of them is the ability to ...
0
votes
1
answer
2k
views
TypeError: unsupported operand type(s) for *: 'float' and 'geoprocessing Layer object'
I am getting a rather unclear type error, and after searching online I cannot find any solutions that help. I am trying to create my own python toolbox for wifi router signal loss, and I am trying to ...
1
vote
1
answer
852
views
Python tools won't open when clicked on
I am creating a python toolbox within ArcGIS 10.3 and I am having issues opening it up in ArcMap. I have been editing it, saving it, and running it within ArcMap this whole time to test it little by ...
1
vote
0
answers
224
views
Configuring Python to avoid conflict with ArcGIS for Desktop (ArcPy)? [duplicate]
I am trying to find the best way to configure a new version of python in my computer (windows) so that I do not have any problem with the python version that I have with ArcGIS. Is there anyway to ...
1
vote
1
answer
193
views
Field calculater in Python console from QGIS
I have some doubts in syntax of processing.runalg(qgis:fieldcalculator) in python console of QGIS. I want to create a new field in a shapefile and calculate this formula: [D_PATRICIA]*1000. (...
3
votes
2
answers
2k
views
ArcGIS tool for graph analysis
I have a road network shapefile.
After creating Network dataset I get a graph with vertices and edges.
I need to create a tool for ArcGIS (through a Python code) which enables to calculate depth of ...
2
votes
1
answer
2k
views
How apply error messages to a python toolbox that prevent my tool from running with bad parameters?
This is a continuation of my question here: Point and Polyline I tried making this question easier to follow.
My tool accepts two main parameters - a continuous centerline and a table (or a feature ...