Tagged Questions
1
vote
3answers
99 views
How to create a spatial reference file
I am using python, arctoolbox and arcpy 10.0
I am running a script that is tied to an arctoolbox. The toolbox serves to enter in my parameters. I have a feature layer as an input. The feature layer ...
0
votes
0answers
35 views
Dialogue/popup box in arctoolbox [duplicate]
I am using arcpy 10.0, python and arctoolbox. I was wondering if it is possible to have a dialogue box pop up within arctool box. I am familiar with
arcpy.AddMessage("Your message here")
...
1
vote
1answer
81 views
Arctoolbox and python
I am trying to use arctoolbox and python so that the user can enter in parameters. In my script I have the following lines
_StationInterval = arcpy.GetParameterAsText(0)
I just want the user to be ...
5
votes
1answer
77 views
Is there any restriction on file size while using arcgis tool box or arcpy methods
I am working with ArcToolBox's tools and their python supports. I found there is some restriction on file size of shape files/feature classes etc. It makes me interested to know about is there any ...
1
vote
1answer
133 views
arcpy.AddMessage and codepage problems
Some times in my tools I need to output Cyrillic text via arcpy.AddMessage function.
Previously in 10.0 it was very easy. I had .py file of the tool saved in UTF8 codepage.
This code wrote messages ...
2
votes
0answers
115 views
How to Load a Record Set Parameter in a tool dialog
I am trying to create a tool that allows a user to update a table row without starting an edit session. I have a script tool set up with a record set parameter and I use this set up to add new rows to ...
4
votes
1answer
256 views
Python console vs Toolbox script in ArcGIS
My question is similar to this post: Adding Layer in current session using ARCPY . My script works in ArcMap python console but not as a script in toolbox.I am running ArcGIS 10.0 SP4. The script is ...
0
votes
0answers
177 views
ArcPy TableToTable conversion does not work when published to ArcGIS Server
I have a python code that uses ArcPy command "arcpy.TableToTable_conversion" to convert a database table to a dbf file.
arcpy.TableToTable_conversion
The input table is from a SQL Server database ...
0
votes
0answers
109 views
How to check if a layer exists in a geodatabase through ArcToolBox or Python?
I have got a python to update a file geodatabase (*.gdb).
Every time the code executes, it needs to check if a certain layer has been already there in the previous geodatabase; if so, delete it and ...
0
votes
1answer
332 views
Defining projection in arc toolbox (JSON to shapefile) in python
I have a arc toolbox which converts JSON txt file to a shapefile but we have to define the projection.
How can I hard code the defined projection so that user don't have to input the projection ?
...
2
votes
0answers
68 views
network related issues arising when running an arcpy script
Essentially I wrote an arcpy script that is within a toolbox that I ported over to a different machine to test out after the script worked locally.
The script essentially utilizes the psycopg module ...
1
vote
2answers
319 views
How to automate relative filepath when adding a new toolbox to the arcmap catalog?
So I'm creating an arcpy script for a custom toolbox and I want to make it so that a user can essentially utilize the script in that toolbox without having to change the source path (which I made ...
1
vote
1answer
433 views
ArcGIS Python Script Tool Validation: Control Overwrite Behavior
I'm creating a script tool to read the USGS earthquake GeoRSS feeds. It works fine as a script with hardcoded values. The script also works fine as a tool for creating a new feature class for a given ...
1
vote
1answer
83 views
Other than the methods stated on the Desktop 10 Sharing Tools section, are there any other ways to distribute custom toolscripts?
Essentially I want to be able to distribute a custom script and it seems that I cannot create a .tbx file, so I looked into the other methods, but they are all only for Python modules it seems. What I ...
3
votes
4answers
971 views
ArcMap 10.0 Python script tool - Have the script tool dialog box stay open past successful completion of script
Is there a way to have the script dialog box have the radio button that says "Close this dialog when completed successfully" unchecked for any user who runs the script tool? Is there configuration ...
1
vote
3answers
696 views
Unable to Provide Input for a MultiValue Parameter Script Tool
I have the following script:
#Import ArcPy site package
import arcpy
from arcpy import env
from arcpy import Raster
from arcpy.sa import ZonalStatistics
from arcpy.sa import CreateConstantRaster
# ...