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
0
votes
1answer
26 views

ArcPy scripts input/output [closed]

I have an ArcPy script, which I use with ArcGIS Pro. I use one feature class as input_feature, do some calculations and write results in another feature class (output_feature). Is it possible to use ...
2
votes
2answers
66 views

Is it possible to check the z factor of a hillshade in the layer properties in QGIS?

I'm working with QGIS 3.18 and I want to compare the visual performance of different hillshade layers. For one that I already have I wanted to chek the building parameters, specially the z-factor but ...
3
votes
1answer
39 views

Using shortestpathpointtopoint tool with PyQGIS

I am a total beginner with Python and programming in GIS in general. I have point data and I want to compare in which month people walked the longest distance. It is a relative large dataset and I ...
0
votes
0answers
26 views

ArcPy TopoToRaster parameter settings

I'd like to create a script tool to create Topo DEM with TopoToRaster, but the parameters are not valid. I tried using the help: https://desktop.arcgis.com/en/arcmap/10.6/tools/spatial-analyst-toolbox/...
0
votes
1answer
38 views

PyQGIS: Add user input as parameter/expression in Raster Calculator

I want to use Raster Calculator in my Python script in QGIS. The expression is easy - I create new raster with two values (0,1) where I get 1 if pixel value is higher than certain threshold ("A &...
3
votes
1answer
93 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
27 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
141 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
1answer
49 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
34 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
52 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
1answer
105 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
24 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
35 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
34 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
14 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
98 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
28 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
1k 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
24 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
99 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
43 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 ...
0
votes
1answer
185 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
18 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
57 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
37 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
95 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
53 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
363 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
67 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
41 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
34 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
101 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
51 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
45 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
57 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
126 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
35 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
133 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
223 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
26 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
88 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
427 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
20 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 ...
4
votes
1answer
337 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 ...

1
2 3 4 5
7