Skip to main content

Questions tagged [python-script-tool]

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

Filter by
Sorted by
Tagged with
0 votes
0 answers
36 views

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,099
0 votes
0 answers
76 views

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
88 views

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
40 views

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
154 views

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
103 views

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
57 views

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
94 views

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
110 views

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
66 views

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
184 views

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
143 views

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
204 views

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
133 views

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
45 views

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
2 votes
1 answer
63 views

My script selects by date in a points layer, then creates a new layer made only of those points. The script then exports the attribute table for the new layer to Excel, turns off the original layer, ...
Skel80's user avatar
  • 165
1 vote
1 answer
72 views

Trying to create a Python script tool to calculate fields that are persistent across some (not all) feature classes in several feature datasets. It worked fine with the variables for CNO and VID ...
Tebetheia's user avatar
1 vote
1 answer
112 views

I'm trying to run a script in arcpy and appears the error 000725 "output folder: Dataset C:.. already exists. The script objective is to clip all shapefiles from a folder by a buffer layer. If ...
brubis's user avatar
  • 139
3 votes
1 answer
311 views

Recently, I deployed the Esri Data Loading Tools Python package into my cloned environment within ArcGIS Pro 3.0.3. With the process pretty fool-proof, given Esri's package manager interface, I was ...
Austin Averill's user avatar
0 votes
1 answer
123 views

I am trying to use the grid index features tool in ArcPy. However when I run it outside of the Python window in ArcGIS Pro, it freezes and crashes. When used within ArcGIS Pro it works fine. I am ...
Amidaz's user avatar
  • 11
0 votes
0 answers
58 views

I'm creating a tool that will be used by the Geoprocessing widget on my organisation's enterprise server. When I attempt to run my tool, I get an exception: ERROR 000824: The tool is not licensed ...
littlerhizomeman's user avatar
0 votes
1 answer
100 views

I am new to QGIS (I am using QGIS 3.26). The bosses at my work want to get an automated process for converting simple data into maps for visualization purposes. So I started to learn Python used to ...
Patryk Szczeciński's user avatar
0 votes
2 answers
54 views

WORK SCHEME The issues are highlighted. User input for the plugin: • a raster map with information on the depth of the water reached by a rain / flood event; • a polygonal vector file with buildings ...
Giulia's user avatar
  • 1
5 votes
1 answer
1k views

I'm creating a Toolbox (.atbx) in ArcGIS Pro, that uses a Python script I'm developing. Basically, the feature I want to add in that tool is making the user to select (using a checkbox) a set of maps ...
Matt_Geo's user avatar
  • 1,052
0 votes
1 answer
987 views

It gives the error while I am using command line to install the library or package. As you can see in the attached file (the python_console_in_QGIS, command_line_python, and the library_want_to_follow)...
Hasan's user avatar
  • 55
0 votes
0 answers
237 views

Here is documentation on it, but it doesn't have Python code associated. I want to script this so I can make it run automatically after another model runs as a precondition. My current workflow is: in ...
Jordan's user avatar
  • 1
2 votes
1 answer
924 views

I built a python processing tool for QGIS where my goal is to use field calculator and multiply an existing field in a layer by a parameter (number) decided by the user. I defined the parameter for ...
Ofir's user avatar
  • 707
0 votes
1 answer
196 views

I am trying to create a custom system for converting general geodata to S-57 standard. This will require more than one custom tool/script, but I'd like to make the experience as user-friendly as ...
Itay Swid's user avatar
1 vote
1 answer
622 views

Can anyone help me resolve this error? Traceback(most recent call last): File "*file.py", Line 15 in if (arcpy.Describe(lyr).shapeType) == 'Polygon': AttributeError: DescribeData: Method ...
SaltyPatriot's user avatar
1 vote
1 answer
628 views

I am trying to locate features along routes for polyline and point features in a map. The locate features along routes tool requires two separate parameters; one for polyline and one for point ...
SaltyPatriot's user avatar
0 votes
1 answer
134 views

I have a toolbox that is executing locate features along routes for a number of layers in a map. For each iteration of the locate features along routes I am expecting a stand alone table for each of ...
SaltyPatriot's user avatar
1 vote
1 answer
162 views

I am trying to create a toolbox that will execute 'Locate Features Along Routes' in multiple layers and in two active maps in ArcGIS Pro. One map contains linear features to be located, the other ...
SaltyPatriot's user avatar
0 votes
1 answer
65 views

I need to update 200 MXD files by adding three layers with a specific symbology for each layer. I use ArcMap 10.8 All the layers are in the same folder. All the .mxd files are located in one folder ...
Paul-Emmanuel Leroux's user avatar
0 votes
1 answer
48 views

I have been working on and compiling different code snippets to create a GDB Generator. Most of the code logic I understand, but there is some that I can't grasp. Below is the code. Code: #import ...
Ryan Mags's user avatar
1 vote
1 answer
223 views

I have an ArcMap Script Tool that calls the "extent" parameter. It contains a pulldown for how to obtain extents (Default, Union of inputs, Intersection of inputs, As specified below, and ...
atv5150's user avatar
  • 63
1 vote
0 answers
113 views

I am doing a task using the ArcPy module in ArcGIS Pro. The task is to Clip a polygon feature class with another polygon feature class and return the remaining polygons as a new feature class. I have ...
Noor rahman Liqa's user avatar
0 votes
1 answer
109 views

I am new to Python. I'm creating a Script Tool in 10.8.2 that generates polygons from Create Fishnet of 1 deg x 1 deg and a new field GEOCELL. I need to update field GEOCELL with the lower left corner ...
atv5150's user avatar
  • 63
1 vote
1 answer
218 views

I built a model in ArcGIS Desktop 10.8.1 and want to implement a script tool at the end (inside the model). All elements are using relative paths and %SCRATCHWORKSPACE%\ in the file paths (as ...
geosoldier72's user avatar
0 votes
0 answers
203 views

I'm a beginner in Python, and I am trying to write code that receives a list of TIFFs and shapefiles from an input folder. The objective is: Do a clip to a raster using the Extract By Mask and if the ...
brubis's user avatar
  • 139
3 votes
1 answer
1k views

I have been given the task of taking a script that was made by someone who has left and altering where it saves the files. This is originally a simple folder system but we are moving over to file ...
Tom Piggott's user avatar
1 vote
1 answer
412 views

I am wanting to create a ArcPy Tool Script that will join a point file to multiple polygons. Ideally, the point file (input_fc) would be a parameter so it can be interchangeable. Then the polygons ...
Tyler's user avatar
  • 11
-1 votes
2 answers
411 views

How do I add some text in the section "Tool help" in a Script tool? I leave a screenshot in case there are doubts about what I mean:
MrShaggy87's user avatar
0 votes
0 answers
268 views

I am trying to create a geoprocessing tool in ArcMap by way of Python that will accept multiple inputs (points, lines, and polygons) buffer them based on user input, and then take the results and ...
Anorak_TX's user avatar
1 vote
0 answers
52 views

I am working on a script that automates the following process: from coordinates in excel spreadsheet to a map in mxd or kmz. Because the set of coordinates are in two different zones, I have to ...
MrShaggy87's user avatar
0 votes
0 answers
460 views

I am converting a stand-alone script to a ArcGIS Pro custom script tool. When I run the script, everything runs according to plan, however I get an error when I run it as a tool. AttributeError: ...
ENIAC-6's user avatar
  • 936
3 votes
1 answer
191 views

I have ArcMap 10.7.1 and I have created a Python script tool and tool dialog to run on it. I want to set a default value for one of my inputs on the tool dialog and have it be a relative path to a ...
Ellie 's user avatar
  • 69
1 vote
2 answers
143 views

I'm working in Pycharm Python IDLE under ArcPy, to later work on setting up a toolbox in ArcGIS Desktop 10.7. I have a large script running in Python that works fine without parameters. Now, I want to ...
isidrop's user avatar
  • 66
0 votes
1 answer
538 views

I am trying to get my first python/arcpy script going, but I am stuck with implementing it into ArcGIS Pro. If my script is running inside the ArcGIS Pro Python-Window everything is executed well and ...
jonsken's user avatar
  • 99
0 votes
0 answers
122 views

This is my code which works only with the one raster image. But I need to create the tool that converts the multiple raster to vector in loop with arcpy. import arcpy from arcpy.sa import * arcpy.env....
harini ravi's user avatar
1 vote
1 answer
152 views

I am trying to figure out how to update feature attributes by user input parameters (GetParameterAsText). Current script the user inputs a arcpy.GetParameterAsText(can be multiple) then there is a ...
2Quiker's user avatar
  • 11

1
2 3 4 5
10