Questions tagged [parameters]

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

Filter by
Sorted by
Tagged with
3
votes
1answer
67 views

How buffering works in GeoPandas?

I try to add a buffer on a set of lines via the buffer attribute of geopandas. But by testing on a simple case (see code below) I realize that the size of the buffer is not kept according to the ...
0
votes
0answers
16 views

Multiple Reclassifications by a variable

I am using Model Builder to reclassify a DEM raster (the input raster is a parameter and may vary in range of elevations). (The model then goes on to extract the highest point in each patch above a ...
0
votes
1answer
19 views

How can I add a custom-named output to TOC which is a managed data in ModelBuilder

I'm trying to make a model using the ModelBuilder. Everything is working properly, except the fact that I want to add the outputs to TOC with the specific layer name. The problem is that in order to ...
0
votes
0answers
20 views

Make one of the Parameters an “Optional Parameter” in model - - ModelBuilder (ArcGIS Pro v2.5.0)

It is possible that there are several workarounds in ArcPy or scripts but I need this to work in Modelbuilder. Simply I want the model to run with the populated and un-populated parameter fields (i....
0
votes
0answers
22 views

Not Inputting values for certain parameters and working for certain parameters in Arcgis 10.2

I am running Python code in ArcGIS Toolbox, inputting 13 parameters. I have used GetParameterAsText(index) function to do it. However it takes values up to 8 parameters properly and the 13th parameter....
0
votes
0answers
35 views

GetParameterAsText if statement

In the code below the user picks from one of the following "GetParameterAsText" values: Tampa, Orlando, Denver, Cosprings # Variables/Parameters market = arcpy.GetParameterAsText(0) ...
1
vote
1answer
20 views

How to export ArcMap model parameters to an Excel file?

I have a model where the user inserts different model parameters like "Name", "Elevation", "Threshold A", "Threshold B" and so on. Based on this, features get selected, saved to .xls files where they ...
0
votes
0answers
24 views

How to pass and replace a parameter to a TileServer GL styling JSON-file

I know it is a very specific question, but I am wondering if it's possible to pass a (key-)parameter like ...?key=1234 to a styling file which will be consumed by the TileServer GL? My styling file ...
1
vote
0answers
12 views

Boolean parameter redirect in a Model

For a very basic situation where you have a Boolean parameter in a model and you want to specify if value="Yes" go-to algorithm A in the model if value="No" go-to to algorithm B, for example, how can ...
0
votes
0answers
28 views

Allow null values from Value Table filter list in Python toolbox parameter

I'm setting up parameters in a Python Toolbox and have a Value Table with three columns. Two of the columns have value lists for the user to pick from. I would like for the user to be able to choose ...
-1
votes
1answer
25 views

COPERNICUS_S2 ImageCollection Visualization parameters

I want to show you the ImageCollection from sentinel-2 that contains 12 images. However, I am not sure how to determine the Visualization parameters of ImageCollection. Can someone can give me ...
1
vote
1answer
29 views

Python Toolbox Value Table Parameter - getting separate outputs for different column inputs

I'm using a Value Table as a parameter for a Python toolbox so the user can input two related attributes. I'm struggling with how to use the values the user inputs as separate values/parameters. The ...
2
votes
1answer
34 views

Is there a text box parameter type for Python Toolboxes?

The Calculate Field tool has a text box for code. Is there a parameter type for Python Toolboxes for this type? There's String but it's just one row of text. in_str = arcpy.Parameter( ...
0
votes
1answer
98 views

Defining parameters for Python Toolbox tool in ArcGIS Pro

I have been posting similar questions recently, but I found a template code for a Python toolbox and I would like more help. I am trying to create a tool in ArcGIS Pro that takes parameters from ...
2
votes
0answers
22 views

Variable type for Value Table parameter in Modelbuilder?

I've created a python tool with a multivalue input box (parameter type: GPValueTable). The box is small and will contain long strings. I'm hoping to be able to add values to the input box with ...
1
vote
0answers
37 views

Creating tool in ArcGIS Pro that takes parameters from users (e.g. geodatabase filename) and shows report on screen

Yesterday, I got a help from this website and wrote the following code to create a new script with a hard-coded geodatabase filename, that lists the feature classes it contains to the console. ...
1
vote
1answer
29 views

Determining invalid parameters for geoprocessing service

I have a loop that feeds the parameters to execute syncronymous geoprocessing services. When the loop runs it gives me the results when it receives valid params, and I get a generic error for the ...
1
vote
0answers
41 views

Using Python dictionary as parameter and variable in Python Toolbox tool of ArcPy [closed]

I'm building a feature class merging and comparing toolbox in arcpy, ArcGIS 10.7. I have a working command line utility with fixed featureclass values, and now I'm building this toolbox, I just copy ...
2
votes
0answers
36 views

Dealing with empty parameters in QGIS

I'm building a graphic modeler in QGIS. I need to model adding multiple fields/columns to a layer and then importing values from other fields/columns into those new fields. Example : Existing field ...
0
votes
1answer
44 views

Using IF statement to create 2 different output files in Python Script tool of ArcPy

I have a model which needs to only produce 1 final report but is dependent on whether a variable is provided.So there are 2 different flows following on from that selection Something like this, a ...
0
votes
1answer
33 views

Multi choice parameter data type in ArcMap Toolbox

I'm a beginner ArcMap user. I created a toolbox in ArcMap/mytoolboxes which will run an specific Python script from my hard drive. In my python script I need user to choose between 2 options. I want ...
2
votes
1answer
54 views

Parameter dependencies based on two datasets in Python toolbox

I am setting up the parameters in a Python toolbox. I have a parameter that I would like to list fields based on a user input feature class. I am wondering if it is possible to list fields based on ...
1
vote
1answer
28 views

Specifying grid width and height dimensions with ArcMap custom toolbox parameter

I am using I am writing a script to create a tool (in ArcMap 10.7.1) that involves overlaying an agricultural field with a specific grid size. I need the grid to contain a custom width and height of ...
1
vote
1answer
43 views

List fields in parameters from Fc list in script validation using arcpy in arcgis

I am trying to list fields from a feature class list in script tool validation. First user selects the data frame from the list then FC populates in next box and fields of the FC in next box. I have ...
0
votes
0answers
95 views

Getting polyline midpoint coordinates using ArcGIS REST API

I have an ArcGIS 10.7.1 feature service that integrates polyline GIS assets to a work order management system. In the work order management system, I want to retrieve the midpoint coordinates of the ...
1
vote
1answer
23 views

Defining one numeric variable by defining another string variable (via parameter selection)

I'm creating an ArcGIS tool that will allow users to figure out how much nitrogen that a field needs based on interpolated points (Kriging). I will have the following parameters: #numeric variables ...
2
votes
1answer
50 views

Add an attribute name as parameter - QGIS 3 modeler

I'd like make a model where I can change an attribute name to a predefined one using refact tool. How can I get that "attribute" by a parameter from a vectoral field ?
0
votes
0answers
20 views

Getting arcpy.GetParameterAsText to provide drop-down list for ArcGIS users [duplicate]

I'm creating an ArcGIS tool that will interpolate (using kriging) nutrient levels from soil test data, and will calculate the total amount of fertilizer per field that a customer will need to buy. ...
3
votes
2answers
137 views

What is the benefit of the arcpy function GetParameterAsText?

What is the benefit of the arcpy GetParameterAsText function? I know that its purpose is to return parameters as text but what is the real benefit?
1
vote
1answer
18 views

Variable parameters for input table and field name

I searched for others who've asked this question but I couldn't quite find one that matched what I'm trying to do. I want to make a model that aggregates three address point feature classes and ...
2
votes
1answer
125 views

Sort or add Rank within QGIS 3 model

I have the following function in order to add a sorting value to a layer: array_find( array_sort( array_agg("field")), "field") This works fine if I use it through the calculator within the ...
3
votes
2answers
116 views

Python Toolbox - Only update parameter when specific parameter changes

I'm creating a Python Toolbox. One input is a workspace and the second is a list of feature classes and tables. The list of feature classes and tables is generated once the workspace is input by the ...
3
votes
2answers
95 views

Adding parameters to SQL layers? [closed]

I have a SQL-Layer that is defined by the following statement: select b.id, b.description, b.is_event, geodesic_buffer(b.location_point, 3000) from bus_stop b where b.event_id = ...
0
votes
0answers
37 views

Seeking arcpy.SetParameterAsText equivalent in ModelBuilder?

I know it sounds weird, but I would need a tool made with ModelBuilder that output two parameters: a layer a message (a string) The constraint derives from the need to share it as a Geoprocessing ...
0
votes
1answer
31 views

Making dropdown in ArcMap tool where each item links to spreadsheet?

The script below imports a spreadsheet into ArcMap and generates a shapefile. Currently, I can use the ArcMap tool that interfaces with the script to navigate to the spreadsheet I want to import. This ...
2
votes
0answers
28 views

QGIS 3.4 Modeler gives error on non-required parameter?

I created a model which is asking to input 20 OPTIONAL parameters for vector layers. But when the user does not enter a value for any of the 20 parameters, QGIS returns an error. Traceback (most ...
2
votes
2answers
180 views

ArcGIS API for Python: Parameter Invalid - Item with the same key has already been added

I'm trying to update an ArcGIS Online (AGOL) feature layer using an updated local CSV file (the steps for this process are detailed in this Sample Notebook). I am using Jupyter Notebook to handle all ...
3
votes
1answer
65 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
1answer
143 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
118 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
50 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
63 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
65 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 ...
1
vote
1answer
54 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
1answer
160 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
32 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
93 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
79 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
343 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
49 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 ...

1
2 3 4 5 6