Query with variable with AND expression?
I have a query with a variable that points to a field value. It works great. How can I add a "AND" to include another variable in this expression? Thank you!!! Code: query = "FFYCounty" +"=" + "'"+...
View ArticlePython Script to construct points on a polyline
Hi all, I am looking for a simple python script that I can direct at a line shapefile and have it cycle through each line in the file while constructing points along each lines. The number of points...
View ArticleTrying to edit a layer in a versioned SDE GDB in a Python stand-alone script
Hello everyone, I am trying to do a simple edit using Calculate field on a layer in a versioned SDE GDB. I've gotten past a few errors, but now have ran into a new one that I can seem to get past. The...
View ArticleAlignment of Data--getting matching records
I have created a python class call match # Below are created instances of the persons t4 and taylor with there corresponding data such a long, lat, time, speed etc. per1 = match("demo") per2 =...
View ArticleIndexing question.
Hi, My question revolves around indexing. I'm using an index to help me with a naming character limit in certain arc tools, and right now it works fine. My question is, is there a way to designate how...
View ArticleInterpolate a geological fault
Hi, I need to interpolate a geological fault dataset (xyz file) as a raster surface and was wondering can ArcGis do this. I have tried IDW, but it will only create vertical lines of the dataset. I need...
View ArticleCreating Polylines with Z-values very slow
Hi, i am creating Polylines from scrath out of X,Y,Z-Points. I need PolylineZ. When I create Polylines using arcpy.Polyline i use the Parameter "has_z = True". If i use this Parameter, i get PolylineZ...
View ArticleCalculate Field loop
Hello System Windows Vista ArcGIS 9.3 Now I have a shape file. Its attribute table consisted of fields of GridCell ID (GID) and species ID starting with D. (Dxxxx (such D8729, D6745, D2765)) The rows...
View ArticleCreate an outline of a raster grid
Hi, I have a raster grid and I need to create a outline from the grid, some areas have No data and I was going to try create an outline using contour, but this will not work for areas of No data. Any...
View ArticleHow to do not display automaticcaly the raster when interpolate.
Hi all, I am trying to interpolate from x,y files to rasters, I do automatically it with python code. But I have had an inconvenient, it is that after finish the interpolation, the raster always...
View ArticleSpatialReference in Loop
Hey all, I am trying to set the projection of a temp shapefile so I can add a length field. I am using the factory code to set it. I have a huge list of shapefiles in (GCS) and their corresponding...
View ArticleWorking with Excel 2013, python
I'm interested in trying some data manipulation and retrieval from Excel spreadsheets. I've been trying out the xlrd, xlwt, and xlutils packages from http://www.python-excel.org/ with some success, but...
View Articlename the output shapefile after the working folder
Hello System Vista, ArcGIS 9.3 I want to make the name of the output shape file (out_name) the same as the working folder (Zoon). Therefore, the output shape files will not have the same name even if...
View Articlecreate sql query with arcsde connection
hi, i'm trying to execute this python script to establish aan sql query and the result is "Execute SQL Statement: select [objectid) from [P10TN_SIG.DBO.BCBATIMS] where [shape.area] > 200" <type...
View ArticleSaving Python Script within Toolbox
When you create a python tool, you reference a .py file. The tool has to reference that script to run. So if you want to pick up the tool and take it somewhere else, you have to move the script as well...
View ArticlePython error when using the describe function
I'm getting the following error when I run my Python script tool on Personal and File Geodatabases that have more than one feature class in them on a 10.0 machine. I tried debugging it today, but I am...
View ArticlePython script to enter String & Dates in existing fields
All, I am attempting to write a Python Script that selects a record in the attribute table, zooms to the selected feature, and prompts the user to enter their name, date created, and date modified. The...
View ArticleHow to convert excel to csv?
I been looking for the code to convert an excel into a csv? I also look in ArcHelp for code that can convert excel into a xy event but they require csv. So, if I there no way to convert the code to a...
View ArticleNeed help to create a sediment routing script/ model
Hi, I am modeling soil erosion and sediment transport across a watershed. I have created an erosion map which is a raster layer in which every pixel has a value of soil erosion. In order to route the...
View ArticleRe: IOError when calling Style File
Thank you! The IOError is now gone, but the question that I have now is how do you save a customized style as .ServerStyle file? I haven't been able to find much documentation on it except some sample...
View Article