Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Developing a script in toolbox.

  1. I have a table that I use to make X Y layer (input 1)

  2. I am saving that created layer as a point feature class. (output 1)

  3. I then want to run kriging on that newly created point feature class, based on one of the columns. So my output feature class becomes input feature class.

  4. As you may see below at the "obtained from" part the field that will be used for kriging is not appearing yet, since the tool didn't created yet the point feature class.


migration rejected from Feb 28 at 21:44

This question came from our site for professional and enthusiast programmers. Votes, comments, and answers are locked due to the question being closed here, but it may be eligible for editing and reopening on the site where it originated.

closed as off-topic by Andre Silva, PolyGeo Feb 28 at 21:44

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions seeking help to debug/write/improve code must include the desired behavior, a specific problem or error and the shortest code necessary to reproduce it in the question itself. Providing a clear problem statement and evidence of a code attempt will help others to help you. See: How to create a Minimal, Complete, and Verifiable example." – Andre Silva, PolyGeo
If this question can be reworded to fit the rules in the help center, please edit the question.

"As you may see below"...I don't see anything below. Did you mean to link to an image or include some code? – Gary S. Dec 6 '13 at 19:30
Well, it says I have to have 10 points before I can post image on this webpage. I am not yet there! One can always make the python code run at the background and not ask users to enter the parameters. When I put the arcpy.GetParameterAsText(1) arguments, in DATA type we can select, shapefile, field, layer, string etc on the tool interface. That part, if one selects lets say field that is the shapefile that is created when tool runs, basically at the lower window in ArcGIS one can't pull the attribute fields, since that shapefile is not created yet. – user3073226 Dec 7 '13 at 4:09
For example in ArcGIS Model builder, when we put bunch of geoprocessing tools, we can link with each other, and even lets say step 1 is not run yet, the outcome shapfile's attribute table is available, and you can pick any field for the Step 2. However, in stand-alone scripts I don't know how to do that yet. – user3073226 Dec 7 '13 at 4:15

If you want to have one script tool, then the passing of input and output parameters happens in the script, using python, and would not be controlled in the tool properties.

This is one of many examples in the ArcGIS help pages on how this works.

In the properties you only setup the initial inputs that the user will choose. The rest you do in code.