The act of setting up computing instructions, usually stored in a file and interpreted at run time.
1
vote
1answer
35 views
Generate unique ID upon creating a feature?
Looking for a way to generate a unique Global ID within a feature set when a new feature is created. For example, every time a sewer manhole is added, we need to generate a new unique Global ID that ...
0
votes
1answer
17 views
Running a script with QgsFeature from within the console
I am trying to run a script from the QGis Python console (similar to: http://spatialgalaxy.net/2012/01/27/qgis-running-scripts-in-the-python-console/)
The line feat=QgsFeature() operates fine from ...
0
votes
1answer
18 views
How to add layer in Arcscene using script tool
import arcpy
mxd = arcpy.mapping.MapDocument("CURRENT")
df = arcpy.mapping.ListDataFrames(mxd, "*")[0]
addLayer = arcpy.mapping.Layer(r"F:\project\Final\Ground floor\steps.lyr")
...
11
votes
2answers
217 views
Measuring Script Writing Competency
I've been asked by my manager to come up with some sort of competency measure for an employees understanding of scripting/programming. Because I am a self taught programmer, I really don't have a ...
1
vote
1answer
69 views
Does Identify tool of ArcGIS for Desktop have Python script behind it?
Can anyone let me know the Python script for "Identify" tool in arcmap10.
I need to create a customized script tool for that and add in a toolbar..
Pls help...
2
votes
0answers
38 views
Difficulty in running the script
I have developed a script tool for adding a layer in the current map document.
It did not work.. The message is "Completed script addlayer...". But there were no layers added in the TOC.
Another issue ...
1
vote
1answer
43 views
Adding parameters to a category in a script tool
There is plenty of documentation on how to add parameters to a category in a python toolbox,
(See the bottom of ...
3
votes
1answer
94 views
Model Builder: An error has occurred in the script on this page. MdDlgContent.htm
I've been creating a model in Arc 10.0 for a few days now without problems. Then I added the Calculate Field Tool. I selected Make Variable --> From Parameter --> Expression. When I check off "Model ...
3
votes
2answers
120 views
ArcGIS script tool: Can you have an input parameter set to optional and have the tool work when an input is not provided?
I'm building a script tool that processes shapefiles ( GPS data collected on weekly basis). The tool is set up to take an input for each shapefile ( in this case Sewer, Storm, Sign). On some days, ...
2
votes
1answer
71 views
Select and zoom python script
I am attempting to make a simple select and zoom python script for my address points. Currently the script will complete successfully but will not select or zoom to the entered point. I am using two ...
1
vote
1answer
126 views
Calculating mean upslope aspect
I am trying to write a python script to calculate the mean aspect upslope from each cell in a DEM. I have the general workflow down, but my final output is restricted to angles between 0 and 90 ...
3
votes
4answers
410 views
Renaming a field using arcpy
What I need to do:
rename a field name of a table/feature class
copy all values to the new field
So far I have done following code as artwork21 suggests:
EDIT:
import sys
import traceback
import ...
2
votes
1answer
84 views
Difficulty converting standalone script to ArcGIS tool
As my title says, I am currently trying to make my (working) standalone script into an ArcGIS tool so I'm not the only person in my office that can use it. It essentially selects all the data within ...
3
votes
2answers
100 views
ArcGIS Conflation Tool Recommendation or Custom Script for Comparing Points
Can anyone recommend conflation tools for ArcGIS Desktop (10 or 10.1, paid or free) or a scripting outline / procedure (or just a script) to have a technician efficiently process the following rules?
...
3
votes
1answer
102 views
Beginning Arcpy: Asking for a quick review of my script
I cobbled this code together from ESRI documentation and stackexchange answers.
I tried to use SearchCursor(points, fields=fieldname) but I get this error:
TypeError: SearchCursor() got an ...