Question about JoinField_Management??
Can anyone direct me to where it shows how to code for joining of two fields in the same layer. I found Join Field (Data Management) on Help desk, but the examples for python on the bottom are terrible.
View Articlepythonw.exe crashing
I had some code working previously that is now causing pythonw.exe to crash. I have an .mxd set up that I am using to loop through features in a layer and export the layout to jpeg. However now the...
View ArticleMultiprocessing: Arguments and Errors
Hi all, Using ArcGIS 10.0 SP3, win 7 First time working through using multiprocessing. What I have right now works up until everything goes into multiprocessing (the CPU use spikes for all processors,...
View ArticleMerge items in list if criteria met
I'm trying to create a python script that takes the features in my map and exports them to a geodatabase. The features are all Canvec 1:50k mapsheets. Sometimes my map contains multiple mapsheets, for...
View ArticleAddField Failed to Execute???
I am trying to join 2 fields in one layer which is a shapefile and join 2 fields in another layer which is a gdb. I think I have the coding right but it is not wanting to add my join field in my...
View ArticlePython Function SaveToLayerFile Not Working with Cached Basemap
Hi, I am having an issue creating a layer file in python. I am trying to create a layer file of a cached Silverlight basemap using python in order to upload it to ArcGIS Explorer. However, the file...
View ArticleDescribe ServerConnection 10.1
Hi There, I have a gp tool that takes in a server connection to publish data to AGS 10.1. As a second part of this tool I want to access the admin API to make some changes to my service that I can't do...
View Articlearcpy.mapping.ExportToPDF frustrating me to no end!
I have this long-running, works like clockwork py script, which I decided to snip a few lines from to do one-off map exports to PDF: Code: for pgNumLeft in range(1, tempDDPLeft.pageCount + 1, 2):...
View Articlehow to list the number in the attribute column
HI, I wanna list number in the column of OBJECTID_1, see the picture. I wrote it like this : for row in arcpy.SearchCursor(fc): print"%f" %row.getValue("OBJECTID_1") what is wrong? Thanks Attachment...
View ArticleProblem with ArcGIS Script to read from polygon vertices
Hello I have a little problem with an ArcGIS script. The script transforms a polygon into his vertex points and save this into the txt file. My problem is, the skript transforms all points from polygon...
View ArticleWhich parameters do I need to do this?
I've made a Python script that finds the midpoint of a polyline and creates a point there. I'm having trouble finding what parameters inside the tool properties I need to choose for 2 of the outputs....
View Articlesimple Raster Calculator question
hi, I'm completely new to Python and I'm just trying to run a basic Raster Calculator operation, just pulling out cells below a certain elevation. The code appears to run just fine but in my output,...
View Articlearcpy.da.UpdateCursor on joined tables?
Do data access update cursors work on joined tables? This thread indicates that Search Cursors do, but I keep getting a "cannot update join table" error. I have confirmed that I am trying to update the...
View Article001270 : Consolidating the data failed on scheduled task
Hi everyone, I'm getting a "ERROR 001270: Consolidating the data failed. Failed to execute (StageService)." when running a python script as scheduled task. I looked into the help for this error,...
View ArticleGeoprocessing Package "Bugs" or "Features?"
Does anyone have any ideas whether the following Geoprocessing Package issues are “bugs” that should be reported, or simply “operator naivety?” Any suggestions would be greatly appreciated!! 1)...
View ArticleSplit by Attribute
I have a Feature Class with 3.2 million records which represents customers. Each customer is assigned to a particular store ID (DID) So I'm trying to split the customer record into store ID datasets....
View ArticleScript through geoprocessing service
I have a simple python script that calculates the slope of the raster (DTM). I would like to publish this functionality as a geprocessing service on ArcGIS Server 10.1 Ent Adv. Client will be an...
View ArticleSharing Python toolboxes across the Enterpise
Hi, We need to share some Python toolboxes across the whole company. We have 2 sides in the production: core users has ArcMap installed on their laptops and others will use it through Citrix. What I...
View ArticleSplit and convert raster files
Hey guys, i am pretty new to scripting with python in general and with ArcGIS in special. I want to automate a process to split Rasters and afterwards convert them in .txt files. So far so good. I...
View ArticlePython and Snapping
I am working on a python Add-in and in order to have the proper output I need to be able to snap to the corner point of a land grid. I have not been able to find any functions within arcpy that allows...
View Article