Tagged Questions
1
vote
1answer
50 views
How to iterate all input folders (containing coverages) using Python with ArcGIS 9.3?
I'm trying to write python scripts to batch convert thousands of coverages to shapefiles in arcgis 9.3. The coverages files are in different folders:
d:/area_A/building
d:/area_B/building
...
0
votes
1answer
29 views
ArcGIS 9.3 geoprocessing service output consideration
I'm developing geoprocessing service which do few processes with geographic data. I would like to get somehow geometry of those data and use it in my web aplication (JS ArcGIS API). Now I'm wondering ...
1
vote
1answer
44 views
How to save ArcGIS process output to variable?
I've created script in Python for ArcGIS that simplify Line, and make buffer from processed line.
input = "input.shp"
name = "bord"
buffer = "buffer.shp"
gp.SimplifyLine_management(name, input, ...
1
vote
1answer
113 views
Change coordinate system in multiple MXDs ArcGIS 9.3 using Python
I have to loop through some folders which may contain *.mxd files and change their coordinate system. I already found this piece of Python which should do the trick for ArcGIS 10.x (from here):
...
3
votes
2answers
98 views
ArcGIS Calling Wrong fme.exe When Python Script Converted To An ArcGIS Script Tool
I'm using this this bit of code to execute a FME Workbench file through a Python script ...
import os
os.system("fme.exe P:\\Mapping\\Scripts\\FME\\Easements_ROW_Extract_From_CAD.fmw")
However, ...
4
votes
3answers
564 views
Why does arcpy.ImportToolbox() not work in ArcGIS 10 (SP5) when calling custom model for topology?
I have an arcpy/python script using ArcGIS10 and using a custom toolbox and model. The toolbox has an alias of defaultTopo and my model within the toolbox is called AddRuleToTopologyModel. This model ...
5
votes
2answers
478 views
How to improve Python script processing speed (performance)?
I've been working on a script which essentially reads in a large amount of point and polygon data and generates frequency values for a featureclass of 2.5 acre hexes covering California. I have found ...
7
votes
1answer
198 views
Migrate python scripts from 9.3 to Arcgis10
What changes are needed to migrate scripts from the ArcGis 9.x environment/gp-object to the ArcGis 10/arcpy environment?
Can anyone provide a good overview what the changes are?
Can someone share ...
2
votes
1answer
396 views
Cursors and Field calculation - Python 2.5 - ArcGis 9.3
I hope my question is not redundant.
I wrote a script to Update a table using two imbricate cursors. The goal was
1) to read a records, update some of its values
2) Make a selection based on this ...
2
votes
2answers
538 views
From text data create a FeatureClass with table with python
I'm searching how the output of one program (text file with some writings, but also with data as numbers, dates, times, coordinates, all separated with commas) can be transformed to a Feature Dataset.
...
2
votes
1answer
181 views
Script for Editing TIN in Arcgis: modelbuilder works, when exported as script gives an error
Arcgis can give such a headache!
I want to automate loads of small tasks, and so I need to edit empty TIN with python in order to create a full TIN.
My srcript is giving errors, so I tried by hand to ...
1
vote
0answers
146 views
Hack to change data source of a layer file in ArcGIS 9.3.1 with python?
I'm looking for a way to change the source of my layer file using python. Actually I want to do this because I need to re-use a XSL template which is defined under the tap HTML popup of the layer ...
1
vote
1answer
181 views
Setting Script Tool Parameters Using Python and ArcGIS 9.3.1
Can't quite figure this out and i'm sure it's a simple fix. I have a script that utilizes the AGSSOM tool. It first stops all published services, allows for databases to be tidied up by ...
3
votes
1answer
115 views
Make feature layer based on date, problem in python
I have a script that runs, that takes the current date and puts into a variable, which is then used to calculate the date field for the Feature class. Further in the script, the updated data is loaded ...
3
votes
1answer
337 views
Looping based on a spreasheet using python (in ArcGIS 9.3)
Here's what I am trying to do: I want to move feature classes from one .gdb (OLD) to another (NEW), but only the feature classes that are present in an excel spreadsheet.
read from excel spreasheet ...
2
votes
3answers
1k views
Find polygon centroid with Python
I'm using ArcGIS 9.3 to find centroid of some polygon features. I'd like to do this in Python, but so far I can only find solutions with VBA. Can anyone provide some leads here?
2
votes
3answers
487 views
Python and CalculateField
I am having trouble with using Python together with my gp.Calculatefield tool in my python script, and I am not sure why..
Heres the code (UPDATED)
import arcgisscripting, os, sys
myTempWorkspace = ...
1
vote
1answer
278 views
The table was not found error - ArcGIS 9.3.1, Python
I have a python script that does the following on multiple tables
maketableView - not shown in code
Addjoin
Copyrows
MakeTableView
it was working ok, until all of a sudden it stopped.
Heres ...
3
votes
2answers
408 views
Adding VBA into a Python script generated by ModelBuilder
I have created a model that does a calculate field and have used VBA in the code block. But when I export it to Python, it doesn't work.
Here is the VBA code:
new_value = ...
1
vote
3answers
551 views
ArcGIS problem accessing fields attribute table
I encounter a strange problem. I have a simple shape file to which I added some fields and then populated them.
Now I wanna access those fields from a script to run some buffer operations. I wanna ...
2
votes
2answers
900 views
ArcGIS and Python Issues with Different Versions
As we know, there are few versions of Arcgis (9.x,10) and Python(2.x,3.x) are in use.
Issues are facing when we run scripts/toolbox of arcgis since the script written in one version of python and the ...
0
votes
1answer
177 views
Insert cursor raises exception on geodatabase
world,
I'm having trouble to insert a line geometry into a personal geodatabase (using Python/ArcGIS 9.3.1). Everything works fine if the target feature is a shapefile. My guess is that calling:
...
3
votes
1answer
250 views
gp.CreateFeatureClass(..) and gp.CopyFeatures(..) isn't copying all fields of feature class
How do I get the ArcGIS 9.3 geoprocessor to copy all of the fields of a feature class?
Here is a description of what I'm trying to do:
I am modifying an existing script created by a developer not on ...
2
votes
1answer
270 views
Get Raster Catalog Names from a File Geodatabase Programmatically
I'm trying to get only raster catalog entries from a file geodatabase using the arcgisscripting geoprocessing API. So far I am able to do this using the ListDatasets function using the ALL argument. ...
6
votes
4answers
1k views
How to interpolate points along a line in Python for ArcGIS 9.3?
I am building a Python geoprocessing script for ArcGIS 9.3. In the script, I have a simple LINE feature class with one row, one line. How can I use a linear referencing system to interpolate a point ...
1
vote
2answers
462 views
Join/Relate in ArcGIS 9.3.1 ArcEditor through a python script - is it possible?
I'm working on a ArcGIS 9.3.1 ArcEditor and I want to write a python script that will do a Join or Relate. Problem is, that join table\join field are restricted to ARCINFO (higher license), and relate ...
1
vote
1answer
310 views
How to tranform a column field into a list using Field Calculator
I'm trying to make a simple field calculation with ArcGIS 9.3:
New field = Old field - Old field(first value)
which in Calculate Field with python code should be
Expression:
!Old field! - first
...
3
votes
2answers
1k views
How to create a feature class in a file geodatabase in ArcGIS 9.3 with Python?
I'm not entirely sure if I am using the correct terminology, so I apologize in advance. What I am looking to do is create a file geodatabase and add a feature class directly into that file ...
4
votes
3answers
1k views
How to clip raster image by the extent of each row in a shapefile with ArcGIS 9.3
I'm using Python to clip a raster image by each row in a shapefile with ArcGIS 9.3. I am hoping to end up with one raster image for each polygon row, clipped to the extent of the polygon row. ...
5
votes
3answers
2k views
Python: Combine multiple Shapefiles
i have got a lot of Point-Shapefiles (r20010101.shp, r20010202.shp, r20020101.shp...).
Each of them has the same amount of points at exactly the same location. In a column that is named after the Date ...
3
votes
1answer
742 views
Grouping points by location
This is ArcGIS specific.
I do have surveyed points (sections). There will be 200 sections, each section 20-30 points. I want to create polylines (sections) out of the points. In order to do so, they ...
9
votes
1answer
494 views
How to implement MultiValue Parameter with Multiple Columns?
This might be a simple question, but I haven't been able to find a straightforward answer.
I'm working on an ArcGIS (9.3) Python script. One of the inputs is a list of features. For each feature, I ...
4
votes
4answers
533 views
Unable to save selected layer by attribute for ArcGIS Geoprocessing
I am troubles using the SelectLayerByAttribute() function for arcgis geoprocessing.
I have a layer and I want to select everything that matches on a particular attribute. I call MakeFeatureLayer() ...
2
votes
1answer
696 views
Export from SDE to SHP in ArcGIS 9.3.1 - problem: not exporting all fields
I'm exporting a layer from SDE to SHP by python script, and I'm doing it in 2 phases: the first includes select by location (for picking the relevant features) and the second phase includes the Select ...
23
votes
4answers
2k views
Performance of ArcGISScripting and large spatial data sets
I am currently writing a python script using the arcgisscripting module to process a reasonably large data set (~10,000 records in total) normalised over a small number of tables, 8 in total. The ...
3
votes
2answers
2k views
Dealing with empty feature classes in a ArcGIS 9.3.1 Python script
I have a script that goes over all the feature classes within a geodatabase (in ArcGIS 9.3.1) and copies them. The problem (as far as I can understand) is that when the script goes to a empty feature ...
2
votes
1answer
1k views
Using python lookup table to compare records with existing geodatabases
I am trying to use python to look through an access table containing facilities that need to have geodatabases with geodatabases that already exist in order to generate a list of facility geodatabases ...
4
votes
5answers
820 views
How to use python to turn a .dbf into a shapefile
I have been scouring the internet trying to find a pythonic (sp?!) way to process this data..
Everyday we will recieve a load of data in .dbf format (hopefully) - we then need to save this data as a ...
2
votes
2answers
273 views
How to use any ArcMap tool from a python script?
I'm trying to develop a tool that uses some of arcmap default tools like the Sketch Tool or Trace Tool. Is it possible?
Let me explain a little more, I need to draw a feature, ask for user input, and ...
2
votes
1answer
2k views
How to update feature class by iterating through values with branching?
I'm really struggling with getting this to work. Basically, I want my script to get the "newID" value and use that as a look up value. If the "newID" is found in the OldID list then do one thing, ...
0
votes
1answer
248 views
Eliminating a column from a copied feature class via a fieldmap object in ArcGIS Python
The use case is exporting a feature class via a Python script (arcgisscripting v9.3x. Only a few of the columns are needed in the result feature class.
I commonly use the fieldmappings/fieldmap ...
4
votes
1answer
111 views
Is it possible to install 9.3 Desktop Administrator as a standalone program?
I have ArcServer 9.3 installed on a server that I use for running scheduled Python geoprocessing scripts. I have several running, and now I'm trying to schedule one to rec/post, delete and recreate ...
0
votes
4answers
2k views
Python Question - how do I extract a part of a string
I'm building a tool in python and for that I have a question:
I have a string such as "Denver.dwg Group Layer\Denver.dwg Annotation".
How do I assign to a variable (for later print) only the first ...
3
votes
2answers
3k views
Can I use python 2.6 with ArcGIS 9.3?
Is it possible to use Python 2.6 (or 2.7?) with ArcGIS 9.3?
The official stance is no, not supported. There are a number of reports in the wild though that it can be done. How is this accomplished? ...
3
votes
3answers
787 views
Can you create new annotation feature classes with python in ArcGIS 9.3?
I am working on a project that needs to create file GDBs from scratch and can't seem to find any information about how to make new feature classes as annotation with python.
Does anyone have any ...
4
votes
2answers
4k views
How to write a script that will automatically draw lines from one point to multiple destination points? (ArcMap 9.3)
I need to create lines from an airport to numerous destination locations. The destinations change often, so drawing them manually becomes tedious. I want to create a script that will draw them ...
4
votes
2answers
1k views
How does one build a Python script that exports to several output files?
I'm trying to build a Python Script that will receive one feature layer that will be clipped by several adjacent grid squares (each in a different shapefile) and output several shapefiles.
Now, I've ...
