Tagged Questions
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
...
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 ...
8
votes
1answer
255 views
How to find differences between shapefiles?
Every month I have to QA/QC some streets data for an entire county (over 47,000 records). The first step is to compare the two files. Currently, I'm using a tool that was created in house via VBA ...
7
votes
1answer
930 views
How to find the mid-point of a line in arcpy
How can the mid-point of a polyline be calculated using the geoprocessing framework, eg in a Python script?
The polyline.centroid property returns The true centroid if it is within or on the feature; ...
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 ...
3
votes
3answers
2k views
How to batch clip to a single-part shapefile using ArcGIS 9.3 and Python 2.5?
How do I clip a shapefile to a single-part shapefile using ArcGIS 9.3.1 and Python 2.5?
Example: I have a set of lines (lines.shp) I am trying to clip to each record in a shapefile called Grids.shp
...
23
votes
2answers
972 views
Streamlining Python Code for Big Data
I have Python code which is designed to take point shapefiles through the following workflow:
Merge points
Integrate points, such that any points within 1 m of each other
become one point
Create ...
12
votes
4answers
403 views
Mirror of Michigan State University's Python geoprocessing course materials
Been learning geoprocessing with Python using MSU's GEOG 825 ( python geoprocessing ) course. Unfortunately the link is dead now. I know this is a long shot but does anybody have a copy of the ...
20
votes
8answers
1k views
How to easily shift all features in a vector dataset?
Let's say that I put together a Shapefile and all the features have their vertices shifted by a constant amount. What's the easiest way of shifting all the features (hence the (x,y) position of their ...
7
votes
4answers
2k views
How to develop GUI in Python for geoprocessing?
I want to develop GUI in Python for geoprocessing, but I don't know what is the best GUI tool or library (Tkinter, PyQT, wxPython) for geoprocessing? Can I use PyQT for GUI programming in ArcGIS?
2
votes
3answers
1k views
Does ArcGIS 10 have a Geoprocessor Programming Model by using Arcpy?
Does ArcGIS 10 have a Geoprocessor Programming Model by using Arcpy?
is it possible to use ArcGIS 9.3 Geoprocessor Programming Model within ArcGIS 10?
9
votes
4answers
860 views
Programatically split a polygon with a line
In looking at this question, it occurred to me that I am not sure how one would go about using geoprocessing tools in ArcGIS to split a polygon with a line programatically.
Manually, you would use ...
6
votes
1answer
447 views
Is there a way to access QGIS plugins in Python?
Is there a way to access QGIS plugins in Python? I'd like to write a script to do some geoprocessing, and I'd like to use the clip, regular points and convex hull tools in fTools, as well as the Road ...
6
votes
4answers
2k views
Compiling Python Scripts That Use ArcGIS Geoprocessing Tools
I've been coding with Python for several months now and have developed some reasonably complex scripts for primarily geoprocessing tasks. That being said, I'm still learning a lot as I'm coming from a ...
4
votes
0answers
207 views
Batch Converting ASCII into Feature Classes using shapefile lists
Problem. I have 413 ASCII files totalling 4 billion points, and my system cannot handle converting them to MULTIPOINT so that I can generate Terrains. Therefore I would like to create 12+ subsets of ...