arcpy.GetCount_management not working with queried tables
Is anyone else having trouble with arcpy.GetCount_management using a queried table? I have a table in my TOC (not a feature class) and then I apply a query as: myTable.definitionQuery = "some query"...
View ArticleAreas of 0 returned from intersect tool
I am trying to pull area and length from the SHAPE@ object in an in memory file. When a feature is split into 2 features after the intersect, the area is zero! Any ideas? legal_sr_sec=...
View ArticleGPService Crashes randomly
I writed a python script which used to generate thematic picture. In the script ,I used gp tools such as idw、 ContourList、replaceDataSource、ExportToPNG and so on. I created scratchworkspace all by...
View ArticleAppend error
I am new to python and I am using python script for unziping shape file and append the unzip shape file's records to an existing shape file. The two shape files have a different field structure. So I...
View ArticleCalculateField_management Expression Question
I'm trying understand the CalculateField_management tool and I guess I just don't understand how to properly define a field to be a variable. I'm just working in the Python Window for now, attempting...
View ArticleCalculateField_management Question
Hi all, Probably a simple question but I am VERY new to Python, so help a newbie out. :) I am trying to copy the values from Field123 into FieldABC. What would be the correct Arcpy script to do this? I...
View ArticlePoints To Line
Hi Folks, I try to change points to a line. Like it is explained e.g.here http://help.arcgis.com/en/arcgisdesk...000003s000000/. Unfortunately there is not tool point to line tool in my arc Gis...
View ArticleRunning SelectLayerByAttribute outside ESRI environment Gives ERROR 000824
Hi all, Windows: Windows Server 2008 R2 SP1 Product: Arc GIS Desktop 10 (ArcInfo), ArcGIS Server Enterprise Advanced 10 Python: 2.6 32bit I am not facing this issue in either ArcMap or Geoprocessing...
View ArticleDelete Identical but Keep the most recent
Hello, I receive data once a week from a third party vendor. There are 2 fields in which I wish to use to exclude duplicate. rig_number, and a date field. Currently my script look like this. (standard...
View ArticleBest Way to Calculate Many Fields
Short Explanation: I have 8 fields I need to calculate that uses 2 fields as variables as to designate which of the 8 fields to calculate. Long Explanation: I have a streets feature class that I need...
View ArticleDetecting SDE Annotation Feature Classes
To All Python Developers: I had a script that was updating SDE datasources and I thought it was working on all SDE data, but it is not updating annotation feature classes. Is there any way to detect an...
View Articlemanual selection as input parameter for a script
I need a arcpy script to process data from a selection, it's made manually in arcmap. the selection is part of a mesh, to print data from a specified field. Can i put a selection made manually as...
View ArticleProblem with where clause and Update Cursor
I am working on a script that will allow users to select a project from a pull down list in the tool and then update the status. I am using an update cursor with a where clause to update the attributes...
View ArticleSelecting the first node (or Point) of a line and performing calcs at that...
Hello Fellow Forum Users... I have a problem. Ultimately my goal is to associate points to lines... easy right? The problem is our points are the split or break points of the lines. Basically we have a...
View ArticleDetect which ArcGIS Application script is executing from
Here's an interesting question (at least I think it's interesting). Does anyone know of a good way for a Python script to detect which ArcGIS Application it is being excecuted from? I have a couple of...
View ArticleResourcing multiple shapefiles for about 100 Maps
Hello! My team and I recently had to switch the drive that we use to store all of our data, so we just copied and pasted everything from the R drive to the C drive. However, we have about 100 maps to...
View ArticleError Message Select By Attribute
I'm getting an error message in my Select by Attribute statement saying the layer file doesn't exist, however, the output of the Make Feature Layer completed successfully. Thoughts? Code: fc =...
View ArticleHow to compare files in two folders?
I'm pretty new user of ArcGIS. My intention is compare contents of the files (csv) from one folder with files in another folders . In those folders exist files with the same name but in second folder...
View ArticleString to Date conversion help
I need to calculate a date field of a FGDB raster catalog (but I guess it could be any table or fc for that matter). The field I need to convert is a string that contains date values in the format:...
View ArticleExtend XY Line to Z Value from DEM
Hi All, Hopefully I can get some help.... I have a series of lines and a single raster DEM. I'd like to extend my line segments until their Z-component has changed by at least 20 metres. My initial...
View Article