Tagged Questions
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 ...
3
votes
2answers
190 views
How to generate Buildings ID numbers inside parcels
In order to decrease manual data entry, I would like to automate a task to generate numbers for all buildings inside a parcel starting with 1. For example, I have 4000 parcels and each parcel has ...
31
votes
9answers
2k views
Alternatives to using Arcpy
I seem to use ESRI's Arcpy site package for virtually all of my python geoprocessing. To ESRI's credit, these are an incredible suite of tools that can help accomplish a great deal. However, I would ...
3
votes
2answers
97 views
ArcGIS NEAR returns -1
We are running an ArcGIS 10.0 geoprocessing script written in Python that (as part of many steps above & below) runs the NEAR command.
Both the input and output datasets (shapefiles & ...
0
votes
0answers
119 views
Geoprocessing COMException when running custom script
I have searched a lot of forums looking for answers but none have helped so far.
I am trying to run my own script ( a dummy empty one for now) with geoprocessing in Visual studio 2010 using c# and ...
3
votes
1answer
173 views
How do I stop GP script from adding temporary data to Table of Contents?
I have a script that does a series of calculations, producing temporary data along the way. However, at each step of the script, data is added to the TOC and then removed when I call the ...
12
votes
5answers
4k views
How to get the extent of each polygon in a shapefile?
In arcgis 10 and python I want to get the extent (xmax, ymax, xmin, ymin) info of each of the polygons in a shape file.
I can get the extent of the whole shape file using
...
3
votes
0answers
168 views
How to write a script to square polygon corners?
I'm looking for a script that will square the corners of polygons that are near 90 degrees but not exactly. Near could be dealt with via a variable, for example within 5 degrees of 90 (85 - 95 ...
3
votes
1answer
939 views
How do you make a SQL join query for a NULL in a search cursor in ArcPy?
I am trying to learn how to do some error catching/avoiding in ArcPy. Here is a simplified version of what I would like to do. I would like to take some points, and then check to see if there is a ...
0
votes
1answer
261 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 ...
1
vote
3answers
564 views
Automating capture of Extent from multiple mxds with multiple dataframes
I want to create a single shape file from multiple mxd's that have multiple frame sets with different extents in them. I have found/started a script to do this (attached) but can't figure out how to ...
4
votes
3answers
2k views
Batch shapefile merge, with adding and calculating field
I have over 60 shapefiles, all in their own folders. I'm looking to add a field titled "Name" and then populate it with the name of the shapefile. I want to be able to do this so that I can then ...
5
votes
1answer
267 views
Postgres/postgis cursors
I have a road network with StreetName and min/max address ranges for each segment (ie- StreetName = 'Main St', Min = 100, Max = 199). I also have individual address points with similar information ...

