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

Capture coordinates of a rectangle drawn on the canvas

I am writing a process that will take parameters as input, and then process part of a raster layer. One (well, four) of the parameters should specify a rectangle on the canvas. Ideally the user should ...
0
votes
2answers
19 views

Is there a way to allow user to change just the beginning of a path name in a toolbox for several parameters at once?

I am altering someone else's Python code to create a GIS tool that everyone can use. Currently, they have about 20-30 feature classes with paths to them in their code. The problem is that the ...
1
vote
1answer
25 views

Making vertical spacing between parameters smaller on ArcGIS Script tool dialog

I would like to make space between parameters smaller in ArcGis Script tool. For example, in the image attached I would like to make the distance between two parameter Standard terrain and User ...
2
votes
2answers
56 views

GeoServer WMS Cascading how to define a custom parameter

I am attempting to configure our internal GeoServer to cascade an external WMS server. The external server has some custom properties which need to be passed when making a call to that WMS. http://...
0
votes
0answers
33 views

Defining Namibia Schwarzeck Projection Parameters in Custom CRS using QGIS

I am using QGIS 3.16. I would like to create a custom CRS using the following projection parameters: Namibia Schwarzeck Projection Parameters: Semi-major axis: 6 377 483.86500 Semi-minor axis: 6 ...
-2
votes
1answer
30 views

Extracting time series trend analysis parameters from kriging using ArcGIS (versus R)

A grad student has asked me a question about extracting trend parameters for a time series of data using ordinary kriging ArcGIS tools. I'm not an expert in the spatial statistics options of ArcGIS, ...
0
votes
1answer
37 views

Does QGIS support WMS/WCS Connections that use path variables?

With QGIS, I have added and configured WMS and WCS connections for parameter queries as per the applicable specifications and I am able to add the layers and view imagery. However, I have a need to ...
0
votes
0answers
59 views

The definition of “is not valid”

When I validate the proj4 parameters it says they are valid but when I press OK I get the above error message. My parameters are: +proj=tmerc +lat_0=0 +lon_0=-117 +k=1 +x_0=-64830 +y_0=-5264340 +ellps=...
1
vote
0answers
18 views

Defining neighborhood settings in Focal Statistics with Calculate Value using ModelBuilder

I am using ArcGIS Desktop 10.6 with Spatial Analyst. I use ModelBuilder, and I created a model with focal statistic. There are 2 different workflows now. calculate the radius value: This value ...
0
votes
0answers
21 views

How to get ArcPy parameter of type Folder shown in Textbox?

Writing an ArcPy toolbox for ArcGIS Pro I am having the issue that the declaration of the following code does give me a browse button and the associated textbox. However, using the browse button, and ...
1
vote
1answer
26 views

Using altered property in ArcGIS Toolbox Validator Class

I am trying to script some behaviour into the ArcGIS Toolbox validator class. Specifically, I am creating a dropdown parameter so the user can choose a predefined option and then a second parameter ...
2
votes
1answer
11 views

Changing order of Model Tool Parameters

Does anyone know how i can move my ModelBuilder label box around so my host rock age is the correct order (youngest to oldest?) See picture below. I.e Quaternary at the top, then Tertiary. I cannot ...
2
votes
1answer
59 views

Updating ValueTable parameter of ArcPy Python Toolbox tool

I have a shapefile and I want to calculate multiple fields using the GP ValueTable parameter. The script loads field names from a layer, then I should delete rows I don´t want to calculate and then I ...
0
votes
0answers
35 views

Chaining outputs in ArcPy standalone script

I am trying to create a standalone ArcPy script. I started by creating this in ModelBuilder and then I exported it as a Python script. This works perfectly in ModelBuilder but produces only an empty ...
1
vote
0answers
27 views

Model Builder prevent 'Add Field' In Multivalue Parameter

I made a Field Picker script to allow the user to select field names which are then used in another script for more processing with update and insert cursors. Is it possible to prevent them from ...
4
votes
1answer
551 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
18 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
22 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
58 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
24 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
40 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
22 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 ...
1
vote
1answer
98 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
16 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
46 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
31 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
62 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
41 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
244 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
37 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
39 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
31 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
79 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
45 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
42 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
94 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
31 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
90 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
168 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
25 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
73 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 ?
3
votes
2answers
220 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
19 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 ...
3
votes
1answer
240 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 ...
4
votes
2answers
234 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
112 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
40 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
35 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
31 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 ...

1
2 3 4 5
7