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
-1 votes
0 answers
21 views

"Agent Analyst" tool has no parameters [closed]

I installed the agent analyst extension based on the book's instructions on this link: http://resources.arcgis.com/en/help/agent-analyst/ Then, I couldn't proceed because the tool window shows with a ...
user avatar
1 vote
1 answer
47 views

How to set Folder as Parameter in PyQGIS script?

I know how to set the parameter of a folder but, not sure if I am using the right class.   I want a user to select a folder which has items inside it, to be used for processing.   When I use self....
user avatar
  • 35
0 votes
0 answers
30 views

Registering raster layers in Amazon RDS PostgreSQL using enable_out_db parameter

I have an AWS RDS PostgreSQL instance (v.11) that I'm currently storing vector data in. I also have a lot of raster layers in AWS S3 that are COG geotiffs. I'd like to register them in the database to ...
user avatar
1 vote
1 answer
41 views

Python Toolbox updateMessages - Remember message from an earlier validation?

Is there a way to retain Warning or Error messages for parameters between tool validation calls? In my example below, I want to check the input feature class for something, and add a warning message. ...
user avatar
  • 300
0 votes
0 answers
8 views

Apply parameters to ecn.tiles.virtualearth.n

I am using the virtualearth tilesystem found at http://ecn.t1.tiles.virtualearth.net/tiles/h{quadkey}.jpeg?g=131 for a project. However, while this gives satisfactory imagery, I want to get the ...
user avatar
1 vote
1 answer
27 views

Show inline substitution value as tool parameter

I am trying to name an output using inline variable substitution. I first use the calculate value utility to obtain the string I want (its name is Date in the model). I set this as a precondition so ...
user avatar
  • 495
0 votes
1 answer
51 views

Using Intersect with arcpy.GetParameterAsText() and ArcMap

I'm trying to use the intersect tool, with one of my inputs being from a get parameter as text. As I don't have an advanced licence I have to iterate through the list to run the intersect on each item ...
user avatar
0 votes
0 answers
24 views

Multiple functions linked to parameter in ArcPy Python Toolbox

I would like to link some parameters directly to its function, so when i call a .map() function it could apply for several images in the collection. def __init__(self): """...
user avatar
0 votes
0 answers
21 views

Element.get: Parameter 'object' is required

I have the following issue when working with MODIS Fpar ImageCollection: import ee import os import sys ee.Authenticate() ee.Initialize() #import config1 as config MODIS_LAI = ee.ImageCollection(&...
user avatar
  • 1
2 votes
1 answer
86 views

ArcGIS Python Toolbox - Reordering parameters and reference by name instead of index

Is there a way to reference parameters in an ArcGIS Pro Python Toolbox by name, instead of by numeric index / positional argument? I built a data entry tool in a Python Toolbox that has over 100 ...
user avatar
  • 300
1 vote
0 answers
25 views

ArcCatalog - Script - Parameter - Choose a previous one

I am working on a script that automates the following process: from coordinates in excel spreadsheet to a map in mxd or kmz. Because the set of coordinates are in two different zones, I have to ...
user avatar
1 vote
1 answer
87 views

Restricting one parameter value list against another's chosen value in Python Toolbox using ArcPy with ArcGIS Pro

I have a script loaded as a toolbox into ArcGIS Pro. It has two multi-value string parameters. Is there a way to restrict the second parameter's list against the first? For example, if a user picks &...
user avatar
3 votes
1 answer
58 views

ArcMap tool dialog says relative paths are incorrect

I have ArcMap 10.7.1 and I have created a Python script tool and tool dialog to run on it. I want to set a default value for one of my inputs on the tool dialog and have it be a relative path to a ...
user avatar
  • 69
3 votes
1 answer
55 views

Getting NameError on GetParameterAsText

I am trying to write a simple script that get input from a variable in ModelBuilder and use it in a Python script to "zoom" on a selected features in layout. Here is the script and the error:...
user avatar
  • 37
1 vote
2 answers
60 views

Getting fields from layer calculated during process (output layer) for later calculate field that is parameterized using ArcPy with ArcMap

I'm working in Pycharm Python IDLE under ArcPy, to later work on setting up a toolbox in ArcGIS Desktop 10.7. I have a large script running in Python that works fine without parameters. Now, I want to ...
user avatar
  • 68
0 votes
1 answer
146 views

Run arcpy-script as geoprocessing tool

I am trying to get my first python/arcpy script going, but I am stuck with implementing it into ArcGIS Pro. If my script is running inside the ArcGIS Pro Python-Window everything is executed well and ...
user avatar
  • 89
1 vote
1 answer
72 views

Increasing networkx tolerance when attempting to find end nodes

I have a waterline dataset (.shp) where I have been using Shortest Path (Point to Point) analysis in QGIS 3.16. Using QGIS, I have found that if I do not increase the Topology tolerance parameter in ...
user avatar
  • 311
0 votes
1 answer
108 views

Accessing built in coordinate systems from ArcGIS Pro Python Toolbox tool

I am attempting to create a custom ArcGIS Pro Python Toolbox tool and some of the geoprocessing tools I use run slowly or not at all if the input DEM or environment is not projected first. I would ...
user avatar
  • 3
1 vote
1 answer
234 views

Creating secondary user parameter in FME that is based on input from first parameter

I would like to create a user parameter that can be completed based on the inputs of a previous parameter. I'm wondering if this is possible because the dataset is unknown until I use a user parameter ...
user avatar
  • 308
0 votes
1 answer
46 views

adjust visualization parameters as parametric values

i want to define visualization parameters for maps as codes in main coding space not as import record for this, i want to calculate the min and max values of image and set them in visualization ...
user avatar
  • 97
1 vote
1 answer
68 views

Update features based on multiple GetParameterAsText

I am trying to figure out how to update feature attributes by user input parameters (GetParameterAsText). Current script the user inputs a arcpy.GetParameterAsText(can be multiple) then there is a ...
user avatar
1 vote
1 answer
33 views

Parameters - geographic transformation - ArcGIS

Is there a way to know what parameters are set for any geographic transformation in ArcGIS?
user avatar
0 votes
0 answers
21 views

Making output raster parameter in ModelBuilder using ArcGIS Pro

I am using the DEM reconditioning tool in ModelBuilder. For the field "Output AGREE DEM Raster" I cannot find a "variable" to use. I have tried creating a "workspace" ...
user avatar
  • 109
0 votes
1 answer
68 views

Using ArcPy to write Python script with open variables for ModelBuilder of ArcMap

I have the following script: import arcpy from arcpy import mapping arcpy.env.workspace = r"C:\GIS\Test" mxd = arcpy.mapping.MapDocument(r"C:\GIS\Test\Mxd_to_shape.mxd") df = ...
user avatar
1 vote
0 answers
133 views

Autocomplete for input parameters in a Python toolbox for ArcMap (or ArcGIS Pro)

Is there a way to get word completion to work for string parameter inputs in a Python toolbox? We are working with very long value lists (a few thousand entries per list) and scrolling the drop-down ...
user avatar
  • 11
1 vote
0 answers
28 views

Parameterize script that serves as sub-tool of ModelBuilder of ArcMap

The following script is used to place shapes inside a .mxd project: import arcpy from arcpy import mapping arcpy.env.workspace = r"C:\GIS\Test" mxd = arcpy.mapping.MapDocument(r"C:\GIS\...
user avatar
0 votes
0 answers
113 views

ArcGIS Enterprise Web AppBuilder: groupfilter URL parameter syntax

I am following the steps described in the ESRI online documentation to obtain a web app that has a URL with parameters used by the groupfilter widget. [Web Appbuilder @ArcGIS Enterprise 10.8.1] The ...
user avatar
  • 1,151
3 votes
2 answers
305 views

Exporting selected layouts in ArcGIS Pro

I would like to export selected layouts from an ArcGIS project. The error I keep receiving is AttributeError: ValueObject: Get attribute exportToPDF does not exist Is there something different about ...
user avatar
0 votes
0 answers
144 views

Creating user input parameter inside selectbyattribute query in ArcPy

I'm new to ArcPy and Python in general. I'm experimenting with Python within ArcGIS Pro, but I've encountered an issue, here is the code: import arcpy arcpy.env.workspace = "C:/Users/Nastgardaren/...
user avatar
3 votes
1 answer
80 views

Getting new parameter after Python Toolbox gets executed

I am trying to build a toolbox which would first take some inputs and execute some code and return me results. After the results I would like toolbox to ask me for new parameters so I can use these ...
user avatar
2 votes
2 answers
375 views

Grouping Parameters in Python Toolbox of ArcGIS Pro

I am making a Python Toolbox for ArcGIS Pro. The main tool in the toolbox needs to have 5 radio buttons: Users can select any number of options (from 0 to 5). Is it possible to group or cluster the ...
user avatar
  • 1,039
-3 votes
1 answer
51 views

Data Type that can be used to select Desktop as a folder in ArcGIS Python Toolbox (ArcGIS Desktop: ArcMap 10.6)

I have created a Python Toolbox. While setting up my tool, in the parameters I am trying to find a data type to use in order to select Desktop as the location to create a folder. I need to find a ...
user avatar
0 votes
1 answer
89 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 ...
user avatar
  • 49
2 votes
2 answers
90 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 ...
user avatar
4 votes
1 answer
97 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 ...
user avatar
0 votes
0 answers
57 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/...
user avatar
  • 79
0 votes
1 answer
232 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 &...
user avatar
  • 355
3 votes
1 answer
282 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 ...
user avatar
0 votes
2 answers
39 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 ...
user avatar
  • 63
1 vote
1 answer
41 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 ...
user avatar
  • 257
2 votes
2 answers
342 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://...
user avatar
0 votes
1 answer
88 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 ...
user avatar
-2 votes
1 answer
100 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, ...
user avatar
  • 19
2 votes
1 answer
107 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 ...
user avatar
0 votes
1 answer
556 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=...
user avatar
1 vote
0 answers
69 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 ...
user avatar
  • 79
0 votes
0 answers
151 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 ...
user avatar
1 vote
1 answer
91 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 ...
user avatar
  • 2,241
2 votes
1 answer
83 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 ...
user avatar
  • 113
2 votes
1 answer
421 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 ...
user avatar
  • 431

1
2 3 4 5
7