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

learn more… | top users | synonyms

0
votes
0answers
10 views

what is “param” exactly in filterToParams in OpenLayers?

I don't exactly get the way to use filterToParams in OpenLayers 2. I get the data via HTTP-Protocol, format gml, but when I check the params in firebug, it does not contain anything. So I've tried to ...
5
votes
1answer
62 views

Creating ArcPy scripting tool with dropdown box for sql expression choice

I am creating an ArcPy scripting tool to allow users to select a feature from a feature layer and then zoom to that selection. I have successfully created this tool and now am working on creating the ...
2
votes
1answer
27 views

ArcPy: Aggregate points using multiple aggregation distances and output names

I would like to be able to run a whole load of aggregate polygons with a variety of aggregation distances, using Arcpy. I have successfully done it using model builder, but specifically want to do it ...
1
vote
1answer
29 views

Value Table in Python Script not displayed correctly?

I am trying to implement a Python Script tool where I need a table to input shapefiles and corresponding names for new created fields. I found out that there is the Value Table provided by ArcGIS, ...
2
votes
1answer
26 views

QGIS graphical modeler: how to automatically enter parameters in r.drain.coordinate tool

i am carrying out a cost least path analysis and i am using QGIS. The processing tools i am using are: r.cost.full and then r.drain.coordinate Considering i have more than 1000 layer to process ...
2
votes
0answers
15 views

Display time param as decoration in WMS request

Is there a way to add dynamic text decoration via a geoserver layout.xml that reflects the &time param of a geoserver WMS request? I know from here how to display frame parameters as decorations ...
3
votes
0answers
67 views

How to calculate false easting/northing for Lambert Conformal Conic projection

I'm defining a new GRASS location using the Lambert Conformal Conic projection. My understanding is that the values for the standard parallels and central meridian are dependent on my area of ...
2
votes
0answers
32 views

SQL View- WMS Viewparams - parameter for table name [closed]

I've made a SQL view using parameteres. So, I did something like this: SELECT * FROM '%tablename_parameter%' The view is requesting data from a table by a parameter inserted from web page. The ...
0
votes
0answers
22 views

Creating Changing Drop down list in Validation

I am trying to make a changing dropdown menu from a value list I have set in my tool through validation. If I were to change one value in the script, the value list will only grab values that pertain ...
1
vote
1answer
80 views

Optional Parameter becoming required in ArcPy?

I would like to make a python script (.pyt) where i have 2 input parameters: If the first parameter (which is a boolean) is set TRUE, therefore it is checked, the 2nd parameter should become required ...
0
votes
2answers
75 views

Take URL Parameters including corner Coords in ArcGIS webmap and display polygon on launch

I have a list of corner coords for study areas in a sharepoint list. I used 'calculated field' to generate a url that launches our internal webmap in a new window and sets the extents as the ...
3
votes
1answer
64 views

Cannot pass python string outputs as inline variables in modelbuilder

I'm trying to pass a couple of strings from python as parameters in the extract by mask tool in modelbuilder. Unfortunately it doesn't recognize them. When I type them in the parameters it thinks I'm ...
0
votes
0answers
43 views

What data type is excel in Arcgis Add Script wizard?

When creating tool from a python script in ArcGIS, data type has to be chosen in Add Script wizard and one of my parameters is Excel and another one specific sheet whereas there can be more sheets in ...
3
votes
1answer
94 views

Adding date field to attribute table using QGIS processing modeler?

I want to add a date field to my output layers attribute table, using processing modeler. I want the Date field to be a parameter in my model, because I want to manually input the Date everytime I ...
4
votes
1answer
63 views

Error saving object from python script using GetParameterAsText

I have a script that takes in a line, and creates a certain polygon based on this. My code obtaining the input information is as follows: inFC = arcpy.GetParameterAsText(0) hasClearway = ...
3
votes
4answers
475 views

Get Parameter as Text and select layer by attribute

I have written a python script tool wherein a user specifies a feature class (e.g., Landuse) containing different attributes (e.g., parcel size, landcover etc.), name of the attribute field from which ...
1
vote
1answer
121 views

Using arcpy.GetParametersAsText() into Text file? [closed]

I've just started using Python for ArcMap. I'm trying out a script that works before I put arcpy.GetParameterAsText(0) into it. Does anybody know what I'm doing wrong? (I put the parameters on the ...
3
votes
1answer
56 views

How to create checkboxes to select multiple inputs?

I am working on a script (to publish as a geoprocessing service) that will take multiple feature layers and use them as inputs to the ExportCAD_Conversion tool. What I ultimately want is a set of ...
3
votes
2answers
178 views

Setting input parameter to be float for Python script tool?

I made a Python (2.7.8) script, where one of the parameters is height (float) and I wan to make tool in ArcGIS 10.3 now. However in data type list there is only double. If I input integer value into ...
3
votes
2answers
432 views

ArcGIS Python Script Tool Field Name Drop Down?

I have a python script that checks file path names for corresponding files in a drive location. All of the inputs were originally hard coded, and it works well enough: import arcpy import os ...
2
votes
1answer
85 views

How to properly handle a multi-column value table in an ArcGIS Python toolbox?

I am building a relatively simple python tool for ArcGIS 10.3 which will automate the process of generating summary statistics for multiple raster datasets, for polygons in a polygon dataset, using ...
0
votes
0answers
45 views

Creating multiple dropdown lists in Python script tool?

Can anyone tell me how to create drop down lists? I want 'Area Name Field' to be a list of fields from the shapefile selected in 'Area of Interest' and 'Name Value' to be a list of field values ...
1
vote
1answer
53 views

Datatype and filter for a SDE connection parameter in a Python toolbox?

I have a tool in a Python toolbox. As a parameter, I want to let the user select an existing (or possibly create a new) SDE connection. What value for datatype should I use for this? I have tried ...
2
votes
2answers
47 views

Setting Python Toolbox Parameter to None without making current selection value unselectable thereafter?

I'm making a python toolbox and it has an input parameter of type GPFeatureLayer. Let's call it my_param. In updateParameters when my_param.altered, its value is added to a value table. Then I'd ...
0
votes
0answers
97 views

JSF2Leaf - JSF page parameters to bean

I'm using jsf2leaf framework to draw trajectories between two markers, like example. I need to send two parameters (id of point) to search possible trajectories between both. At the moment the ...
0
votes
0answers
50 views

Publish postgis raster based on column value in geoserver

I have a postgis raster table with the following columns: rid, rast, year, plant I created a wms layer in geoserver pointing to the table and successfully serve out the raster when the table only has ...
1
vote
2answers
66 views

How to get and create featureclasses in Python toolboxes?

I'm writing my first python toolbox. I know there's a way to do this in batch processing, but for proof of concept I want to write this pyt tool to call the Clip tool and add the resulting ...
1
vote
2answers
75 views

Adding output parameter to Python script tool?

How do you add an output parameter in a python script in a toolbox?
2
votes
1answer
142 views

How to connect input parameter to the field calculator algorithm within the graphical modeler?

I am building a model in the graphical modeler of QGIS 2.8.1 Wien and I would like to give the option to the user to enter a number in the model with which a selected field will be multiplied, but I ...
-1
votes
1answer
116 views

How to read metadata file from R [closed]

How to read metadata file parameters( like sun elevation,REFLECTANCE_MULT_BAND etc ) from the user interface or from R How can end user validate the parameter of metadat file(.mtl) How can I pass ...
0
votes
1answer
45 views

Boolean GetParameterAsText in a loop

I have this tool where the user inputs an ID number and the tool selects a list of features applies symbology (.lyr) and adds the queried features to the open mxd. # Import modules import arcpy ...
2
votes
0answers
57 views

Altering input files in a Python toolbox? [closed]

I'm trying to add a temporary field to one of the input feature classes in my Python toolbox. arcpy.AddWarning("Adding field of type " + fieldType.upper() + " to FC " + varFC + " called " + ...
0
votes
1answer
171 views

Debugging RuntimeError: Object: Error in getting parameter as text from arcpy.GetParameterAsText()?

I am trying to get this tool I've been writing for the past month operational. I think it should all work, but I'm getting caught up on the parameters of the code. Here is the start of the code that ...
3
votes
1answer
218 views

Creating a ValueTable with a column that has dependency

I am creating a python tool which looks like the figure below. Input feature: It asks for a input feature class. Valuetable(Lookup tables): It has two columns - one for look up tables and another ...
0
votes
2answers
44 views

Turning code into a script and parameterizing?

I have python code that I want to turn into a script. I want the end user to be able to navigate to the feature class the code should be run on. The code I have currently speaks to a specific ...
1
vote
1answer
44 views

Wrong parameters for ESPG:42304?

I need to use the Lambert Conformal Conic for Natural Resources Canada EPSG:42304, which I could not find in QGIS 2.10.1 CRS list. I located the proj4 parameters on-line from three locations, all of ...
2
votes
1answer
305 views

Python toolbox - keep parameter value updated after re-altering parameters

I am writing a Python toolbox with (among other) 3 parameters: 2 boolean (check boxes) and 1 string. The string parameter's properties depends on the 2 booleans' value: If at least the first boolean ...
0
votes
0answers
43 views

Writing Script for establishing parameter files for MRT

I have 15 years of MODIS data that I need to mosaic and resample using the MRT program. But to do so I need to set up parameter files for every date as there are multiple files for every day in the ...
1
vote
0answers
35 views

Loop to increase value on Parameter of Model?

I'm working on the ArcGIS Model Builder to develop a model that makes a Raster Calculation using a Value Parameter and analyzes the maximum pixel value of the result, comparing to a Reference Value. ...
1
vote
0answers
22 views

Display tabs don't appear when files and folders are selected in QGIS?

My setup: QGIS 2.8.1 Wien on OS X 10.10.2 I'm a complete beginner at GIS and I'm having trouble on getting the Param/Metadata/Preview/Attributes tabs to appear in the Display Window. When I select a ...
1
vote
1answer
89 views

Setting parameters in ArcGIS desktop script

How would I create the parameters pixel_type and number_of bands (as found in MosaicToNewRaster) as user inputs at the start of my own script? ERROR 000714: Error in script BatchMosaic. Error in ...
0
votes
0answers
21 views

MosaicToNewRaster parameters in ArcMap desktop script

What is the correct format for adding parameters within a script which uses MosaicToNewRaster? This is not correct: output_name = arcpy.GetParameterAsText(2) Trying to add 3 parameters: name, ...
6
votes
1answer
215 views

How to create list of strings as parameter to script

I am trying to have a list of strings to pass as parameter to my script: when I start the script it displays: With "Add Value' button disabled. What am I missing here?
1
vote
1answer
391 views

Getting multiple value pairs as Python Script tool parameter?

I've tried several different data types but can't figure out how to allow a user to create a list of elevation-temperature pairs. For example, a spreadsheet might look like this: Is there a ...
0
votes
1answer
330 views

Python Toolbox Parameter List Update/Refresh?

I am using a python toolbox in ArcGIS 10.2.2 and want a drop down list of all the versions for the person reconciling to choose from. (And I do not want to include dbo.DEFAULT and DS.Draft). But this ...
3
votes
1answer
227 views

How to choose a derived attribute as a parameter in FME?

Is it possible to have an FME parameter read attributes from a feature class that has been defined in a previous attribute? So, in other words, I when selecting the Prompt and Run option, the user ...
1
vote
2answers
388 views

Inline variable substitution in Model Builder using python code

I have an inline variable substiution which I would like to import into my Python script. Is that possible? I am trying to make a parameter within my path. My path currently is ...
0
votes
1answer
341 views

SyntaxError: can't assign to function call, arcpy set parameter as text

I have a python script loaded into arcgis ModelBuilder, and when I run the model I keep getting an error when the script tries to run, at the line where I am setting the output as a text parameter. ...
1
vote
2answers
59 views

Getting number as parameter to use in SQL expression leads to ExecuteError: ERROR 000358?

In my script I am using the Select tool (arcpy.Select_analysis) and in the SQL expression, I want to use a number that I call in as a parameter. I have trying to script it like: subsize = ...
2
votes
1answer
1k views

Issue with using arcpy.GetParameter and arcpy.GetParameterAsText to write layer source to text file

I am trying to get a Map Document and (a new) text file as user defined parameters, in order to write to the text file a list of layer sources. The text file is then suppose to open once complete. ...