Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [parameters]

Parameters are a type of variable used in a subroutine to refer to the data provided as input to the subroutine.

0
votes
0answers
13 views

Selecting values with date-format by using SelectLayerByAttribute_management with input Parameter

I am working on a Tool which selects records depending on the input value. Works fine, till I want to select date-records. I used def buildWhereClause(self, table, field, value): # Add DBMS-...
2
votes
2answers
42 views

Selecting all values with <Null> by using SelectLayerByAttribute_management with input Parameter

I am trying to select all values with Null by using the SelectLayerByAttribute_management. But the Fieldname in the where-clause is alterable by using the input-parameter. That is what i tried: if ...
0
votes
1answer
23 views

Using input parameters to select layer by attribute

I am trying to create a Python-Toolbox with following Tool: inputFeature: A User has to load a Feature inputField: Then he has to to select a field from the Input Feature inputValue: At the end ...
0
votes
1answer
14 views

Earth Engine create user defined function with default parameters

I am creating a user based function that I will save in my repository for re-use later. But I'm facing a problem with putting default values in my parameters. var myFunction = function(number, power ...
1
vote
1answer
27 views

Creating tfb file in Python Toolbox?

What tool does: Simply creates tbf file from raster extent. What is the problem: I ran toolbox in ArcMap 10.5.1 and ArcGIS Pro 2.2.4. When I run it as standalone script it is working just fine. I ...
2
votes
1answer
25 views

Creating Drop Down List of Layers for ModelBuilder Tool?

In ModelBuilder I require the user select 1 of 5 feature class layers as the initial feature class to run the rest of the model on. The selected layer is to be then fed into a clipping tool as the ...
1
vote
0answers
45 views

Choosing parameters for SAGA Wetness Index?

I've been working with SAGA GIS to calculate the Topographic Wetness Index of an alpine catchment. I am using the tool Terrain analysis > Hydrology > SAGA Wetness Index because, compared to ...
2
votes
1answer
36 views

Copying feature classes from gdb to different folder locations in Python?

I am very new to Python, and I'm trying to create a function where I'm copying over feature classes from a gdb to different folder locations as shapefiles. The script needs to be reading from a ...
0
votes
1answer
16 views

Asking user to select file in Python Script tool using parameter?

In a custom toolbox you can make a parameter and ask user for input where he can type something and used as arcpy.GetParameterAsText(0) in the script in the toolbox. This is good if you want to use ...
-1
votes
0answers
18 views

No output even though standalone script works

I am attempting to create a standalone python script that will make a service area layer, add locations to this layer, than solve the network analyst problem. So far this is my code: import arcpy ...
1
vote
1answer
22 views

How to Load an Input of MultiValue Parameter Based on First Input Select

I am trying to create a Python Toolbox and I need to load some chekboxes to a parameter (param2) after selecting a value in previous parameter (param1). As you can see I have name of states in param1 ...
2
votes
0answers
61 views

Pulkovo Transformation parameters in QGIS 2.18

I'd like to use a 7-Parameter transformation between Pulkovo Geodetic CRS (EPSG 4178) and ETRS89 Geodetic CRS (EPSG 4258) in QGIS. There are different sets of transformation parameters for this task. ...
1
vote
1answer
54 views

GPSQLExpression - python toolbox

I am relatively new to python and I am trying to build a tool within python toolbox with GPSQLExpression as parameter. I am having trouble with populating its field and value list. Below is part of ...
0
votes
2answers
28 views

How to Prevent Final (Unnecessary) Selection Box in Script Tool Input Parameters via Validation Script?

Using Arc 10.2.2. My script tool's interface has its first parameter populated by the following snippet of validation script: def initializeParameters(self): # Source Folder dir_f = r'Q:\...
0
votes
1answer
59 views

Python script parameters for Integer not working

I am using a Python library called arcpy_metadata that uses 2 datatype called max_scale and min_scale that take integers: My code for that is just: import arcpy, arcpy_metadata as md .... min_scale ...
1
vote
1answer
24 views

How can I apply the arcpy.Rename_managment as parameter for each feature class in a loop?

I have 3 Feature Classes in a gdb. I want to create a script tool to rename each Featureclass and get each newname as parameter so we just have to type the newname we want. The original name has to ...
0
votes
1answer
52 views

Output shapefile data type in Arcpy

I have to reproject a shapefile's coordinate system. To do that I am using Arcpy and I want to get an output to use it as input in other tool (in Model Builder). Now I get an output, but I cannot use ...
0
votes
1answer
41 views

Difficulty using variables as input parameters for arcpy.Intersect_analysis

I have 2 variables created from a previous geoprocesses: fc = arcpy.JSONToFeatures_conversion("cslf.json", os.path.join("cslf.gdb", "cslf")) selectFeatures = arcpy.CopyFeatures_management(select, "C:\...
0
votes
1answer
41 views

Dataset '{}' does not exist or is not supported in arcpy

I am trying to insert some variable into a simple arcpy call using .format(var1, var2) as I would in a string. I am new to using Python 3.6, so maybe there's been some change in how this is done. When ...
2
votes
1answer
39 views

Calculating field on if-else-condition checking input parameters for <Null>?

I want to calculate a field depending on 3 input string parameters. Two of them can contain Null-values. My old VB expression was not able to work with Null-values, so the script stopped. Now I want ...
1
vote
0answers
133 views

pass selected value from drop down list in updateParameters(self) as input to python script

I managed to create two drop down lists using the validation code where an user can select the first parameter from a list and get another filtered list for the second parameter. However, I am ...
0
votes
0answers
26 views

Enabling a parameter in a field map in a Python script

I am creating a customized version of the Find Identical tool in Python. The script works just fine, but there's one thing that I can't seem to figure out. In the standard ESRI Find Identical tool, ...
0
votes
1answer
40 views

How to use fields mapper in qgis modeler?

I am building a modeler in QGIS 3.2.1, I want to use Refactor fields tool to change the name of a fixed field (fid to org_fid),This tool accepts a Fields mapping. I also noticed that there is a Fields ...
1
vote
2answers
184 views

Select Layer By Attribute Python Script Tool?

I'm trying to script another Select by Attributes tool. I want to be able to find a specific building using a field and zoom in to the location. However, my tool needs to allow a user to input any ...
1
vote
1answer
36 views

Using same layer for multiple tools in modelbuilder

I'm using modelbuilder to do some basic tasks (clipping, dissolving, etc) on several layers related to land cover and land use within a certain watershed. The way I have the model set up now, the ...
2
votes
1answer
37 views

How can I adopt updated qgis\python\plugins\processing\algs\saga\description txt files?

I have one question: How can I adopt updated qgis\python\plugins\processing\algs\saga\description txt files? The rest of this text is "enough detail to identify an adequate answer". I will try to ...
0
votes
0answers
112 views

Why is Loop in Python Script Tool Validation only Looping Once?

My Python Script tool (ArcGIS Desktop 10.2) has two getParameterAsText inputs. The first parameter is populated by the initializeParameters(self) module in the validation script which selects all ...
1
vote
1answer
70 views

Parameter Data Type to Accept Both GDB or Feature Dataset

I would like the parameters in my script to accept both gdb workspaces or feature datasets. I have tried both "DEWorkspace" and "DEFeatureDataset", but both of these accept either gdb or feature ...
1
vote
0answers
55 views

Changing parameter values according to other parameter choice in Processing script using QGIS 3?

I couldn't find anything about this problem. Suppose to have the first parameters in a Processing script defined as an Enum: self.addParameter( QgsProcessingParameterEnum( ...
0
votes
1answer
11 views

Choosing Data Type of signature file for parameter in Python Script Tool for Maximum Likelihood Classification?

I am working on a script tool for a maximum likelihood classification and I would like to set the signature file as parameter. What data type do I have to choose in the "Add Script" dialog box in ...
1
vote
0answers
146 views

QGIS 3: saga algorithm in console

I'm trying to use the saga algorithm 'quadtree structure to polygon' (with points to get polygons), in the python console. But I think I'm not able to set the parameters correctly. When I call the ...
1
vote
1answer
163 views

Create Filter Parameter in Python Script Tool from Unique Set of Values in Field

I currently have a python script tool that reads in a feature class and (among other processes) subsets the feature class based on a value in one field, 'REGION'. Instead of having all subsets created,...
1
vote
1answer
69 views

Connecting Python Script tool as Input in ModelBuilder?

I'm trying to connect my Python Script (it's already in my toolbox and working) with the rest of my Model. So the Script should be my input, but it is not working. I don't know why. This is how the ...
1
vote
1answer
42 views

Forcing Python Script Tool Parameter Input Field to Begin at Specific Folder?

I'm setting up a Script Tool (Arc 10.2.2) where the first parameter will be a CSV file chosen by the user, always from the same folder. When the user clicks the first parameter's windows navigator ...
1
vote
1answer
50 views

'Number' input parameter can not be used by algorithms in Graphic Modeler

Does anybody knows why I use the Graphical Modeler in QGIS 3.0, the 'Number' input parameter can not be used by algorithms, I have tried the algorithms of 'Buffer', 'create grid' and others, but ...
0
votes
0answers
38 views

Creating script tool for definition query using user input

I have a map document with about 10 layers that I would like to create a query definition script tool to use that takes a user input as a parameter and then executes the tool. The script looks like ...
0
votes
0answers
59 views

parameters for glsm.mcmc function in geoRglm package in R

I am trying to implement the glsm.mcmc function in the geoRglm function in R. I am modeling forest health as a binomial response (healthy, diseased) using a several climate, and topography covariates. ...
1
vote
1answer
105 views

Setting a string Output parameter from the python script tool in ArcGIS

import sys, arcpy arcpy.env.workspace = "C:\Scratch" Environment_Index = arcpy.GetParameterAsText(0) Measure = arcpy.GetParameterAsText(1) if Environment_Index == "Percentage of Environmental ...
1
vote
0answers
30 views

Translation Vector effect in the 2D transformation of GPS Network into a local system

For a project of Bridge monitoring using GPS, (X,Y) GPS measurements have taken and they must be transformed into a local system (x,y) to determine the deformation as shown in the sample picture: For ...
0
votes
1answer
84 views

arcpy.SetParameterAsText fails in Python script tool

I am trying to create a derived output parameter for a Python script tool so that the output will show in a model (I want to use the output folder as an input for another tool). I want this output to ...
0
votes
1answer
51 views

ApplySymbologyFromLayer_management gives error saying it can accept only two arguments?

I have a layer file and I need to apply unique value categories to that layer based on the field present in attribute table of that layer I tried using: input = arcpy.GetParameterAsText(0) output = ...
0
votes
1answer
108 views

Using a Python Script Input parameter as an output

I have a Python script that takes several input parameters, one of which is the name of an output folder which will hold processed data (outFolder). I want to be able to access that outFolder variable ...
3
votes
1answer
108 views

Setting GroundFilter parameters for low density point clouds?

I'd like to use the function GroundFilter on my dataset. However, the manual says that the default values of the parameters used by this function (g parameter, w parameter) are related to a high ...
0
votes
1answer
79 views

Python Toolbox Illegal List value

I updating one of the parameters in my ArcGIS Python toolbox with data from SQL Server, but am getting an illegal list value error. I have removed a lot of the 'special' characters, but am thinking ...
1
vote
1answer
341 views

Use Field List from Input Feature Class as Parameter in ArcGIS ModelBuilder

I set up a model that shall use an attribute field from a given feature class as a parameter. The feature class is a model parameter by itself and I want the user to choose the feature class first and ...
0
votes
1answer
119 views

Accessing composite data type parameter when validating parameters in Python Toolbox?

I have a simple tool with two parameters: a boolean (just to tick or untick it) a composite data (where I can choose an output location - either a folder or a feature dataset). I am unable to access ...
2
votes
1answer
59 views

Deriving output filename from another parameter in Python Script Tool?

In an ArcGIS Toolbox script tool, how can I get the default value for one parameter to be derived from the value of another parameter? GPX To Features does this, but I haven't been able to figure ...
1
vote
1answer
68 views

List layers in dataframe as parameters in script validation

I'm trying to do some script validation in a tool I wrote. The user first selects a dataframe from the current mxd. This parameter works fine. When the user makes this selection, the next parameter, a ...
1
vote
0answers
30 views

How can I set up a parameter as an attribute drop down menu on a script tool? [duplicate]

I have built a script tool in ArcGIS Pro and I would like to set up one parameter as a drop down menu (the options in the drop down menu should be all the attribute values of one of the map layers). ...
1
vote
1answer
50 views

Using less parameters for Python script tool?

I am looking to create a user-input script for finding surrounding features of a given point. However, the parameters for it are very sensitive and I would like for it not to have to be such a process ...