The python library for geoprocessing in ArcMap 9
2
votes
1answer
78 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 ...
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 ...
4
votes
4answers
525 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() ...
1
vote
2answers
98 views
How do results from a Python script get added to an ArcGIS map? [duplicate]
I have a Python script for ArcGIS that makes a new feature class. I can add this to ArcGIS as a new Script (without parameters), however the resulting feature class is not automatically added to the ...
2
votes
3answers
226 views
How to use ArcGIS 10.1 to make Python scripts for ArcGIS 9.3?
Recently I have been making scripts to run geoprocessing tools for a client who is running ArcGIS 9.3. However I only have access to ArcGIS 10.1. As a result I cannot use model builder in 10.1, and ...
4
votes
3answers
159 views
Is there anything faster than a cursor in ArcGIS to calculate records?
What is the most efficient (fastest) way to calculate records in a layer in ArcGIS?
Is there anything faster than the Cursor in ArcGIS?
3
votes
2answers
101 views
Running python 2.6 and 2.7 in ArcGIS 10.0
I figure that there must be a way for me to run python 2.6 and 2.7 on the same computer. I've got a program that requires 2.7, but ArcGIS requires 2.6. I'd like to be able to run both programs at ...
10
votes
4answers
385 views
How to manually break statement execution in python console of ArcMap
How does one break the execution of a long-running process in the python console of ArcMap?
For example, how do you break a long iteration like the one below once it is started?
for i in range(1, ...
3
votes
1answer
247 views
Automate removal of duplicate polygon nodes from shape file in Arcmap
I have a whole lot of polygon shape files, many of which have got duplicate nodes.
This makes processing difficult as almost all tools (erase, union, calculate area) do not work.
I found that by ...
0
votes
1answer
211 views
How to use VBA in the field calculator, to copy the last 7 characters to a new field?
Im using ArcMap 9.3. Im looking for a VBA code to use in the field calculator to make a new field of the last 7 digits of a "pin" field. For example. my pin is 00-00-999-999 and i want it to ...
2
votes
2answers
114 views
How to use model-builder iterator with a custom bit of arbitrary code?
How do I integrate a in-line variable from modelbuilder into a python script? Specifically, I'm using an iterator, and I'm trying to include the 'name' variable in a python script. I believe the ...
5
votes
2answers
417 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 ...
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 ...
3
votes
1answer
245 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
254 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. ...
3
votes
2answers
599 views
How to repair paths of an unmanaged raster catalog in file GDB?
I'm using ArcGIS 9.3.1 and I have an unmanaged file geodatabase with raster catalogs in it. Tiles are loaded inside the catalog and each tile has a "Full Path" property which is environment specific. ...
12
votes
2answers
1k views
How to smooth/interpolate a raster in python using GDAL?
This is my first post so please feel free to critique where necessary.
Background:
I am developing in Python and using GDAL from OSGEO to manipulate and interact with rasters and shapefiles.
...
2
votes
1answer
132 views
ArcGIS Geoprocessing Script - Calling External EXE Works in Desktop - Causes GP Service to Quit Abruptly
I have an interesting problem on my hands... I have a generic python script that does a bunch of geoprocessing functions using the standard arcgisscripting module (Yes, I am still at 9.3.1). At one ...
0
votes
1answer
263 views
Calculating length with Python and the PYTHON_9.3
(Please critic wholly if possible) If I have polyline data in NAD83 and I want to calculate geometry using the PYTHON_9.3 parameter from the arcgisscripting.create(9.3), I am getting mixed results. If ...
5
votes
2answers
1k views
(New at Python Scripting) Creating a Loop so i can replace text in page layout in multiple mxds instead of one mxd at a time
I found some code on a website that will perform a search and replace on page layout text elements. Currently you can only do it one MXD at a time. I was hoping to change the code so I can do a search ...
9
votes
2answers
1k views
Is there a ArcGIS python script development API?
I'm a somewhat experienced software engineer new to the GIS world. I started working on a GIS project that supports ArcGIS 9.3 and 10.0 and looking through existing code it looks like the main ...
2
votes
1answer
283 views
stratigraphic ranking with field calculator?
I would like to populate a feature class float attribute with a numerical ranking of a text attribute of a geologic map. I have a field named [sheet_unit] with strings such as "H10, Q" and "J10, Pl" ...
5
votes
2answers
2k views
Cannot get rid of lock on file geodatabase and feature class created in Python script
I have a python script, (for ArcGIS 10), that creates a new file geodatabase, creates a new feature class in that file geodatabase and then reads data from an SDE feature class to populate the new ...
6
votes
4answers
1k views
Raster to Polygon Scripting Problems
I am trying to make a script which selects every .png file in a folder beginning with the letters "LG". I then want the scipt create a shapefile, replacing the "LG" with "SH", and then i want the ...
2
votes
1answer
432 views
Can I create a balloon callout on an address point on a published map?
Very new to this, so please excuse any ignorant question! I've created a vb.net app to open a published map in ArcReader. Have a few questions...
First, I started with the query attribute sample ...
5
votes
4answers
4k views
Field Calculator syntax
I can't get the syntax correct for a fairly simple if statement. Right now it looks like this:
dim Output as Integer
If [HECTARES] >= 30 AND [HEIGHT] >= 17 AND [CROWN] >= 59
THEN Output = ...
0
votes
2answers
945 views
KeyboardInterrupt doesn't work when arcgisscripting module is loaded
The KeyboardInterrupt exception -- thrown when Ctrl-C, or Ctrl-Break on some machines, are pressed in a Python console window -- is commonly used to gracefully break out of long-process loops, ...
1
vote
3answers
665 views
an arcgisscripting method for sanitizing a filename?
Is there an arcgisscripting method for sanitizing a filename to get rid of characters which Arcgis barfs on, the meek hyphen - for example?

