Stack Exchange Network

Stack Exchange network consists of 175 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
38 views

Using user input vs GetParameter in ArcPy? [on hold]

I successfully wrote a script tool in Python 2.7 that utilizes GetParameterAsText but I keep seeing tutorials about input and rawinput. What is the difference and in what scenarios would input be ...
3
votes
1answer
36 views

Creating custom CRS from existing CRS EPSG:22780?

I am currently trying to figure out how to create a custom CRS in QGIS based on Deir ez Zor / Levant Stereographic (EPSG:22780). For this I am working with a map which shows both the EPSG:22780 ...
0
votes
0answers
14 views

Determining when next Ephemeris update is scheduled?

I am retrieving precise ephemeris data from an open online service. They claim to be updating the ephemeris of the satellites every 3 hours as the parameters are broadcasted from the satellites. How ...
0
votes
1answer
24 views

Choosing standard parallels / central meridian

I have to choose a equal area projection for the country of Columbia and modify the central meridian and two standard parallels. I am using the South America Albers Equal Area conic projection. I ...
1
vote
2answers
56 views

Taking parameters from users in ArcPy via IDLE?

I wonder if we can use arcpy.GetParameterAsText(0) in Python IDLE to get a parameter from a user? I am using ArcGIS Desktop 10.4 and Python 2.7.10 that comes with ArcGIS. Actually I want to know how ...
1
vote
1answer
18 views

ArcGIS Pro geoprocessing tool parameters - default settings

I would like to set my ArcGIS Pro geoprocessing tool parameters to a default value for repeated routine update cycles. The primary tools I'm using are "Create Vector Tile Package" and "Create Mobile ...
1
vote
0answers
39 views

ArcPy Script Tool multi-value re-order buttons

I'm trying to set the values of one control (Multi-value, data type: string ) to another parameter control (Multi-value, data type: "any value" which produces a drop down with grid for items entered ...
0
votes
2answers
47 views

Populate SQL Expression in Toolbox based on hard coded parameter [closed]

I have an ArcGIS toolbox script that applies a user-defined definition query to multiple layers within the current MXD. The only user variable currently required is the definition query itself, which ...
0
votes
1answer
46 views

Problem with if-statement and whereClause format

I have a program which should count the number of a feature class or the length of a feature class depending on the geometry of the input feature class. This part is working. There are two parameter-...
3
votes
0answers
106 views

Orfeo mshift segmentation asks for condition

I'm trying to run a segmentation using the mean shift. I leave all the parameters as default, but when I run it, it says "Wrong or missing parameter value: Condition". Condition is not a parameter for ...
0
votes
0answers
24 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
67 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
35 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
47 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
34 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
51 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
1answer
139 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
47 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
39 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
vote
1answer
28 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
70 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
86 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
34 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
149 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
25 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
61 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
61 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
82 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
48 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
194 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
31 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
65 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
380 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
60 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
43 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
117 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
145 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 ...
5
votes
1answer
301 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
12 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
181 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
284 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
115 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
53 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
64 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
83 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 ...
1
vote
1answer
157 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
46 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 ...
1
vote
1answer
130 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
66 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 = ...
1
vote
1answer
187 views

Using output parameters as input parameters in Python Script Tools?

I created a script tool in ArcMap 10.5. How do I set an output parameter from a tool in the script as an input parameter in another tool at a later point in the same script? Like: buffout = arcpy....