Make thumbnails of feature classes using arcpy
Hi All, I know arcpy can be used to make thumbnails from MXDs, but what about using feature classes or rasters? I have thousands of feature classes / rasters that I need to make thumbnails for and...
View ArticleNo Maps or Layers returned by arcpy.da.Walk()
I have been trying to implement arcpy.da.Walk() as a replacement for the os.walk when looking for spatial data. My code is very simple: with open(output, 'wb') as csvfile: csvwriter =...
View ArticleScript for Making Individual Zip file for Each Shapefile?
I posted this in the Geoprocessing forum and then I thought I should post it here - sorry if this is redundant. I need to take all of the shapefiles in a directory and compress them into individual zip...
View ArticleLinear Events and Select By Location
Greetings, I am working on a script to check some linear events at my current job. I have been having some issues, and it is frustrating because the process I am attempting would work for regular...
View ArticleCreating shapefile from ASCII file
Hi all, I'm trying to convert an ASCII file to a point feature class. I've been busy with this little project on and off for a few weeks now but it seems I've run out of ideas finally :). The idea...
View ArticlePYthon Script No Longer Works Correctly
First let me state that I am not very experienced with Python. I had captured a script from ESRI that I think I might have tweaked. However the script worked fine to produce output in a text file. Now...
View ArticlePython won't overwrite scratch rasters in loop - Arcpy - ArcGIS10.0
When attempting to delete or overwrite a scratch raster in a raster geodatabase, I keep getting errors along the lines of "Error: 000871 : Unable to delete the output" I'm working on an iterated series...
View ArticleExporting to PDF with a Unique Name
Hello, I have a script that exports my .mxd to a .pdf and a .png and I would like to add a Unique Name to the exported maps so everytime the script runs the exports don't get overwritten. I would like...
View Articlecontrolling feature class extent
Hello, I have a feature class, that I call into a Python script, that I then convert to a raster, and perform a conditional statement with, with another raster. The input feature class - and the...
View ArticleDoes anyone use both ArcGIS and Python(x,y)?
Hi community, I'm trying to get ArcGIS 10.1 and Python(x,y) to peacefully co-exist with a unified installation of Python. Surely someone else is using both these tools... right? Pointers would be much...
View ArticleCapture corrupt files and continue script
Hi All, I am developing a script that walks a directory and sub-folders listing coverages, rasters and feature classes. Running successfully until it hits files that exist but not structured correctly...
View ArticleAdd Fields
Hello, is it possible with a phyton code to add more than 1 Field to a Table? I have to calculate a few Fields in the Modelbuilder and would like to add these new Fields at once. Best regards,...
View ArticleLinear regression in Raster Calculator
Hi all, I would like to use a linear regression equation to compute a grid of estimated values in ArcView 9.3.1. The coefficients have already been obtained and I only need to put them into Raster...
View ArticleCustom packages wtih 64-bit processing
I have a 2008R2 server with both ArcGIS Desktop 10.1 (with Background Geoprocessing) and ArcServer 10.1 installed. I've developed a custom Python package that I deploy to...
View ArticleEscape chars - how to extract just file name?
I have an attribute that contains the entire path of some photos and I would like to extract just the file name with extension. Example: Input: \\ITDNAS\MapLibrary\Photos\RRpics\058721Nn.jpg Output:...
View ArticleZonal Histogram Bins
Hello all, I am new to programming with arcpy, so this question may be basic. I have a raster with positive and negative values. I would like to create a histogram for the values inside a polygon. I...
View ArticlePassing a feature class to a GP service
Why is it not possible to pass a feature class as an input type into a GP service when both the publisher and server have access to the same GDB? See this blog post for deeper explanation:...
View ArticleSQL query for symbology
Hi, I was working with ArcMap when I noticed that there are no SQL query for symbology like they have for labels. (I want to select from more than one attribute to display) I was wondering if I would...
View ArticleGetting the Latitude of Origin for a spatial reference
Greetings, I'm using Python to extract the parameters of projected coordinate systems but I'm finding that the SpatialReference object does not have a .latitudeOfOrigin property that I need to extract....
View ArticleFind and Replace Data Source Across Multiple MXDs in a Folder
Ok - I'm a beginner trying to figure out how to modify one of the scripts I located. The original script is designed to search a folder with MXDs and print out report off all the MXDs that contain a...
View Article