Select by Attribute
This is my first time to try Python script. I want to select a many states with a thousand records if i have to do this manually through Arc Map it will take a long time. Can anyone help me with a...
View Articlecx_Oracle Python List Querying Question
Hey Everyone, So, I'm trying to query a very large table and would like to limit the results using a python list of field values, which I can successfully execute using the cx_Oracle cursor.execute...
View ArticleAdd Cogo Fields via arcpy
Is anyone aware of a way to add cogo fields to a feature class using a stand alone script?
View ArticleUsing arcoy to connect to a remote SDE instance... how to?
We are using Python v2.6 and have a situation where we need to connect to a remote SDE instance to look at some data. All of the examples that I have found online are using a local copy of a .sde file...
View ArticleGeoprocessing using feature classes from two separate geodatabases
Hello everyone, I seem to have hit a wall in my abilities once again. I have feature classes in two geodatabases. I am trying to iterate through the feature classes in the first geodatabase and based...
View ArticlePython scripting....batch reconcile and post versions
Hi, I am referring following link for Python to batch reconcile and post versions: http://resources.arcgis.com/en/help/...000000v7000000 I am new to Python and need help with suggestion to modify the...
View Articleselecting rasters
This seems like a easy question with an easy solution but having a hell of a time figuring it out. I am trying to select a raster from a raster catalog and replace it with an updated one. It can be...
View ArticleChange layer source
I am working on a script that will walk a directory and change the source for a layer. This way when we move data I can just set this script to go update everyone's maps. In my own folder I can get it...
View ArticlePath Names
Hi folks, I need to get a list of path names for feature classes in a gdb. The gdb is configured something like this: Myfeatures.gdb Feature 1 Datasetfc1, fc2,fc3 Feature 2 Datasetfc1, fc2,fc3 Feature...
View Articlefrom os.path import expanduser
I am trying to identify the current user folder as part of a larger process. I am using the code Code: from os.path import expanduser HOME = expanduser("~") If I run the script in the foreground the...
View ArticleFaster method than CalculateField_management?
I have a script that joins one table to another, then calculates one column to another. Everything works as it should, but it takes 4 hours to do so if it is scripted while it only takes a few seconds...
View ArticleCreating LAS Datasets from .LAS files then convert each individual .las file...
Folks, I am a SUPER new python user and I am attempting to do the following: 1. Navigate to a folder full of .las files 2. Use the data management tool "create las dataset" to create an las dataset for...
View ArticleField calc help
I'm trying to populate a field with an already defined area but only if the Updat_HYGR variable is = to 'A' i have a column with letters A-D (Updat_HYGR), a Column with areas in sqmi (Sq_Miles) and a...
View ArticleJetBrains PyCharm Community Edition 3.1.3
Need Help with the following problem please: Write a Python program that accomplishes the following task: 1. Prompt the user for their numerical grade. 2. Based on that numerical grade, print the...
View ArticlePython Tutorial
Does anybody know where i can find a comprehensive python interactive tutorial?
View ArticleTable to Excel
Hi, I am currently trying to use the Table to Excel script to produce a table of a query that I have created. It returns all the fields not just the selected one. Any ideas? I am sure it is simple...
View ArticleParsing and converting table to .txt files
The setup is we currently do not have an automated work order system in place. IT has approached me to build an internet GIS based service request application, of which the local government model...
View Articleusing Z and M feature geometry to create line graph in Python?
Hello, I am a Python (v2.6.5) noob trying to plot a series of 3D polylines into graphs. So far I've come up with: Code: # Import system modules import arcpy, os, sys, string from arcpy...
View ArticleAdding Point to Feature Class that has been created using Lat/Long and XY tool
I am trying to create a custom tool to take user input about point locations and add them into an existing feature class that already contains points that have been located using their Lat/Long values....
View ArticlePython and Field Calculator
I am trying to run the following Python script through Field Calculator Parser: Python Expression: calctemp(!Value!) Code Block def calctemp(newValue): if newValue > 0: tempF = (newValue - 273.15)*...
View Article