Skip to main content

Questions tagged [python-script-tool]

Python Script Tools are added to standard toolboxes (*.tbx) of ArcGIS for Desktop

0 votes
0 answers
35 views

Web Tool Issue: "Field" parameter type not supported when default layers removed (ArcGIS Pro / Python Toolbox)

I've developed a tool in ArcGIS Pro using a Python toolbox (.atbx), and recently shared it as a web tool. The tool takes several input parameters, including feature layers and a field selector. ...
ReutKeller's user avatar
  • 2,079
0 votes
0 answers
75 views

Stop the geoprocessing tool from overwriting results with the same name

I'm working on a geoprocessing tool in the ArcGIS Pro environment. My Goal is to manually work on a set of points (requiring me to go thru all of them individually) and let the tool do its work on ...
roundball2's user avatar
0 votes
2 answers
87 views

Identifying feature without creating separate output

I am using ArcGIS Pro 3.2. I hoping to use the Identity tool to cookie cutter a buffer(layer B) into a polygon (layer A) without creating a separate output feature class. Currently I am using the ...
jimbybob1's user avatar
0 votes
0 answers
39 views

Writing tool for stacking point features on given co-ordinate

I am trying to write a Python code for creating a geoprocessing tool which will be added as a toolbox in ArcGIS Pro (v2.6). The tool will Ask for a "Target point feature" as input for the (...
Mahmud A.'s user avatar
-1 votes
1 answer
151 views

Returning value from ArcGIS Pro custom tool (.py)

How do we return a value from a custom .py tool, so that when I run the tool in another script, it will return a value (such as a number, string, or tuple)? Notice in the execute class function, I ...
Clouseau's user avatar
0 votes
1 answer
99 views

Python from pathlib import Path crash into QGIS

I'm creating a custom Python script inside QGIS Processing in Mac OS system, I encountered a serious error cause a crash of QGIS application. If in my Python script I use this library: from pathlib ...
gianfranco di pietro's user avatar
1 vote
1 answer
56 views

Using CalculateField within a script tool to edit the shape of a polygon

I am working in ArcGIS Pro 3.2 and with Python 3.9.18 I am trying to replace the geometry of a polygon with the polygon from another layer. I have used this small calculate field expression to replace ...
jimbybob1's user avatar
1 vote
0 answers
88 views

how to add toolbar menu on pyqgis using custom class with current QgsInterface?

currently i want to add a qgis toolbar icon, which needs to be populated on the qgis window after certain process using custom class by overriding the current qgisinterface. But while running the code ...
Nihar Sahoo's user avatar
0 votes
1 answer
109 views

Using Python script inside QGIS Graphic Modeler

I created a model that combines two vector layers and outputs a single layer with aggregated data. I have a Python script that calculates the Chi-square, and I would like it to be executed at the end ...
Tony Sampaio's user avatar
0 votes
0 answers
65 views

Why is first output of ArcPy tool only one running?

I am attempting to write a python tool that uses the create routes, locate features along routes, and make route event layer tools (in that order). Essentially this is a three step process that I want ...
Wes's user avatar
  • 11
0 votes
1 answer
178 views

Select Layer by Attribute not working with variable, but doesn't give errors using ArcPy

I'm trying to make a simple script tool that allows the user to search a for a specific polygon in a feature class using a unique number. Using the python window in ArcGisPro I run arcpy.management....
grahamsy2k's user avatar
1 vote
1 answer
139 views

Automate map updating using data from a folder in ArcGIS Pro

I'm trying to automate map updating in ArcGIS Pro using Python. Essentially, I need the program to read a folder with GeoJSON files, import them into a map, and update it. When I use the code below, ...
Bruno's user avatar
  • 13
-1 votes
1 answer
202 views

ArcPy "listElements" error reported

I'm writing a script to convert a CAD polygon feature in a shapefile, calculate area(ha) in a new field and zoom to it in a 25.000 scale. import os, arcpy, sys from arcpy import env #PAR�METROS DA ...
Alexandre Soares's user avatar
0 votes
1 answer
132 views

Python Script Tool with validation not opening in ArcGIS Pro

I am trying to figure out why my ArcGIS Pro Python Script Tool with validation fails to open when I insert the block of code in my image. def initializeParameters(self): shpFile = r"C:\LPA\...
Acarbo76's user avatar
0 votes
0 answers
44 views

Reference dictionary keys in ArcGIS Tool Validation

I have a Python script that is stored in a custom toolbox in ArcGIS Pro. The script has a dictionary myDict that I want the keys of to appear as a drop-down list as an input for the tool. I know how ...
DeltaKilo's user avatar

15 30 50 per page
1
2 3 4 5
33