How to Extract values from a field and write them to a text file using Python?
Hi all, I am using ArcGIS 10.0 Python 2.6. I need to get the values from a single field (APN) out of a PARCEL feature class attribute table and write them to a text file. The feature class contains...
View ArticleChanging label for Unique Values of a created raster.
Hi, I'm trying to figure out how to change the label of each unique value in a raster layer I have created. The problem is I'm reclassifying the raster into 4 different contours, and I would like to...
View ArticleCustom help xml path for python toolbox pyt
Can I tell ArcGIS to use a custom help xml for a Python toolbox (.pyt)? I really just want to use the automated xml, but move it to a different directory because it clutters up the directory that the...
View ArticleExtract by Mask Problem
Hi all, I'm having a bit of trouble with using the Extract by Mask functionality. I have a Python code that creates a file GDB and then I import shapefiles to the GDB. I then create a new raster...
View ArticleHow to make file paths configurable within an ArcGIS Python Add-In?
I have a project folder with sub-folders containing several files on my hard disk which I read from within my Python Add-In, its hard coded e.g.: Code: dem = r'C:/project/raster/dem' and Add-In is in...
View Articlewrite into a csv file
Hello... I would like to write in a csv file 100 triads that a code randomly produces. More accurately I have the following 100 triads h1, v1, w1 h2, v2, w2, ... h100, v100, w100 and I want to write...
View ArticleViewing Python script of failed toolbox tool
I am trying to run a batch iso cluster unsupervised classification and the tool is giving me headaches. I wanted to try and troubleshoot the code or at least view it so I could post it with my...
View Articleextend line to feature. programmatically.
Thanks in advance for any help. I'm trying to programmatically extend hundreds of lines to a single polyline feature. Sometimes the lines intersect each other, but I'd like the lines to extend, not to...
View ArticleHow to turn a algorithm into a cost surface?
Hi, I need to create a cost surface using an algorithm that calculates that amount of energy expended as a person walks over a specified study area. I was wondering how to do this in python, or if...
View ArticleEnv class confusion
Hey everyone! I'm just wrapping up my very first esri UC and I'm trying to get my feet wet (finally) with some python coding. I have what I hope is a fairly straight forward question about the env...
View ArticleHelp processing GPS data from a server
I have having issues with processing data after it closing the connection for a database. nprompt is a list that takes string names from two users. The print of the list shows the exact copy of the x y...
View ArticleAlgorithm to compare fields to determine match
it there any function(s) that compares two user's x y fields (or a list of this data) to verify if the the points match over a period of time?
View ArticleAccess Closest Facilty Layer Routes in Python from the command line
Hello, all. I've got a python code that I'm trying to get ready for use with multiprocessing (using StacyR's helpful code here). I've got a list of roads in an area threatened by wildfire, and I'm...
View Articlehelp sources for Python Add-ins
I'm an old AML'er who has been happily learning Python and using it in my workflows. Now I'm starting to create Python Add-ins and after initial success have been pulling my hair out. I have a toolbar...
View ArticleHaving Python issue after creating a Class for my data.
I created a class using python. I created two fucntion within a class that calls functions within the class, which returns in a list. I have been getting this error message: Traceback (most recent call...
View ArticleHow do I list the Schema name of an Element in an SDE database (Newbie Q)
Hi All I am new to all this, so thanks for your patience:D. I used the code below to list the Name and data type of an element in an SDE database. What I really need to do now is identify and write the...
View Articleafter running a script several times succesfully..one day, it does nothing,...
After having run a script within Arcmap several times and successfully, today the running window said Completed! in 0.00 seconds....and nothing happened, no outputs!, no errors! You may think I have...
View ArticlePython Toolbox - How to show ArcMap loaded data layers in input field?
Hi. I have two python toolboxes (.pyt scripts) working in arcmap (10.1 SP1). One of them can show loaded arcmap layers (as the displayable triangle icon on the right) in its main input field, but the...
View ArticleCreating a .style file
Hi all, I have an mxd with roughly 50 layers. Each layer has been symbolised by unique values, so each layer has many symbols assigned to it. All the symbols have been assigned a specific, size,...
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 Article