in_memory workspace bug
I posted this comment here but wanted to start a new thread, since this seems like a clear bug & I'd be interested if anyone else has come across it or found a solution. I have a script that ranks...
View ArticlePython Toolbox Raster Parameter Error
Hey all, I borrowed a simple script I found online to clip a shapefile from the extent of a raster. It works perfectly from the ArcMap built in python command prompt. I modified is slightly to use in a...
View ArticleLoop raster dataset in Python
Hi, I am very new to Python and I want to extract raster by mask for a number of images. I am attempting to write python code for this and incorporate a loop so it will process every raster image...
View Articleselecting with sqlite?
hi all; apologies if this has been answered already elsewhere, please point me in that direction if so... python novice here, and learning arcgis after having come from a mapinfo background.... I would...
View ArticlePython script for field table
Hi everyone, I have been working on a project for a while now. I have created more than 2,000 point file so far but, I realize that I needed to add a field name "Section". On the "Section" field I'll...
View ArticlePython crashes running stand alone script, composite locator, AGS 10.1 SP1...
I have a Python script with a composite locator that works when run from the Python window in ArcMap, but crashes when run standalone. I am running ArcGIS 10.1 SP1 (Build 3143) Desktop...
View ArticleProblems with MakeQueryTable_management in code
I am having trouble getting the code below to execute succesfully: Code: import arcpy tableList = ['Database Connections\\Metering_Data.odc\\tblFlowMeters', \ Â Â Â Â Â Â 'Database...
View ArticlePython Add-In help please
I am struggling to get this working. Attempting to follow along with Creating an addin tool http://resources.arcgis.com/en/help/...000001q000000/ So, I have made it through Step 3 (and maybe my edits...
View ArticleAlternative to replication for copying features in SDE?
We need to replicate data from SDE 10.0 to SDE 9.2, which is not possible using replicas due to all the changes between versions 9.2 and 10. I know of at least one case where someone is doing this very...
View ArticleGet value of a specific location from TIN
Hello, I'm looking for something similar to arcpy.GetCellValue_management, but for TINs instead of rasters. The idea behind it is that I'd like to be able to read terrain Z coordinate from both rasters...
View ArticleGenerate random numbers with known occurence possibilities
Hallo! I would like to generate random triads of numbers (h, v, d). The d number is generated according to the generated values of h, v following some if statements h and v are integers within a known...
View ArticleTrouble with UpdateCursor.updateRow()
I am trying to update an SDE feature class based on another SDE feature class using an Update Cursor. Th feature classes have identical fields and the same number of records. There is a "LASTMODIFIED"...
View ArticleReProject Error In Script
At the end of a script I run a Projection, but I keep getting the following Error PYTHON ERRORS: Traceback info: File "G:\Scripts\BARRIER_MERGE_edits.py", line 48, in <module>...
View ArticleLooping the "Resample" operation
I am trying to resample multiple rasters with the "Resample_management" ArcPy function. The code below works perfectly: Code: import arcpy from arcpy import sa arcpy.gp.overwriteOutput=True...
View Articlearcpy.da cursors and layer definition query
In my mxd I found that if I ran an arcpy.da search cursor with a where clause on a layer that had a definition query applied to it, that the where clause would not be honored. Anybody else have this...
View ArticleSelect Layer By Attribute User Input problem - Please help
Hi, I'm writing a script for a toolbox that gets user input to run a select layer by attribute and location tool on a cities shapefile that contains two fields of interest, cime index (CRIME_IND) and...
View ArticleMultiple Python scrips on features classes in same file geodatabase
I have about 5 Python scripts running through Windows Task Scheduler (2008 R2) - they run at varying intervals but will occasionally kick off at the same time (for instance if one is on a 10 min...
View ArticleNew to python, mapping question
Hello, I am relatively new to python and I am trying to create a script that will iterate through the features in a feature class, zoom to each one and export the view as a PDF. Assuming I set up all...
View ArticleMinimum Attribute and replacing 0 with no data value
Hi, I've performed some massive OD cost matrices, and then using the pivot table function, I have the results in a table where each row is an origin and each column is a destination and all the values...
View ArticleWhich side of a line
How can I find which side of a line an object is on? I need to know which side of a line a point falls on.
View Article